Skip ceph pool type check if relation is missing

This commit is contained in:
Liam Young
2020-09-07 12:34:55 +00:00
parent 66d95d65d7
commit bb9899650a

View File

@@ -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']