distcloud/distributedcloud/dccommon/drivers/openstack
Christopher Souza a7ca6368cd Trigger subcloud audits when identity status is updated
In this commit, the trigger of the audits were removed from the manage
action and moved to trigger only when the identity endpoint is updated
from unknown to other statuses. This was done to avoid a race condition
between dcdbsync and the subcloud audit where the subcloud audit would
fail to role not found.
The first_identity_sync_complete field was add to not allow the audit
of any endpoint to be done before the first identity sync is complete,
in order to avoid keystone errors.

Test Plan:
PASS: Add 250 subclouds and manage them all at the same time
and verify that all subclouds went in-sync without errors from
any endpoint audit.
PASS: Unmanage a subcloud and manage it back and verify that
the subcloud is in-sync
PASS: Create a role to update the identity status from in-sync -> out-of-sync
-> in-sync and verify that no extra subcloud audits were triggered.
PASS: Re-install a subcloud that was managed and then manage that
subcloud and verify that the others endpoints audit were only triggered
after the identity sync was complete

Closes-Bug: 2019857

Signed-off-by: Christopher Souza <Christopher.DeOliveiraSouza@windriver.com>
Change-Id: Ied7a3ed99112daeb7af9dd39ad7780c60f451e0e
2023-05-22 19:50:38 -03:00
..
__init__.py Keystone token and resource caching 2020-03-23 21:31:04 -04:00
barbican.py Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
fm.py Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
keystone_v3.py Remove standard WR License notice from StarlingX distributedcloud 2021-12-23 19:55:09 +00:00
patching_v1.py Extend timeout of patching REST API 2022-06-27 15:48:59 -04:00
sdk_platform.py Trigger subcloud audits when identity status is updated 2023-05-22 19:50:38 -03:00
sysinv_v1.py Add health check to kube upgrade pre-check 2023-03-27 13:07:55 -03:00
vim.py Add additional fields to API calls to NFV 2022-04-07 18:49:54 +00:00