From 32f2a052b1fe44793946f451c44eb9e76cd3e524 Mon Sep 17 00:00:00 2001 From: Alex Kavanagh Date: Fri, 24 Mar 2023 12:23:28 +0000 Subject: [PATCH] Add wait_for_agent_status in 'settle' code This is to guarantee that the block check didn't happen prior to the action being started. --- zaza/openstack/charm_tests/mysql/tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zaza/openstack/charm_tests/mysql/tests.py b/zaza/openstack/charm_tests/mysql/tests.py index c78f505..8039338 100644 --- a/zaza/openstack/charm_tests/mysql/tests.py +++ b/zaza/openstack/charm_tests/mysql/tests.py @@ -642,6 +642,7 @@ class MySQLInnoDBClusterRotatePasswordTests(MySQLCommonTests): # let everything settle. logging.info("Waiting for model to settle.") + zaza.model.wait_for_agent_status() zaza.model.block_until_all_units_idle() # verify that the password has changed.