Fix connection timeout spam in subunit logs

Wait 1 second between connection attempts, as connecting with
no delay and logging every exception was filling the subunit
logs with sometimes over 70,000 lines of IOError spam.

For an example, see:
http://logs.openstack.org/42/422942/1/check/gate-octavia-v1-dsvm-scenario-ubuntu-xenial-nv/9aa9599/logs/testrepository.0.gz

Change-Id: Id85a21a2739927b440021f338de9546ccb47088e
This commit is contained in:
Adam Harwell 2017-01-19 23:26:58 -06:00
parent e8c6f4e90f
commit 283ec721c8
2 changed files with 2 additions and 0 deletions

View File

@ -635,6 +635,7 @@ class BaseTestCase(manager.NetworkScenarioTest):
if (time.time() - start) > timeout:
message = "Timed out trying to connect to %s" % check_ip
raise exceptions.TimeoutException(message)
time.sleep(1)
def _send_requests(self, vip_ip, path=''):
counters = dict()

View File

@ -599,6 +599,7 @@ class BaseTestCase(manager.NetworkScenarioTest):
if (time.time() - start) > timeout:
message = "Timed out trying to connect to %s" % check_ip
raise exceptions.TimeoutException(message)
time.sleep(1)
def _send_requests(self, vip_ip, path=''):
counters = dict()