distcloud/distributedcloud/dcmanager/db/sqlalchemy/migrate_repo/versions
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
..
001_first_version.py Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
002_rename_compute_to_worker.py Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
003_add_deploy_status_column.py Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
004_add_openstack_installed_column.py Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
005_add_subcloud_alarms.py Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
006_add_subcloud_group_table.py Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
007_add_subcloud_install.py Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
008_add_subcloud_audits_table.py Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
009_add_kube_rootca_audit.py Implement dcmanager kube-rootca-update orchestration 2021-09-17 08:05:46 -05:00
010_add_update_extra_args.py Add features to kube-root-ca update orchestration 2021-10-06 08:01:33 -05:00
011_add_subcloud_backup_columns.py Add subcloud backup create operation to dcmanager 2022-09-12 11:45:19 -03:00
012_add_deploy_error_desc_column.py Add "error_description" field on subclouds table 2022-10-06 00:51:41 +00:00
013_first_identity_sync_complete.py Trigger subcloud audits when identity status is updated 2023-05-22 19:50:38 -03:00
014_add_subcloud_peer_group_and_association.py Fix unable to determine the SPG sync state if one site is down 2024-01-02 16:39:08 +08:00
015_add_subcloud_region_name_column.py Subcloud Name Reconfiguration 2023-09-07 10:30:06 -03:00
016_add_subcloud_rehome_flag_column.py Implement k8s root CA audit based on cert 2023-11-24 17:02:29 -05:00
__init__.py Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00