diff --git a/whitebox_neutron_tempest_plugin/tests/scenario/test_internal_dns.py b/whitebox_neutron_tempest_plugin/tests/scenario/test_internal_dns.py index a2f1556..398db72 100644 --- a/whitebox_neutron_tempest_plugin/tests/scenario/test_internal_dns.py +++ b/whitebox_neutron_tempest_plugin/tests/scenario/test_internal_dns.py @@ -276,8 +276,10 @@ class InternalDNSInterruptionsTestOvn(InternalDNSBaseOvn): vm_1['fip'] = self.create_floatingip(port=dns_port) # restart controller service on compute which runs guest VM self.discover_nodes() - compute_hostname = self.get_host_for_server( - vm_1['server']['id']) + vm_1_updated_details = self.os_admin.servers_client.show_server( + vm_1['server']['id'])['server'] + compute_hostname = vm_1_updated_details[ + 'OS-EXT-SRV-ATTR:hypervisor_hostname'] compute_client = self.find_node_client(compute_hostname) self.reset_node_service('ovn controller', compute_client) # validate hostname configured on VM is same as VM's name