Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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 ***