tempest/tempest/common/utils
Slawek Kaplonski 126fe656a9 Wait couple of seconds for dns servers to be set in the guest
In test
tempest.scenario.test_network_basic_ops.TestNetworkBasicOps.test_subnet_details
there is renewal of the DHCP lease made to configure dns nameservers.
And sometimes this test is failing due to missing nameservers in the
/etc/resolv.conf file in the guest VM.
After analyzing logs from such failed jobs I think that the reason of
that may be race between getting dns nameservers from guest VM by test
and actually configuring it inside the guest vm.
So this patch proposes to add wait (5 seconds by default) for non empty
list of the dns nameservers returned from the guest VM. That should
avoid such failures of that test.

Closes-bug: #1914229
Change-Id: I093ae5c11f88cc29e91285ff674788de53645b4e
2021-07-23 13:22:16 +02:00
..
linux Wait couple of seconds for dns servers to be set in the guest 2021-07-23 13:22:16 +02:00
__init__.py Finally remove the old data-utils 2021-02-23 14:27:09 +00:00
net_info.py Use a common method for is a router interface 2016-10-07 20:42:24 +02:00
net_utils.py Add autopep8 to tox.ini 2019-03-08 16:04:05 +01:00