Bug 2125700

Summary: Unable to perform remote execution tasks from Satellite 6.11 webUI
Product: Red Hat Satellite Reporter: Ricardo Santamaria <risantam>
Component: Remote ExecutionAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Peter Ondrejka <pondrejk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.11.2CC: aruzicka, jpasqual
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-12 08:10:48 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 Ricardo Santamaria 2022-09-09 18:54:55 UTC
Description of problem:
Unable to do remote execution from Satellite 6.11 webUI. tcpdump monitoring on satellite and host show no communcicaiton taking place. 

Version-Release number of selected component (if applicable):
Red Hat Satellite 6.11

How reproducible:
General remote execution to a host from Satellite 

Steps to Reproduce:
1. setup remote execution on Satellite and attempt simple rex command 
2. monitor attempted execution to content host in the webUI

Actual results:
Remote execution task shows:
~~~
 output: "Error initializing command: RuntimeError - Unable to create directory
      on remote system /var/tmp/foreman-ssh-cmd-2574f1ba-7489-485d-9589-dfa91ec82c38:
      exit code: 255\n ssh_exchange_identification: Connection closed by remote host\r\n"
    timestamp: 1662571838.5388534
~~~

Find:

~~~
2022-09-08T17:17:26  [E] error while initializing command RuntimeError Unable to create directory on remote system /var/tmp/foreman-ssh-cmd-bafd9273-8848-40dd-83ef-207dcef459bf: exit code: 255
 ssh_exchange_identification: Connection closed by remote host^M
~~~

Expected results:
Satellite remote execution to function as in previous versions. 


Additional info:
RELATED TO: 
https://community.theforeman.org/t/all-remote-execution-jobs-fail-immediately-with-exception/27156/8"

Comment 2 Adam Ruzicka 2022-09-12 08:10:48 UTC
Unless I'm missing something this is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2108637, closing. If you feel the other BZ doesn't fully cover the issue described here, feel free to reopen.

*** This bug has been marked as a duplicate of bug 2108637 ***