Browse Source

Merge "Fix unstability in test_subnet_details"

changes/19/791319/1
Zuul 1 month ago
committed by Gerrit Code Review
parent
commit
393e94a604
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      tempest/scenario/test_network_basic_ops.py

+ 7
- 0
tempest/scenario/test_network_basic_ops.py 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),


Loading…
Cancel
Save