Commit a83e0e70 authored by Sebastien Robin's avatar Sebastien Robin

testnode: give more time for the proxy to start

The timeout of 10 seconds was too short for some machines
parent 0eb35870
...@@ -239,7 +239,7 @@ class SlapOSControler(object): ...@@ -239,7 +239,7 @@ class SlapOSControler(object):
# Wait for proxy to accept connections # Wait for proxy to accept connections
retries = 0 retries = 0
while True: while True:
time.sleep(.5) time.sleep(1)
try: try:
slap.initializeConnection(config['master_url']) slap.initializeConnection(config['master_url'])
computer = slap.registerComputer(config['computer_id']) computer = slap.registerComputer(config['computer_id'])
...@@ -247,7 +247,7 @@ class SlapOSControler(object): ...@@ -247,7 +247,7 @@ class SlapOSControler(object):
computer.getComputerPartitionList() computer.getComputerPartitionList()
except slapos.slap.ConnectionError, e: except slapos.slap.ConnectionError, e:
retries += 1 retries += 1
if retries >= 20: if retries >= 60:
raise raise
logger.debug("Proxy still not started %s, retrying", e) logger.debug("Proxy still not started %s, retrying", e)
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment