Bug 2119536
| Summary: | Standard REX commands fail with the error 'Unmatched '"'.' if the login shell of the SSH user is /usr/bin/csh on the target system | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Sayan Das <saydas> |
| Component: | Remote Execution | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED MIGRATED | QA Contact: | Satellite QE Team <sat-qe-bz-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.11.1 | CC: | aruzicka, pdwyer, smajumda |
| Target Milestone: | Unspecified | Keywords: | MigratedToJIRA, Triaged |
| Target Release: | Unused | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-06-06 12:26:05 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
Sayan Das
2022-08-18 18:08:25 UTC
Yes, csh has its own syntax which is sufficiently different from what other shells (sh/bash/ash/dash/zsh) use to cause problems. You would run into a similar sort of issues if you used fish shell. Is there a reason why a user dedicated to remote execution has to use this somewhat exotic shell? Hello Adam, No idea. Because there was an escalation raised on the support case just because of this issue and No one was able to identify it initially, I had to raise the BZ. The user gladly changed the shell when I pointed out the issue to the case engineer. So I would assume the csh shell was not a dependency for the user. But my testing shows that Ansible-based REX worked just fine, not the REX that uses the SSH rubygem . Perhaps the error can be improved a bit rather than saying "Unmatched '"'." which basically is not at all helpful. -- Sayan It is slightly better on stream. Running `id` as a user with csh set as shell the job still fails, but slightly differently 1: uid=1000(rex) gid=1000(rex) groups=1000(rex) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 2: Illegal variable name. 3: »Exit status: 1« 4: StandardError: »Job execution failed« This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there. Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information. To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "SAT-" followed by an integer. You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like: "Bugzilla Bug" = 1234567 In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information. |