Add ObjectRetrier to CinderaBackupTests
This adds the auto-retrier to the cinder client to get past race hazards and other transient errors.
This commit is contained in:
@@ -22,6 +22,7 @@ import tenacity
|
||||
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user