StarlingX Distributed Cloud Client
Go to file
Gustavo Herzmann 9d384d63b1 Add --migrate option to subcloud unmanage
This commit adds the --migrate option to the subcloud unmanage command,
besides unmanaging the subcloud it also changes its deploy status to
'rehome-pending'. It should be used when unmanaging a subcloud before
the rehoming/migration operation. This new status will then be used by
cert-mon to determine when it should stop auditing an unmanaged
subcloud, to avoid certificate issues during the rehoming operation.

It's only possible to use this option when the subcloud's deploy status
is 'complete'. It's possible to manage it back in case the rehoming
operation is not going to be executed anymore; in this case the
deploy-status will be reverted back to 'complete'.

Example usage:
dcmanager subcloud unmanage --migrate subcloud1

Test Plan:
1. PASS - Unmanage a subcloud without --migrate and verify that it
          still works and that cert-mon continues to audit it;
2. PASS - Manage a subcloud, verify that the operation still works as
          expected;
3. PASS - Try to unmanage with --migrate when the subcloud's deploy
          status is different than 'complete' and verify that it
          doesn't allow it;
4. PASS - Unmanage a subcloud using the --migrate option and verify
          that its deploy status changes to 'rehome-pending', all the
          sync statuses change to 'unknown', and that cert-mon stops
          auditing the subcloud;
5. PASS - Manage a 'rehome-pending' subcloud and verify that it
          succeeds while also reverting its deploy_status to
          'complete';

Depends-on: https://review.opendev.org/c/starlingx/distcloud/+/900288

Story: 2010852
Task: 49060

Signed-off-by: Gustavo Herzmann <gustavo.herzmann@windriver.com>
Change-Id: I1d761c1a0ae401a11443d80df70338acb2a0a14a
2023-11-08 18:43:58 -03:00
distributedcloud-client Add --migrate option to subcloud unmanage 2023-11-08 18:43:58 -03:00
doc Fix distributedcloud-client openstack-tox-docs 2023-08-30 13:36:25 -03:00
releasenotes Switch to newer openstackdocstheme and reno versions 2020-06-04 14:16:03 +02:00
.gitignore Fix coverage reporting for stx-distcloud-client 2018-11-21 12:12:43 -06:00
.gitreview OpenDev Migration Patch 2019-04-19 19:52:34 +00:00
.mailmap StarlingX open source release updates 2018-08-07 11:51:16 -04:00
.zuul.yaml Clean up outdated configs in tox.ini and .zuul.yaml 2023-07-20 17:38:24 -03:00
CONTRIBUTING.rst StarlingX open source release updates 2018-08-07 11:51:16 -04:00
CONTRIBUTORS.wrs StarlingX open source release updates 2018-08-07 11:51:16 -04:00
HACKING.rst Update the URL in HACKING.rst 2018-09-23 16:31:32 +08:00
bindep.txt Adding py39 gate and removing py36 gates from zuul 2021-10-28 19:41:32 +00:00
centos_build_layer.cfg Build layering, add layer build config file 2019-11-08 08:42:11 +08:00
centos_dev_wheels.inc Update files for relocated repo 2019-11-04 16:12:27 -05:00
centos_iso_image.inc Update files for relocated repo 2019-11-04 16:12:27 -05:00
centos_pkg_dirs Update files for relocated repo 2019-11-04 16:12:27 -05:00
centos_stable_wheels.inc Update files for relocated repo 2019-11-04 16:12:27 -05:00
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-05 14:07:20 -04:00
debian_iso_image.inc Debian: distcloud-client: update debian_iso_image.inc 2022-11-18 08:14:03 +08:00
debian_pkg_dirs Add debian package for distributedcloud-client 2022-01-24 03:40:20 -03:00
requirements.txt Move content to subdir to support relocated packaging 2019-11-04 14:14:38 -05:00
test-requirements.txt Fix zuul jobs broken due to pip upversion 2020-12-18 13:39:36 -06:00
tox.ini Update tox.ini to work with tox 4 2022-12-26 18:28:59 +00:00