Bug 1931532 - When running remote execution from Satellite to an RHEL 8 with tlog enabled it fails.
Summary: When running remote execution from Satellite to an RHEL 8 with tlog enabled i...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Remote Execution
Version: 6.8.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: 6.12.0
Assignee: satellite6-bugs
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-22 16:13 UTC by Rudnei Bertol Jr.
Modified: 2023-01-26 19:14 UTC (History)
6 users (show)

Fixed In Version: tfm-rubygem-smart_proxy_remote_execution_ssh-0.5.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-16 13:32:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 31959 0 Normal New "Unable to upload file" when performing ssh command 2021-02-25 09:54:44 UTC
Red Hat Issue Tracker SAT-12405 0 None None None 2022-08-23 15:56:20 UTC
Red Hat Knowledge Base (Solution) 6985943 0 None None None 2023-01-26 19:14:02 UTC
Red Hat Product Errata RHSA-2022:8506 0 None None None 2022-11-16 13:32:36 UTC

Description Rudnei Bertol Jr. 2021-02-22 16:13:57 UTC
Description of problem:

When running a REX job via SSH from the Satellite to an RHEL8 host with tlog [1] enabled, it fails with the following error.

~~~
Error initializing command: RuntimeError - Unable to upload file to ... on remote system: exit code: PIPE
Exit status: EXCEPTION
~~~

[1] - https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/recording_sessions/index

Version-Release number of selected component (if applicable):

Satellite 6.8

How reproducible:

Try to run any REX job via SSH into an RHEL 8 host with tlog.

A reproducer environment will be available on a private comment.

Steps to Reproduce:
1. 
2.
3.

Actual results:

The REX fails with the following message.

~~~
   1:
Error initializing command: RuntimeError - Unable to upload file to /var/tmp/foreman-ssh-cmd-1a5fd374-5dda-4e8b-b3da-2119ca2e7b69/script on remote system: exit code: PIPE
   2:
Exit status: EXCEPTION
~~~

Expected results:

Be able to execute a REX job via ssh on an RHEL 8 host

Additional info:

Comment 6 Adam Ruzicka 2022-01-04 14:51:45 UTC
I finally got around to setting up a new enough rhel with tlog enabled. Good news is the changes we did to smart_proxy_remote_execution_ssh which are going to land in Satellite 7.0 seem to fix this as well. Bad news is the changes are too large to backport so this will be a 7.0+ only thing.

Comment 10 Peter Ondrejka 2022-07-22 12:21:06 UTC
Verified on Satellite 6.12 sn3, ssh job ran successfully against a host that records a tlog session and has with customizations in /etc/profile.d

Comment 15 errata-xmlrpc 2022-11-16 13:32:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.12 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:8506


Note You need to log in before you can comment on or make changes to this bug.