distcloud/distributedcloud/dcmanager/api/controllers/v1
Gustavo Herzmann 226e127fc0 Improve rehome_data semantic check and name update
This commit adds a new rehome_data semantic check when attempting to
update which peer group a subcloud is part of. If rehome_data
is not already present, the request payload must contain both the
bootstrap-values and bootstrap-address; otherwise, the request will
be aborted.

Additionally, this commit updates the rehome_data during the subcloud
rename operation, guarenteeing that name is up-to-date.

Test Plan:
1. PASS - Attempt to add a subcloud with no rehome_data to a peer
          group under the following conditions and verify that it
          fails:
          - Without passing bootstrap-address and bootstrap-values
          - Passing only the bootstrap-address
          - Passing only the bootstrap-values
2. PASS - Add a subcloud with rehome_data to a peer group and verify
          that the operation succeeds regardless of the presence of
          bootstrap-address and bootstrap-values.
3. PASS - Rename a subcloud with rehome_data and verify that the
          rehome_data name field is updated to the new name.
4. PASS - Rename a subcloud without rehome_data and verify that the
          rename operation still works.
5. PASS - Migrate a renamed subcloud back and forth and verify that
          the migration completes successfully.

Closes-Bug: 2055883
Closes-Bug: 2056796

Change-Id: I4403dc50062db07a0de24e04139e3af8087c546f
Signed-off-by: Gustavo Herzmann <gustavo.herzmann@windriver.com>
2024-03-12 11:22:01 -03:00
..
__init__.py Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
alarm_manager.py Remove unused methods in alarm manager 2024-02-13 10:39:31 -05:00
notifications.py Update tox pylint/pep8 for dcmanager 2024-01-18 21:51:25 +00:00
peer_group_association.py Set PGA status to out-of-sync after certain operations 2024-03-08 19:38:31 +00:00
phased_subcloud_deploy.py Restrict subcloud deploy configure to primary site 2024-02-20 15:18:16 -05:00
root.py Add dcmanager peer group association management API support 2023-11-04 10:36:41 +08:00
subcloud_backup.py Update tox pylint/pep8 for dcmanager 2024-01-18 21:51:25 +00:00
subcloud_deploy.py Update tox pylint/pep8 for dcmanager 2024-01-18 21:51:25 +00:00
subcloud_group.py Update tox pylint/pep8 for dcmanager 2024-01-18 21:51:25 +00:00
subcloud_peer_group.py Improve rehome_data semantic check and name update 2024-03-12 11:22:01 -03:00
subclouds.py Improve rehome_data semantic check and name update 2024-03-12 11:22:01 -03:00
sw_update_options.py Implement access control for DC API 2022-09-22 18:26:35 -03:00
sw_update_strategy.py Remove the use_usm flag 2024-02-15 16:45:21 -03:00
system_peers.py Update tox pylint/pep8 for dcmanager 2024-01-18 21:51:25 +00:00