distcloud/distributedcloud/dcmanager/api/controllers/v1
Zhang Rong(Jon) e422731760 Fix unable to determine the SPG sync state if one site is down
If Site1 (the local site) is down while setting up the protection
group, the subcloud peer group sync state is unable to determine.
This commit will automatically create the non-primary association on
Site2 (the peer site) when creating a primary association, and
update the sync state to the non-primary association. Then the
operator can check the sync state on Site2 if Site1 is down.

Test Plan:
- PASS: Create a primary association and check the non-primary
        association on peer site. It was created, and sync_status
        will follow the primary association's sync_status.
- PASS: Delete the primary association and check the non-primary
        association on peer site. It was deleted.
- PASS: If you restart the "dcmanager-manager service" in the local
        site while the association sync_status is in "syncing", the
        sync_status will transition to "failed".
- PASS: Create a primary association and wait for the sync_status
        change to "in-sync". Delete the subcloud peer group on peer
        site, the deletion will fail because it is associating to
        the non-primary association.

Closes-Bug: 2046809

Change-Id: Ia917d0dc7c65fbea1e222fb52dbec79fdbe65b65
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
2024-01-02 16:39:08 +08: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
peer_group_association.py Fix unable to determine the SPG sync state if one site is down 2024-01-02 16:39:08 +08:00
phased_subcloud_deploy.py Fix: Error Handling for YAML Load 2023-10-29 21:17:04 -04:00
root.py Add dcmanager peer group association management API support 2023-11-04 10:36:41 +08:00
subcloud_backup.py Fix: Error Handling for YAML Load 2023-10-29 21:17:04 -04:00
subcloud_deploy.py Add sw version validation to all release param endpoints 2023-09-26 10:18:48 -04:00
subcloud_group.py Add subcloud secondary status support and migration 2023-08-25 11:03:17 +08:00
subcloud_peer_group.py Fix unable to determine the SPG sync state if one site is down 2024-01-02 16:39:08 +08:00
subclouds.py Fix unable to determine the SPG sync state if one site is down 2024-01-02 16:39:08 +08:00
sw_update_options.py Implement access control for DC API 2022-09-22 18:26:35 -03:00
sw_update_strategy.py Add sw version validation to all release param endpoints 2023-09-26 10:18:48 -04:00
system_peers.py Fix unable to determine the SPG sync state if one site is down 2024-01-02 16:39:08 +08:00