Merge "Fix unstability in test_subnet_details"
This commit is contained in:
commit
393e94a604
@ -624,6 +624,13 @@ class TestNetworkBasicOps(manager.NetworkScenarioTest):
|
||||
ssh_client = self.get_remote_client(
|
||||
ip_address, private_key=private_key, server=server)
|
||||
|
||||
# NOTE: Server needs to renew its dhcp lease in order to get new
|
||||
# definitions from subnet
|
||||
# NOTE(amuller): we are renewing the lease as part of the retry
|
||||
# because Neutron updates dnsmasq asynchronously after the
|
||||
# subnet-update API call returns.
|
||||
ssh_client.renew_lease(fixed_ip=floating_ip['fixed_ip_address'],
|
||||
dhcp_client=CONF.scenario.dhcp_client)
|
||||
dns_servers = [initial_dns_server]
|
||||
servers = ssh_client.get_dns_servers()
|
||||
self.assertEqual(set(dns_servers), set(servers),
|
||||
|
Loading…
Reference in New Issue
Block a user