From bb9899650aca21092afadb41ec6442258d43a100 Mon Sep 17 00:00:00 2001 From: Liam Young Date: Mon, 7 Sep 2020 12:34:55 +0000 Subject: [PATCH] Skip ceph pool type check if relation is missing --- zaza/openstack/charm_tests/ceph/tests.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zaza/openstack/charm_tests/ceph/tests.py b/zaza/openstack/charm_tests/ceph/tests.py index 001fc0f..99285a3 100644 --- a/zaza/openstack/charm_tests/ceph/tests.py +++ b/zaza/openstack/charm_tests/ceph/tests.py @@ -826,6 +826,15 @@ class CheckPoolTypes(unittest.TestCase): pool_name, app) continue + rel_id = zaza_model.get_relation_id( + app, + 'ceph-mon', + remote_interface_name='client') + if not rel_id: + logging.info( + 'Skipping pool check of %s, ceph relation not present', + app) + continue juju_pool_config = app_config.get('pool-type') if juju_pool_config: expected_pool_type = juju_pool_config['value']