Bug #19575
closedUsing effective user leads to Error initializing command: RuntimeError - Unable to upload file on remote system: exit code: 127
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1451675
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