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
1 file changed