distcloud-client/distributedcloud-client/dcmanagerclient/api
twang4 a8b8077983 Add subcloud secondary status support and migration
Add "subcloud migrate" to rehome a 'secondary' state
subcloud.

Update "dcmanager subcloud add --secondary" command

Update "dcmanager subcloud update --bootstrap-address
--bootstrap-values"
to save data for day-2's rehome/migrate purpose.

Update "dcmanager list subcloud --all" include show
'secondary/secondary-failed' subclouds

Update result of "subcloud show",
add rehome_data section.

Usage:
dcmanager subcloud add --secondary
--bootstrap-address IP
--bootstrap-values [yaml file]

dcmanager subcloud update SUBCLOUD
--bootstrap-address IP
--bootstrap-values [yaml file]

dcmanager subcloud list --all

dcmanager subcloud show SUBCLOUD

dcmanager subcloud migrate SUBCLOUD
--sysadmin-password PASSWORD

Test Plan:
1. PASS - Verify that the dcmanager help subcloud migrate shows
          the correct help message;
2. PASS - Run 'dcmanager subcloud add --secondary' and verify that the
          correct API call is made;
3. PASS - Run 'dcmanager subcloud update --bootstrap-address
          --bootstrap-values' and verify that the
          correct API call is made;

4. PASS - Run 'dcmanager subcloud migrate' and verify that the
          correct API call is made;
5. PASS - Verify that the subcloud name/id parameter is required.

Story: 2010852
Task: 48489
Task: 48504
Depends-On: I9a308a4e2cc5057091ba195c4d05e9d1eb4a950c
Change-Id: Idd10267370dd2cd562c6eacc0d24c47cf68e9fd5
Signed-off-by: Wang Tao <tao.wang@windriver.com>
2023-08-23 12:56:35 +00:00
..
v1 Add subcloud secondary status support and migration 2023-08-23 12:56:35 +00:00
__init__.py Move content to subdir to support relocated packaging 2019-11-04 14:14:38 -05:00
base.py Add subcloud secondary status support and migration 2023-08-23 12:56:35 +00:00
client.py Remove WR License notice from StarlingX distributed cloud client 2021-12-22 13:23:29 -05:00
httpclient.py Remove WR License notice from StarlingX distributed cloud client 2021-12-22 13:23:29 -05:00