Sandro Bonazzola has uploaded a new change for review. Change subject: ssh: avoid connection timeouts ......................................................................
ssh: avoid connection timeouts On some hypervistor the sosreport collection can take more than 900 seconds (default ClientAliveInterval). Calling ssh with -oServerAliveInterval=600 avoid the connection timeout for ServerAliveCountMax (deafults=3) times. Change-Id: I19075dd1a39ed0f9f7242897157d017c2375aad6 Bug-Url: https://bugzilla.redhat.com/962677 Signed-off-by: Sandro Bonazzola <sbona...@redhat.com> --- M src/__main__.py 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-log-collector refs/changes/93/16293/1 diff --git a/src/__main__.py b/src/__main__.py index fa71eb9..8a3ae13 100755 --- a/src/__main__.py +++ b/src/__main__.py @@ -51,6 +51,8 @@ PGPASS_FILE_ADMIN_LINE = "DB ADMIN credentials" DEFAULT_SCRATCH_DIR = None # Will be initialized by __main__ +SSH_SERVER_ALIVE_INTERVAL = 600 + # Default DB connection params pg_user = 'postgres' pg_pass = None @@ -540,6 +542,8 @@ # ignore host key checking cmd += "-oStrictHostKeyChecking=no " + # keep alive the connection + cmd += '-oServerAliveInterval=%d ' % SSH_SERVER_ALIVE_INTERVAL cmd += self.get_ssh_user() -- To view, visit http://gerrit.ovirt.org/16293 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I19075dd1a39ed0f9f7242897157d017c2375aad6 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-log-collector Gerrit-Branch: master Gerrit-Owner: Sandro Bonazzola <sbona...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches