Bug 1565830

Summary: Remote execution will fail with Net::SSH::ConnectionTimeout if the global ssh client ConnectTimeout setting is set to 0
Product: Red Hat Satellite Reporter: Pablo Hess <phess>
Component: Remote ExecutionAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Peter Ondrejka <pondrejk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: aruzicka, aupadhye, cdonnell, echen, hmore, inecas, rajasekar.m, rchauhan
Target Milestone: UnspecifiedKeywords: PrioBumpGSS, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-03 12:53:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pablo Hess 2018-04-10 21:00:04 UTC
Description of problem:
When OpenSSH's client settings specify ConnectTimeout as 0 (zero), net/ssh will immediately timeout when attempting an SSH connection. In contrast, openssh-client (the ssh command) will complete successfully using the exact same client config file.

This is preventing Satellite 6.3.0 from running remote execution jobs if "ConnectTimeout 0" is set in either ~foreman-proxy/.ssh/config or /etc/ssh/ssh_config.


Version-Release number of selected component (if applicable):
tfm-rubygem-net-ssh-4.0.1-2.el7sat.noarch


How reproducible:
Every time.

Steps to Reproduce:
1. Add this content to /etc/ssh/ssh_config on a Satellite 6.3:
Host *
  ConnectTimeout 0
2. Attempt to run any remote execution job.


Actual results:
Fails every time with:
Error initializing command: Net::SSH::ConnectionTimeout -  Net::SSH::ConnectionTimeout
Exit status: EXCEPTION


Expected results:
It should interpret "ConnectTimeout 0" exactly like the openssh client utility does. Apparently openssh client will ignore ConnectTimeout if set to 0.


Additional info:

This issue is new to Satellite 6.3.0.

Changing the @server_version declaration in line 84 of usr/share/gems/gems/net-ssh-4.0.1/lib/net/ssh/transport/session.rb to set any integer instead of relying on options[:timeout] resolved the issue during my tests.

Comment 3 rajasekar 2018-05-07 21:27:25 UTC
is there any update on this bug

Comment 6 rajasekar 2018-09-03 22:41:00 UTC
Hi Team,

Seems this bug is still exits in satellite 6.3.3, let me know thw status.

Comment 10 Bryan Kearney 2019-11-04 14:34:15 UTC
The Satellite Team is attempting to provide an accurate backlog of bugzilla requests which we feel will be resolved in the next few releases. We do not believe this bugzilla will meet that criteria, and have plans to close it out in 1 month. This is not a reflection on the validity of the request, but a reflection of the many priorities for the product. If you have any concerns about this, feel free to contact Red Hat Technical Support or your account team. If we do not hear from you, we will close this bug out. Thank you.

Comment 11 Bryan Kearney 2019-12-03 12:53:49 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this, please do not reopen. Instead, feel free to contact Red Hat Technical Support. Thank you.