Merge "Fix unstability in test_subnet_details"

This commit is contained in:
Zuul 2021-05-11 18:39:18 +00:00 committed by Gerrit Code Review
commit 393e94a604

View File

@ -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),