Bug 2048560
Summary: | REX doesn't honor effective_user when async_ssh is true | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Joniel Pasqualetto <jpasqual> |
Component: | Remote Execution | Assignee: | Adam Ruzicka <aruzicka> |
Status: | CLOSED ERRATA | QA Contact: | Peter Ondrejka <pondrejk> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.10.1 | CC: | ahumbe, aruzicka, ehelms, jsenkyri, lstejska, pcreech, pondrejk |
Target Milestone: | 6.11.0 | Keywords: | Regression, Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | tfm-rubygem-smart_proxy_remote_execution_ssh-0.5.3 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-07-05 14:32:43 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
Joniel Pasqualetto
2022-01-31 14:13:43 UTC
FYI this is not reproducible on Satellite 6.9 Created redmine issue https://projects.theforeman.org/issues/34368 from this bug Upstream bug assigned to aruzicka Upstream bug assigned to aruzicka Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34368 has been resolved. Alright, rephrasing as a public comment. Password-less effective user with async_ssh used to work some time in the past, so this indeed is a regression. On the other hand, if I'm reading things right, effective user with password and async ssh never worked at all. This BZ will cover only the use case when password is NOT required to change the user on the remote host. Or to put it differently, thiz BZ deals with only password-less variants of the effective user methods. This allows us to make the change simple and small and even deliver it into Z-streams. The changes necessary for making effective user with password and async ssh working will be much larger and will be tracked as a separate BZ to allow us to do it properly. BZ #2051999 is the BZ tracking this effort. Checked on Satellite 7.0 snap 9, a rex job with assync_ssh:true and effective user specified (password-less sudo) hangs in the pending state until connection timeout. Unfortunately, I couldn't find anything revealing in logs. Root user with assync_ssh:true works as expected, same for effective user with assync_ssh:false Could I take a look at the machine? It worked just fine on a machine I just deployed. Alright, after investigating pondrejk's machine I must admit this indeed does not work when the effective user is non-root, whereas in #15 I was testing non-root connection user and root effective user Verified on Satellite 6.11 snap 16, effective user is accepted when running rex jobs even if going from root to non-root. 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 (Moderate: Satellite 6.11 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:5498 |