Use hypervisor_hostname instead of host to find computes
Before this patch, the test test_dns_name_after_ovn_controller_restart used the value from VM's `OS-EXT-SRV-ATTR:host` to search for the corresponding compute node within the inventory. Due to recent changes, the compute name has changed in the inventory and the proper value that needs to be searched corresponds with `OS-EXT-SRV-ATTR:hypervisor_hostname` instead. This patch fixes test_dns_name_after_ovn_controller_restart by using the value from `OS-EXT-SRV-ATTR:hypervisor_hostname`. Change-Id: I2e928c987c0446b6c8b8a93abcb58122d3173207
This commit is contained in:
parent
d32e91b857
commit
fb8b12850c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user