Red Hat Satellite 6: Remote Execution is getting failed with error: Error initializing command: Net::SSH::ConnectionTimeout - Net::SSH::ConnectionTimeout.
Environment
- Red Hat Satellite 6.x
- A jumpserver between satellite and client.
Issue
-
When trying to execute remote job on content-hosts registered to
Red Hat Satellitegetting below error:Error initializing command: Net::SSH::ConnectionTimeout - Net::SSH::ConnectionTimeout
Resolution
-
Verify for ssh connection and passwordless sudo from satellite server to content host.
-
Mention parameter
remote_execution_fallback_proxyasYesonRed Hat Satelliteas below:- Satellite Web UI --> Administer --> Settings --> select
Remote Executiontab --> modify
remote_execution_fallback_proxytoyes.
- Satellite Web UI --> Administer --> Settings --> select
-
While using a jumpserver between the satellite server and the client, the below entry is required in the file
~foreman-proxy/.ssh/configHost client.example.com ProxyCommand ssh -W %h:%p jumpserver.example.com -
Based on the shared ssh key of the host set the content source as Red Hat satellite/Capsule FQDN.
- Satellite WEBUI --> Hosts --> All Hosts --> Select the Client Host --> Edit --> Set
Content Sourceto the Satellite/Capsule server.
- Satellite WEBUI --> Hosts --> All Hosts --> Select the Client Host --> Edit --> Set
For more KB articles/solutions related to Red Hat Satellite 6.x Remote Execution Issues,refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Remote Execution Issues.
Root Cause
- Parameter
remote_execution_fallback_proxywas not set to yes onRed Hat Satellite UI.
Diagnostic Steps
-
While running the remote execution job on the content host, the below error is observed:
Error initializing command: Net::SSH::ConnectionTimeout - Net::SSH::ConnectionTimeout -
Remote job initiating from capsule when SSH key is shared with Red Hat satellite server. Dynflow console shows proxy URL as capsule instead of Red Hat satellite:
proxy_url: https://capsule.net:9090
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.