226e127fc0
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> |
||
---|---|---|
.. | ||
README.rst | ||
__init__.py | ||
peer_group_audit_manager.py | ||
peer_monitor_manager.py | ||
service.py | ||
subcloud_manager.py | ||
system_peer_manager.py |
README.rst
Service
- DC Manager Service has responsibility for:
-
Main subcloud state machine as well as all operations on subclouds including creation, deletion and update.
- service.py:
-
run DC Manager service in multi-worker mode, and establish RPC server
- subcloud_manager.py:
-
Manages all subcloud related activities such as creation, deletion, availability status, management state
- audit_manager.py:
-
A Periodic audit to contact each subcloud and ensure that at least one of each service group is up and active, which is a pre-requisite for declaring a subcloud as online.
- scheduler.py:
-
Thread group manager, also responsible for periodic timer tasks - ie. audit.