Bug 1445807
| Summary: | [RFE] Allow choice of target shell in Remote Execution | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Rick Dixon <rdixon> |
| Component: | Remote Execution | Assignee: | Adam Ruzicka <aruzicka> |
| Status: | CLOSED ERRATA | QA Contact: | Ivan Necas <inecas> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.2.8 | CC: | aruzicka, bbuckingham, bkearney, ehelms, inecas, jcallaha, rdixon |
| Target Milestone: | Unspecified | Keywords: | FutureFeature, Triaged |
| Target Release: | Unused | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | foreman_remote_execution_core 1.0.4 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-02-21 12:39:11 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
Rick Dixon
2017-04-26 14:28:43 UTC
The root issue is that we apparently rely on some "bashisms" when executing the script provided by the user. We should probably rewrite those behind-the-scenes things to be /bin/sh compatible to be able to run anywhere. Would this work for you? This way there would be no need to explicitly select a shell in the UI. If the users want to have the script by another shell/interpreter they can always provide a shebang in the job template Created redmine issue http://projects.theforeman.org/issues/19401 from this bug Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/19401 has been resolved. Version Tested: Satellite-6.3 Snap 11 1. installed tcsh package on remote client, set root's default to tcsh 2. run `echo $SHELL;ls;` job 3. job succeeded with: /usr/bin/tcsh anaconda-ks.cfg dynflow-temrinate-timeout.patch NETBOOT_METHOD.TXT original-ks.cfg RECIPE.TXT ssl-build Exit status: 0 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 |