Fix Compute Live Migration tests with Ironic

In some deployments when Nova Compute configured together with Ironic
service there are many test_live_migration.* tests failed with an
error "Migration pre-check error: Unable to migrate...". This change
fix the issue removing '*-ironic' hosts (used in Kolla-Ansible).
The other deployments (OpenStack-Ansible, TripleO, etc.) should
deploy the Ironic-Complute services with correct hostnames.

Change-Id: I47993d16b86671433a64c6db57d53c2d15f8a7ae
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
changes/89/864789/3
Maksim Malchuk 3 months ago
parent 20e460dacf
commit f4970a3f8a

@ -698,6 +698,8 @@ class BaseV2ComputeAdminTest(BaseV2ComputeTest):
binary='nova-compute')['services']
hosts = []
for svc in svcs:
if svc['host'].endswith('-ironic'):
continue
if svc['state'] == 'up' and svc['status'] == 'enabled':
if CONF.compute.compute_volume_common_az:
if svc['zone'] == CONF.compute.compute_volume_common_az:

Loading…
Cancel
Save