distcloud/distributedcloud/dccommon
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
..
drivers Fix unable to determine the SPG sync state if one site is down 2024-01-02 16:39:08 +08:00
tests Add dcmanager client driver support 2023-09-27 10:59:34 +08:00
LICENSE Keystone token and resource caching 2020-03-23 21:31:04 -04:00
__init__.py Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
consts.py Merge "Update dcmanager audit to use usm API" 2023-11-06 19:06:07 +00:00
endpoint_cache.py Update endpoint caches post network reconfig 2023-03-14 11:44:15 -03:00
exceptions.py Fix unable to determine the SPG sync state if one site is down 2024-01-02 16:39:08 +08:00
kubeoperator.py Fix race condition issue of copying default-registry-key 2023-08-24 21:55:08 -04:00
rvmc.py Mute RVMC info logs on subcloud deploy abort of install 2023-12-12 10:20:16 -05:00
subcloud_install.py Use keystone client cache in SubcloudInstall class 2023-12-12 10:10:22 -05:00
subprocess_cleanup.py Registration-based subprocess cleanup on service shutdown 2022-05-18 20:53:47 -04:00
utils.py Decontainerizing rvmc.py and Modular Integration in DC Repo 2023-11-10 18:18:23 -05:00