Bug 1491450

Summary: Downloaded version of virt-who configure script is not compatible with rhel6
Product: Red Hat Satellite Reporter: Perry Gagne <pgagne>
Component: Virt-who Configure PluginAssignee: Marek Hulan <mhulan>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact: satellite-doc-list
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, ehelms, mhulan, tstrachota
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman_virt_who_configure-0.1.7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:54:37 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 Perry Gagne 2017-09-13 20:39:14 UTC
Description of problem:
When using the "Download the script" button the script using the shebang 

"#! /usr/bin/bash"  

This works on RHEL7 but not on RHEL6. 


Version-Release number of selected component (if applicable):


How reproducible: Always


Steps to Reproduce:
1. Create virt-who config using plugin 
2. Use "download the script" option to say the script to a file.
3. Copy the script to a RHEL6 box, chmod +x it and run it

Actual results:
'''
[root@ibm-x3250m4-04 ~]# ./deploy_virt_who_config_2.sh
-bash: ./deploy_virt_who_config_2.sh: /usr/bin/bash: bad interpreter: No such file or directory
'''

Expected results:
The script executes correctly


Additional info: In rhel7 /bin is a symlink to /usr/bin. So a simple fix would be to change the hash bang to /bin and this should work on both.

Comment 2 Marek Hulan 2017-09-14 05:58:39 UTC
Created redmine issue http://projects.theforeman.org/issues/20918 from this bug

Comment 3 Satellite Program 2017-09-14 14:14:23 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20918 has been resolved.

Comment 4 Peter Ondrejka 2018-01-03 16:49:42 UTC
Verified on Sat 6.3 snap 30, virt-who script is now created with rhel6-compatible shebang

Comment 5 Bryan Kearney 2018-02-21 16:43:33 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

Comment 6 Satellite Program 2018-02-21 16:54:37 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