Skip to content

Commit

Permalink
Merge pull request #678 from lago-project/deploy_scripts_sleep
Browse files Browse the repository at this point in the history
deploy: Sleep 10 seconds if ssh isn't available
  • Loading branch information
ovirt-infra authored Dec 6, 2017
2 parents c8ad0db + 167d99a commit 976efa3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lago/prefix.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import shutil
import subprocess
from textwrap import dedent
import time
import urlparse
import urllib
import uuid
Expand Down Expand Up @@ -1620,7 +1621,9 @@ def _deploy_host(self, host):
return

with LogTask('Wait for ssh connectivity'):
host.wait_for_ssh()
if not host.ssh_reachable(tries=1):
time.sleep(10)
host.wait_for_ssh()

for script in deploy_scripts:
script = os.path.expanduser(os.path.expandvars(script))
Expand Down

0 comments on commit 976efa3

Please sign in to comment.