From 5daba8e6ba82771b92e311306133944cc226f106 Mon Sep 17 00:00:00 2001 From: yatinkarel Date: Thu, 25 Jul 2024 11:33:56 +0530 Subject: [PATCH] Handle fqdn in OCP nodes Follow up of [1], we also need to handle OCP node names including fqdns. [1] https://review.opendev.org/c/x/whitebox-neutron-tempest-plugin/+/924394 Change-Id: Ia53caaa7d9d26dd45acbcd6e5f5d9ef49726fc74 --- whitebox_neutron_tempest_plugin/tests/scenario/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whitebox_neutron_tempest_plugin/tests/scenario/base.py b/whitebox_neutron_tempest_plugin/tests/scenario/base.py index 728459a..edb8431 100644 --- a/whitebox_neutron_tempest_plugin/tests/scenario/base.py +++ b/whitebox_neutron_tempest_plugin/tests/scenario/base.py @@ -216,7 +216,7 @@ class BaseTempestWhiteboxTestCase(base.BaseTempestTestCase): if address['type'] == 'InternalIP': ocp_main_ip = address['address'] if address['type'] == 'Hostname': - ocp_hostname = address['address'] + ocp_hostname = address['address'].split('.')[0] if ocp_main_ip and ocp_hostname == host.split('.')[0]: LOG.debug('IP address found for %s: %s', host, ocp_main_ip) return ocp_main_ip