From 5e69dcf8c4e9c237a846bc20e575ba05103d0e8f Mon Sep 17 00:00:00 2001 From: Martin Kalcok Date: Wed, 21 May 2025 13:29:05 +0200 Subject: [PATCH] test_utils: Await application state after Error Error state during VFIO enablement is discovered by 'wait_for_application_state' function. So that's the one that should be re-tried after error recovery. Fixes: e4e1d18624ba7800c9e57f22a00ed2b7b78903a3 Signed-off-by: Martin Kalcok --- zaza/openstack/charm_tests/test_utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zaza/openstack/charm_tests/test_utils.py b/zaza/openstack/charm_tests/test_utils.py index bc3d1de..1a35ded 100644 --- a/zaza/openstack/charm_tests/test_utils.py +++ b/zaza/openstack/charm_tests/test_utils.py @@ -757,8 +757,9 @@ class BaseCharmTest(unittest.TestCase): ' recover. Possible cause:' ' https://bugs.launchpad.net/juju/+bug/2077936') zaza.model.resolve_units() - zaza.utilities.machine_os.enable_vfio_unsafe_noiommu_mode( - unit, model_name=self.model_name) + model.wait_for_application_states( + model_name=self.model_name, + states=self.test_config.get('target_deploy_status', {})) def disable_hugepages_vfio_on_hvs_in_vms(self): """Disable hugepages and unsafe VFIO NOIOMMU on virtual hypervisors."""