This will help with the sepia lab, being able to increase these
temporarily to handle a new fog server that is sometimes exceeding the
hardcoded timeouts.
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
'src_base_path': os.path.expanduser('~/src'),
'verify_host_keys': True,
'watchdog_interval': 120,
+ 'fog_reimage_timeout': 1800,
+ 'fog_wait_for_ssh_timeout': 600,
'kojihub_url': 'http://koji.fedoraproject.org/kojihub',
'kojiroot_url': 'http://kojipkgs.fedoraproject.org/packages',
'koji_task_url': 'https://kojipkgs.fedoraproject.org/work/',
completed)
"""
self.log.info("Waiting for deploy to finish")
- with safe_while(sleep=15, tries=120) as proceed:
+ with safe_while(sleep=15, tries=120, timeout=config.fog_reimage_timeout) as proceed:
while proceed():
if not self.deploy_task_active(task_id):
break
def _wait_for_ready(self):
""" Attempt to connect to the machine via SSH """
- with safe_while(sleep=6, tries=100) as proceed:
+ with safe_while(sleep=6, timeout=config.fog_wait_for_ssh_timeout) as proceed:
while proceed():
try:
self.remote.connect()