RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 708181 - Fix instances of #!/usr/bin/env python in virt-manager
Summary: Fix instances of #!/usr/bin/env python in virt-manager
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-manager
Version: 6.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Cole Robinson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-26 21:23 UTC by Juan J. Cavallaro
Modified: 2011-12-06 16:14 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of: 708178
Environment:
Last Closed: 2011-12-06 16:14:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1642 0 normal SHIPPED_LIVE virt-manager bug fix and enhancement update 2011-12-06 00:50:37 UTC

Description Juan J. Cavallaro 2011-05-26 21:23:45 UTC
+++ This bug was initially created as a clone of Bug #708178 +++

> Description of problem:
Fix instances of #!/usr/bin/env python in virt-manager

> Version-Release number of selected component (if applicable):
All releases found on RHEL 5.

> How reproducible:
Always, if /usr/bin is removed off $PATH or if a different/custom Python release is placed on another directory and this directory preceeds /usr/bin in $PATH.

> Steps to Reproduce:
 $ grep python /usr/bin/virt-manager 
 
> Actual results:
exec python "/usr/share/virt-manager/virt-manager.py" "$@"

> Expected results:
exec /usr/bin/python "/usr/share/virt-manager/virt-manager.py" "$@"

> Additional info:
Reported on SFDC#00317745.

Comment 1 Juan J. Cavallaro 2011-05-26 21:25:37 UTC
Version-Release should read: All releases found on RHEL 6.

Comment 4 Cole Robinson 2011-07-28 15:30:07 UTC
Fixed in virt-manager-0.9.0-2.el6

Comment 7 zhe peng 2011-08-05 09:50:08 UTC
according comment 6 move to assigned.

Comment 8 Cole Robinson 2011-08-24 16:42:17 UTC
Sorry, missed a few. Upstream now:

http://git.fedorahosted.org/git?p=virt-manager.git;a=commit;h=5104669795788a1685006761b437e9b296840f89

Comment 9 Cole Robinson 2011-08-30 19:38:25 UTC
Fixed in virt-manager-0.9.0-6.el6

Comment 10 zhe peng 2011-09-01 07:34:52 UTC
verify with :
libvirt-0.9.4-6.el6
qemu-kvm-0.12.1.2-2.184.el6
kernel-2.6.32-191.el6
virt-manager-0.9.0-6.el6
python-virtinst-0.600.0-3.el6

step:
1:remove /usr/bin from $PATH
#echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/root/bin
#grep python /usr/bin/virt-manager 
exec /usr/bin/python "/usr/share/virt-manager/virt-manager.py" "$@"
#/usr/bin/virt-manager
the virt-manager will launch successful.
Verification passed.

Comment 11 Min Zhan 2011-09-02 06:17:42 UTC
Move to VERIFIED per Comment #10.

Comment 12 Cole Robinson 2011-11-07 16:40:06 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No description necessary

Comment 13 errata-xmlrpc 2011-12-06 16:14:15 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.

http://rhn.redhat.com/errata/RHBA-2011-1642.html


Note You need to log in before you can comment on or make changes to this bug.