From e876fc78a469de3d5eb0b3d818b7dcd3d79f04ec Mon Sep 17 00:00:00 2001 From: Alex Kavanagh Date: Mon, 24 Jun 2024 18:49:03 +0100 Subject: [PATCH] Add ObjectRetrier to CinderaBackupTests This adds the auto-retrier to the cinder client to get past race hazards and other transient errors. --- zaza/openstack/charm_tests/cinder_backup/tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zaza/openstack/charm_tests/cinder_backup/tests.py b/zaza/openstack/charm_tests/cinder_backup/tests.py index 97b365808..5201cbc56 100644 --- a/zaza/openstack/charm_tests/cinder_backup/tests.py +++ b/zaza/openstack/charm_tests/cinder_backup/tests.py @@ -22,6 +22,7 @@ import zaza.model import zaza.openstack.charm_tests.test_utils as test_utils +from zaza.openstack.utilities import ObjectRetrierWraps import zaza.openstack.utilities.ceph as ceph_utils import zaza.openstack.utilities.openstack as openstack_utils @@ -35,8 +36,8 @@ class CinderBackupTest(test_utils.OpenStackBaseTest): def setUpClass(cls): """Run class setup for running Cinder Backup tests.""" super(CinderBackupTest, cls).setUpClass() - cls.cinder_client = openstack_utils.get_cinder_session_client( - cls.keystone_session) + cls.cinder_client = ObjectRetrierWraps( + openstack_utils.get_cinder_session_client(cls.keystone_session)) @property def services(self):