From f4970a3f8a07e0b7d1ee98dd1289e0a14e8f25b3 Mon Sep 17 00:00:00 2001 From: Maksim Malchuk Date: Wed, 16 Nov 2022 23:29:33 +0300 Subject: [PATCH] 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 --- tempest/api/compute/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tempest/api/compute/base.py b/tempest/api/compute/base.py index 75df5ae7cb..ea1cddc5fc 100644 --- a/tempest/api/compute/base.py +++ b/tempest/api/compute/base.py @@ -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: