Fix test_schedule_to_all_node to support installation with ironic
When OpenStack cloud is installed with Ironic using Kolla-Ansible
there will be additional "сompute" hosts named '*-ironic'.
Proposed fix removes such hosts from hosts list used to create VM
Closes-Bug: 2025604
Change-Id: I91060e0a6ee339237da982356afabba9c4451cdb
diff --git a/tempest/scenario/test_server_multinode.py b/tempest/scenario/test_server_multinode.py
index 9285da2..023ad70 100644
--- a/tempest/scenario/test_server_multinode.py
+++ b/tempest/scenario/test_server_multinode.py
@@ -46,7 +46,8 @@
if zone['zoneState']['available']:
for host in zone['hosts']:
if 'nova-compute' in zone['hosts'][host] and \
- zone['hosts'][host]['nova-compute']['available']:
+ zone['hosts'][host]['nova-compute']['available'] and \
+ not host.endswith('-ironic'):
hosts.append({'zone': zone['zoneName'],
'host_name': host})