diff options
author | Maksim Malchuk <maksim.malchuk@gmail.com> | 2022-11-16 23:29:33 +0300 |
---|---|---|
committer | Maksim Malchuk <maksim.malchuk@gmail.com> | 2022-11-23 22:03:48 +0000 |
commit | f4970a3f8a07e0b7d1ee98dd1289e0a14e8f25b3 (patch) | |
tree | fe199d6d3b5da164a1039efc5f74b5fb3dd7a5ec | |
parent | 20e460dacfae6b4546903a9caaf9253330f27b5a (diff) | |
download | tempest-f4970a3f8a07e0b7d1ee98dd1289e0a14e8f25b3.tar.gz |
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>
-rw-r--r-- | tempest/api/compute/base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tempest/api/compute/base.py b/tempest/api/compute/base.py index 75df5ae7c..ea1cddc5f 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: |