Fixed "test_nova_hosts_consistent" test to skip Ironic nodes
The Ironic nodes should be skipped from the openstack hypervisor
list since they have ironic hypervisor type and are not stored
in Nova which is expected. Thus, it is not fair to compare the
full list including ironic nodes with "nova service-list".
PROD-36768
Change-Id: If733e43ff98b05e5396dfe0ab4003d42b221745c
diff --git a/test_set/cvp-sanity/tests/test_nova_services.py b/test_set/cvp-sanity/tests/test_nova_services.py
index 62a3428..ea6e969 100644
--- a/test_set/cvp-sanity/tests/test_nova_services.py
+++ b/test_set/cvp-sanity/tests/test_nova_services.py
@@ -22,7 +22,8 @@
ironic = local_salt_client.test_ping(tgt='ironic:conductor')
if ironic:
ironic_nodes = [i.split('.')[0] for i in ironic]
- grep_exclude_ironic = "| egrep -v '{}'".format("|".join(ironic_nodes))
+ grep_exclude_ironic = "| grep -v ironic | egrep -v '{}'" \
+ "".format("|".join(ironic_nodes))
else:
grep_exclude_ironic = ""