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>
This commit is contained in:
Maksim Malchuk 2022-11-16 23:29:33 +03:00
parent 20e460dacf
commit f4970a3f8a
1 changed files with 2 additions and 0 deletions

View File

@ -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: