distcloud/distributedcloud
Li Zhu 5f132a43ab Set PGA status to out-of-sync after certain operations
Fix the reported issue:
The PGA fails to transition from 'in-sync' to 'out-of-sync' after
updating subclouds.

This commit includes the following changes:
1. Updates the SPG sync_status to 'out-of-sync' after performing any of
   the following operations and provides an informative message to
   the operator:
   a) Adding a subcloud to the SPG
   b) Removing a subcloud from the SPG
   c) Updating a subcloud in the SPG
2. Ensures that updates on SPG attributes, such as name,
   max_subcloud_rehoming, and group_state, are automatically
   propagated to the peer site.

Test plan:
Pre-Steps: 1. Create the system peer from Site A to Site B
           2. Create System peer from Site B to Site A
           3. Create the subcloud peer group in the Site A
           4. Add subcloud(s) to the peer group
           5. Create peer group association to associate system peer
              and subcloud peer group - Site A
           6. Check current sync status on Sites A and B. Verify
              they are 'in-sync'.
PASS: Verify 'out-of-sync' on both sites after running any of
      the following operations on site A, the primary and leader site:
      1. Adding subcloud to the SPG.
      2. Removing subcloud from the SPG.
      3. Updating any field of a subcloud in the SPG, such as bootstrap
         address, bootstrap values, install values, etc.
PASS: Repeat the above operations while site B is down and verify that
      PGA sync_status is set to "failed".
PASS: Verify that SPG attribute updates are accepted if peer site is up
      and the updates are successfully synced to the peer site.
PASS: Verify that SPG attribute updates are rejected if the peer site
      is down.
PASS: Verify that if the subcloud does not belong to any peer group, or
      if it is part of a peer group but the peer group is not associated
      with any peer yet, updating the subcloud would not result in an
      "informative" message and no attempt to update the PGA sync_status
      should occur.

Closes-Bug: 2054123
Closes-Bug: 2054124

Change-Id: I9f0e44e34c7db5d60d211b70e839606d0361cf83
Signed-off-by: lzhu1 <li.zhu@windriver.com>
2024-03-08 19:38:31 +00:00
..
centos Migrate distributedcloud .deb from dl_hooks 2023-01-13 15:46:06 +00:00
dccommon Merge "Fix issues with PGA sync_status" 2024-03-07 19:22:57 +00:00
dcdbsync Update tox pylint/pep8 for dcdbsync 2024-01-18 12:23:49 -03:00
dcmanager Set PGA status to out-of-sync after certain operations 2024-03-08 19:38:31 +00:00
dcorch Remove the use_usm flag 2024-02-15 16:45:21 -03:00
debian Decontainerizing rvmc.py and Modular Integration in DC Repo 2023-11-10 18:18:23 -05:00
etc Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
files Extend subcloud bootstrap log rotation size 2023-06-30 11:47:10 -04:00
ocf Refactor portion of dcmanager into dcmanager-state process 2022-01-27 16:33:41 -05:00
scripts Decontainerizing rvmc.py and Modular Integration in DC Repo 2023-11-10 18:18:23 -05:00
.coveragerc Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
.coveragerc_xml Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
.pylintrc Update tox pylint/pep8 for dcmanager 2024-01-18 21:51:25 +00:00
.testr.conf Fix unit test parallelization issues 2021-09-14 10:42:56 -05:00
LICENSE Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
MANIFEST.in Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
README.rst Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
__init__.py Implement the state for Simplex Upgrade 2020-06-19 17:09:07 -04:00
babel.cfg Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
requirements.txt Decontainerizing rvmc.py and Modular Integration in DC Repo 2023-11-10 18:18:23 -05:00
setup.cfg Refactor portion of dcmanager into dcmanager-state process 2022-01-27 16:33:41 -05:00
setup.py Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
test-requirements.txt Create a software audit 2024-02-27 15:58:49 -03:00
tox.ini Update tox pylint/pep8 for dcmanager 2024-01-18 21:51:25 +00:00

README.rst

DistributedCloud

Wind River's Distributed Cloud system supports an edge computing solution by providing central management and orchestration for a geographically distributed network of Titanium Cloud systems.