StarlingX Distributed Cloud
Go to file
Tao Liu 58a7186bea Support subcloud deploy upload the common files
Add new REST APIs to upload and display the deploy manager
common files on the System Controller.

The deploy manager common files which include playbook,
overrides and helm charts are uploaded to
/opt/platform/deploy/<version>:
/opt/platform/deploy/<version>/deploy_playbook_<original name>
/opt/platform/deploy/<version>/deploy_overrides_<original name>
/opt/platform/deploy/<version>/deploy_chart_<original name>

Modify the subcloud post request to accept the bootstrap-values,
install-values and deploy-config as file contents. The deploy
config file is only used by the deploy manager and it is
uploaded to /opt/dc/ansible.

The information that used to create the overrides for the
playbook are extracted and sent to the dcmanager, which include
bootstrap values, install values and the full path of deploy
file names, if the deploy-config is presented in the request.

Testcases:
REST APIs:
1. curl -X POST -H "X-Auth-Token: $TOKEN" $APIURL/subcloud-deploy \
-F deploy_playbook=@<full path of the playbook name> \
-F deploy_overrides=@<full path of the override file name> \
-F deploy_chart=@full path of the helm chart name>

2. curl -X GET -H "X-Auth-Token: $TOKEN" $APIURL/subcloud-deploy

3. curl -X POST -H "X-Auth-Token: $TOKEN" \
$APIURL/subclouds \
-F bootstrap_values=@<full path of the bootstrap override file> \
-F sysadmin_password=<encoded password> \
-F bootstrap-address=<bootstrap IP>

4. curl -X POST -H "X-Auth-Token: $TOKEN" \
$APIURL/subclouds \
-F bootstrap_values=@<full path of the bootstrap override file> \
-F install_values=@<full path of the install value file> \
-F deploy_config=@<full path of the deploy config file> \
-F sysadmin_password=<encoded password> \
-F bmc_password=<encoded password> \
-F bootstrap-address=<bootstrap IP> \

CLI:
1. dcmanager subcloud-deploy upload \
--deploy-playbook <full path of the playbook name> \
--deploy-chart <full path of the override file name> \
--deploy-overrides <full path of the override file name>

2. dcmanager subcloud-deploy show

3. dcmanager subcloud add --bootstrap-address <IP>  \
--bootstrap-values <full path of the bootstrap override> \
--deploy-config <full path of the deploy config file> \

4. dcmanager subcloud add --bootstrap-address <IP> \
--bootstrap-values <full path of the bootstrap override> \
--install-values <full path of the install value file> \

5.dcmanager subcloud add --bootstrap-address <IP> \
--bootstrap-values <full path of the bootstrap override> \
--install-values <full path of the install value file> \
--deploy-config <full path of the deploy config file> \

Host swact and deploy of a subcloud

Closes-Bug: 1864508

Change-Id: I3ce0da6efb8c2d78a213647789fc6bdb3b348b2d
Signed-off-by: Tao Liu <tao.liu@windriver.com>
2020-04-21 09:09:38 -04:00
api-ref/source Support subcloud deploy upload the common files 2020-04-21 09:09:38 -04:00
distributedcloud Support subcloud deploy upload the common files 2020-04-21 09:09:38 -04:00
doc Update landing pages for docs, api-ref, and release notes: 2020-01-21 16:36:06 -08:00
releasenotes Update landing pages for docs, api-ref, and release notes: 2020-01-21 16:36:06 -08:00
.gitignore [Doc] OpenStack API Reference Guide 2018-09-25 08:18:08 -07:00
.gitreview OpenDev Migration Patch 2019-04-19 19:52:44 +00:00
.mailmap StarlingX open source release updates 2018-08-07 11:51:21 -04:00
.zuul.yaml Update pylint for distributedcloud 2020-02-27 15:02:43 -06:00
CONTRIBUTING.rst StarlingX open source release updates 2018-08-07 11:51:21 -04:00
CONTRIBUTORS.wrs StarlingX open source release updates 2018-08-07 11:51:21 -04:00
HACKING.rst Update setup.cfg to align with StarlingX project 2019-01-07 16:34:24 +00:00
README_DC Update location of openrc in readme 2019-03-15 10:56:03 -05:00
centos_build_layer.cfg Build layering, add layer build config file 2019-11-08 08:40:22 +08:00
centos_dev_docker_images.inc OpenStack-Keystone Proxy Containerization 2019-11-04 14:36:50 -05:00
centos_dev_wheels.inc OpenStack-Keystone Proxy Containerization 2019-11-04 14:36:50 -05:00
centos_iso_image.inc Keystone token and resource caching 2020-03-23 21:31:04 -04:00
centos_pkg_dirs Update files for relocated repo 2019-11-04 14:36:51 -05:00
centos_stable_docker_images.inc OpenStack-Keystone Proxy Containerization 2019-11-04 14:36:50 -05:00
centos_stable_wheels.inc Update files for relocated repo 2019-11-04 14:36:51 -05:00
requirements.txt Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
test-requirements.txt Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
tox.ini Update pylint for distributedcloud 2020-02-27 15:02:43 -06:00