18f54a44dd
Fernet key rotation is expected to occur periodically. Currently the 280.002 out-of-sync alarm is raised everytime the sync thread receives a fernet key rotation request. This commit makes the sync thread check the type of requests, setting the alarmable parameter to False if all the requests are due to a fernet key rotation. It also improves the sync function so it doesn't unnecessarily calls the is_subcloud_enable() function by providing an early exit when there are no pending sync requests. Test Plan: 1. PASS - Verify that the out-of-sync alarm is not raised when the fernet keys are rotated; 2. PASS - Check that the initial sync still works as expected; 3. PASS - Verify that identity sync due to user triggered identity resources change on the central cloud works as expected; 4. PASS - Check that platform resources sync due to user triggered platform resources on the central cloud works as expected; 5. PASS - Trigger a fernet key sync and at the same time trigger a different sync request and verify that alarm gets raised. Closes-Bug: #2002171 Signed-off-by: Gustavo Herzmann <gustavo.herzmann@windriver.com> Change-Id: I694d6c3791222739921cd0f5141f54791f847414 |
||
---|---|---|
.. | ||
api | ||
cmd | ||
common | ||
db | ||
drivers | ||
engine | ||
objects | ||
rpc | ||
tests | ||
__init__.py | ||
config-generator.conf | ||
version.py |