Red Hat Satellite 6: Remote Execution is getting failed with error: Error initializing command: Net::SSH::ConnectionTimeout - Net::SSH::ConnectionTimeout.

Solution Verified - Updated

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 Satellite getting 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_proxy as Yes on Red Hat Satellite as below:

    • Satellite Web UI --> Administer --> Settings --> select Remote Execution tab --> modify
      remote_execution_fallback_proxy to yes.
  • While using a jumpserver between the satellite server and the client, the below entry is required in the file ~foreman-proxy/.ssh/config

    Host 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 Source to the Satellite/Capsule server.

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_proxy was not set to yes on Red 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
    
SBR
Product(s)
Components
Category

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.