From c22753e4ef4ea7f87ab4b4d6ba7f61c8c574adb3 Mon Sep 17 00:00:00 2001 From: Frode Nordahl Date: Mon, 23 Mar 2020 13:40:09 +0100 Subject: [PATCH] radosgw: Adjust exceptions selected for retry A set of the exceptions we want to catch all descend from ``IOError``. Let's see if this covers them all. --- zaza/openstack/charm_tests/ceph/tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zaza/openstack/charm_tests/ceph/tests.py b/zaza/openstack/charm_tests/ceph/tests.py index ef3b59b..2e16617 100644 --- a/zaza/openstack/charm_tests/ceph/tests.py +++ b/zaza/openstack/charm_tests/ceph/tests.py @@ -597,8 +597,7 @@ class CephRGWTest(test_utils.OpenStackBaseTest): # catalog. Retry the test in this circumstance. @tenacity.retry(wait=tenacity.wait_exponential(multiplier=10, max=300), reraise=True, stop=tenacity.stop_after_attempt(10), - retry=tenacity.retry_if_exception_type( - ConnectionRefusedError)) + retry=tenacity.retry_if_exception_type(IOError)) def test_object_storage(self): """Verify object storage API.