Bug 1451675 - Using effective user leads to Error initializing command: RuntimeError - Unable to upload file on remote system: exit code: 127
Summary: Using effective user leads to Error initializing command: RuntimeError - Unab...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Remote Execution
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: Ivan Necas
QA Contact: Adam Ruzicka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-17 09:24 UTC by Ivan Necas
Modified: 2021-05-24 08:33 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:51:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
verification screenshot (45.28 KB, image/png)
2017-08-23 07:03 UTC, Adam Ruzicka
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 19575 0 Normal Closed Using effective user leads to Error initializing command: RuntimeError - Unable to upload file on remote system: exit co... 2021-02-17 17:45:20 UTC
Red Hat Bugzilla 1389262 1 None None None 2021-08-30 13:29:26 UTC

Internal Links: 1389262

Description Ivan Necas 2017-05-17 09:24:45 UTC
Description of problem:

Error initializing command: RuntimeError - Unable to upload file to /var/tmp/foreman-ssh-cmd-c8506e1b-558d-45a1-a8b5-b4a1c77d7fd3/script on remote system: exit code: 127

Version-Release number of selected component (if applicable):
tfm-rubygem-remote-execution-core 1.0.3

How reproducible:
always

Steps to Reproduce:
1. run job with non-root effective user


Actual results:
The jobs fails with 'Error initializing command: RuntimeError - Unable to upload file to /var/tmp/foreman-ssh-cmd-c8506e1b-558d-45a1-a8b5-b4a1c77d7fd3/script on remote system: exit code: 127' as the result

Expected results:
job doesn't fail with this error

Additional info:
This is a regression introduced in https://bugzilla.redhat.com/show_bug.cgi?id=1389262

Comment 1 Ivan Necas 2017-05-17 09:28:20 UTC
Created redmine issue http://projects.theforeman.org/issues/19575 from this bug

Comment 2 Satellite Program 2017-05-17 10:15:49 UTC
Upstream bug assigned to inecas

Comment 3 Satellite Program 2017-05-17 10:15:55 UTC
Upstream bug assigned to inecas

Comment 4 Satellite Program 2017-05-17 12:16:00 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/19575 has been resolved.

Comment 6 Adam Ruzicka 2017-08-23 07:03:23 UTC
Created attachment 1316962 [details]
verification screenshot

Comment 7 Adam Ruzicka 2017-08-23 07:03:50 UTC
Verified.
Version Tested: Satellite-6.3 Snap 12

Package versions:
satellite-6.3.0-16.0.beta.el7sat.noarch
tfm-rubygem-foreman_remote_execution-1.3.3-1.fm1_15.el7sat.noarch
tfm-rubygem-foreman_remote_execution-1.3.3-1.fm1_15.el7sat.noarch

Ran a job on a remote host with effective user set, the job finished successfully. See attachment in #6.

Comment 8 Satellite Program 2018-02-21 16:51:07 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, 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-2018:0336


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