Merge "[OVN][FT] Also update nb_cfg along with nb_cfg_timestamp"

This commit is contained in:
Zuul 2023-01-16 12:31:35 +00:00 committed by Gerrit Code Review
commit d1f78d23eb
1 changed files with 6 additions and 0 deletions

View File

@ -474,6 +474,12 @@ class TestAgentMonitor(base.TestOVNFunctionalBase):
nb_cfg_timestamp = timestamp * 1000
self.sb_api.db_set('Chassis_Private', self.chassis_name, (
'nb_cfg_timestamp', nb_cfg_timestamp)).execute(check_error=True)
# Also increment nb_cfg by 1 to trigger ChassisAgentWriteEvent which
# is responsible to update AgentCache
old_nb_cfg = self.sb_api.db_get('Chassis_Private', self.chassis_name,
'nb_cfg').execute(check_error=True)
self.sb_api.db_set('Chassis_Private', self.chassis_name, (
'nb_cfg', old_nb_cfg + 1)).execute(check_error=True)
try:
n_utils.wait_until_true(check_agent_ts, timeout=5)
except n_utils.WaitTimeout: