Need to verify Telemetry/Manila/Barbican existence before starting the procedure of update OpenStack
Change-Id: I2774d7e950c9a1d9a08e2ac49d91c5fa0ecbc27f
diff --git a/tcp_tests/tests/system/test_mcp_update.py b/tcp_tests/tests/system/test_mcp_update.py
index 1ff7642..83fdb0a 100644
--- a/tcp_tests/tests/system/test_mcp_update.py
+++ b/tcp_tests/tests/system/test_mcp_update.py
@@ -43,14 +43,20 @@
Maybe cluster is not deployed completely.\
Err: {}".format(err))
- # TODO: add check for Manila existence
- # # Commented to avoid fails during OpenStack updates.
- # # Anyway we don't have deployments with Manila yet
- # targets.append('share*')
- # TODO: add check for Tenant Telemetry existence
- targets.append('mdb*')
- # TODO: add check for Barbican existence
- targets.append('kmn*')
+ # check for Manila existence
+ # if saltmanager.get_single_pillar("I@salt:master",
+ # "_param:manila_service_protocol"):
+ # targets.append('share*')
+
+ # check for Tenant Telemetry existence
+ if saltmanager.get_single_pillar("I@salt:master",
+ "_param:openstack_telemetry_hostname"):
+ targets.append('mdb*')
+
+ # check for Barbican existence
+ if saltmanager.get_single_pillar("I@salt:master",
+ "_param:barbican_enabled"):
+ targets.append('kmn*')
return targets