From 6d53e6d758a71da8a32863e4269c8ed77bc0c51d Mon Sep 17 00:00:00 2001 From: Corey Bryant Date: Wed, 6 Nov 2019 20:34:51 -0500 Subject: [PATCH] Increase wait attempts for volume availability Increase wait attempts for availability of volume created from image in CephRBDMirrorTest. This is taking longer as of Nautilus due to switch to using juju storage backed by undercloud cinder taking longer than prior method of directory-backed OSD devices. --- zaza/openstack/charm_tests/ceph/rbd_mirror/tests.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zaza/openstack/charm_tests/ceph/rbd_mirror/tests.py b/zaza/openstack/charm_tests/ceph/rbd_mirror/tests.py index ed7c8e1..16ebfc0 100644 --- a/zaza/openstack/charm_tests/ceph/rbd_mirror/tests.py +++ b/zaza/openstack/charm_tests/ceph/rbd_mirror/tests.py @@ -210,8 +210,13 @@ class CephRBDMirrorTest(CephRBDMirrorBase): return volume = cinder.volumes.create(8, name='zaza', imageRef=image.id) try: + # Note(coreycb): stop_after_attempt is increased because using + # juju storage for ceph-osd backed by cinder on undercloud + # takes longer than the prior method of directory-backed OSD + # devices. openstack.resource_reaches_status( - cinder.volumes, volume.id, msg='volume') + cinder.volumes, volume.id, msg='volume', + stop_after_attempt=20) return volume except AssertionError: logging.info('retrying')