distcloud/distributedcloud/dcmanager/manager
Bart Wensley e2defd574f Fix dc-cert sync status handling for unmanaged subcloud
When a subcloud is unmanaged and then managed again, it will
never go back in sync. This is because all sync_statuses are
set to unknown when the unmanage is done. However, the
dc-cert_sync_status is only set to in-sync when the subcloud
transitions from offline to online. So in this case the
dc-cert_sync_status stays as unknown.

The fix is to avoid setting the dc-cert sync status to unknown
when a subcloud is unmanaged. The dc-cert sync status will
still being audited for unmanaged subclouds so there is no
need to do this.

Change-Id: I7a53c11888b8866c6077679265d69c36faf4e264
Closes-Bug: 1887733
Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
(cherry picked from commit 6a16d05061)
2020-07-16 17:26:43 +00:00
..
states Increase the DC orch upgrade-activation timeout 2020-07-02 11:16:47 -05:00
README.rst Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
__init__.py Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
patch_orch_thread.py Combine the patch audit with the subcloud audit 2020-05-29 13:13:11 -04:00
service.py Add CLI/API to populate data_install 2020-06-24 16:15:46 -04:00
subcloud_manager.py Fix dc-cert sync status handling for unmanaged subcloud 2020-07-16 17:26:43 +00:00
sw_update_manager.py Merge "Implementing Lock and Unlock upgrade strategy states" 2020-06-02 14:58:05 +00:00
sw_upgrade_orch_thread.py Adding a wait to the end of migrate_data state 2020-06-25 19:44:14 -05:00

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.