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:
parent
e8c6f4e90f
commit
283ec721c8
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue