diff --git a/tests/cross_functional/system_test/multicluster/test_post_installation_state.py b/tests/cross_functional/system_test/multicluster/test_post_installation_state.py index 38f0bb1c951..d67f7e579b2 100644 --- a/tests/cross_functional/system_test/multicluster/test_post_installation_state.py +++ b/tests/cross_functional/system_test/multicluster/test_post_installation_state.py @@ -93,7 +93,7 @@ def test_provider_server_logs(self): consumer_names = managedservice.get_consumer_names() for consumer_name in consumer_names: expected_log = ( - f'successfully Enabled the StorageConsumer resource "{consumer_name}"' + f"successfully updated Status for StorageConsumer {consumer_name}" ) log_found = False for line in log_lines: @@ -123,12 +123,18 @@ def test_ceph_clients(self): ] == consumer_name ): - found_client = ( - f"{cephclient['metadata']['annotations']['ocs.openshift.io.storageclaim']}-" - f"{cephclient['metadata']['annotations']['ocs.openshift.io.cephusertype']}" - ) - log.info(f"Ceph client {found_client} for {consumer_name} found") - found_clients.append(found_client) + try: + found_client = ( + f"{cephclient['metadata']['annotations']['ocs.openshift.io.storageclaim']}-" + f"{cephclient['metadata']['annotations']['ocs.openshift.io.cephusertype']}" + ) + log.info( + f"Ceph client {found_client} for {consumer_name} found" + ) + found_clients.append(found_client) + except KeyError as err: + log.error(f"Unexpected structure of cephclient yaml: {err}") + for client in { "rbd-provisioner", "rbd-node",