Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

[RFR] Add timeout handling to appliance config and clone_template script #9820

Merged
merged 1 commit into from
Jan 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cfme/utils/appliance/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,9 @@ def configure(self, log_callback=None, **kwargs):
on_gce = kwargs.pop('on_gce', False)
on_openstack = kwargs.pop('on_openstack', False)
rails_deprecations = kwargs.pop('rails_deprecations', ':log')
ssh_timeout = kwargs.pop('timeout', 600)
with self as ipapp:
ipapp.wait_for_ssh()
ipapp.wait_for_ssh(timeout=ssh_timeout)

# Debugging - ifcfg-eth0 overwritten by unknown process
# Rules are permanent and will be reloade after machine reboot
Expand Down
2 changes: 1 addition & 1 deletion scripts/clone_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def main(**kwargs):
# openshift appliances don't need any additional configuration
pass
else:
app.configure()
app.configure(timeout=600)
logger.info('Successfully Configured the appliance.')
except Exception as e:
logger.exception(e)
Expand Down