distcloud/distributedcloud/dcmanager/api/controllers/v1
Gustavo Herzmann 2050cf7ceb Add 'subcloud deploy complete' command to dcmanager
This commit adds the subcloud deploy complete command to dcmanager.
It's used to mark the subcloud deployment as 'complete'. This is
useful when the user manually configures the subcloud and wants to finalize the deployment without running 'dcmanager subcloud deploy config'.

To run the 'deploy complete' operation deploy status of the subcloud
must be 'bootstrap-complete'.

This commit also fixes an issue with the value returned from the
subcloud_deploy_create function. It was returning the database model
object to the RCP call when it should be returning a dictionary.

Test Plan:
1. PASS - Bootstrap a subcloud, manually configuring it and then run
          the deploy complete command (by CLI and directly through the
          API). Verify that the deploy status updates from
          'bootstrap-complete' to 'complete';
2. PASS - Verify that the command is rejected when the deploy status
          is not 'bootstrap-complete'.

Story: 2010756
Task: 48453

Change-Id: Ie2eca930e4b13a50cc12e8b9eef79bcb5e7c671f
Signed-off-by: Gustavo Herzmann <gustavo.herzmann@windriver.com>
2023-07-31 16:59:16 +00:00
..
__init__.py Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
alarm_manager.py Implement access control for DC API 2022-09-22 18:26:35 -03:00
notifications.py Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
phased_subcloud_deploy.py Add 'subcloud deploy complete' command to dcmanager 2023-07-31 16:59:16 +00:00
root.py Add 'subcloud deploy create' command to dcmanager 2023-06-20 09:13:41 -03:00
subcloud_backup.py Set the correct deploy_status value in subcloud restore response 2023-06-19 14:44:29 -03:00
subcloud_deploy.py Add release optionality to subcloud add/reinstall 2023-04-03 00:12:39 +00:00
subcloud_group.py Fix subcloud-group endpoint routing conflict 2022-12-06 13:21:14 +00:00
subclouds.py Update "dcmanager subcloud add" to use phased operations 2023-07-27 08:30:05 -03:00
sw_update_options.py Implement access control for DC API 2022-09-22 18:26:35 -03:00
sw_update_strategy.py Improve strategy error messages in dcmanager-api 2023-07-11 20:17:07 +00:00