Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1337758

Summary: virt-who need to add required package "python-setuptools.noarch"
Product: Red Hat Enterprise Linux 7 Reporter: Eko <hsun>
Component: virt-whoAssignee: Radek Novacek <rnovacek>
Status: CLOSED ERRATA QA Contact: Eko <hsun>
Severity: high Docs Contact:
Priority: high    
Version: 7.3CC: ovasik, sgao, shihliu
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: virt-who-0.17-2.el7 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 05:09:07 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 Eko 2016-05-20 02:26:31 UTC
Description of problem:
start virt-who service, will show "ImportError: No module named pkg_resources"
pkg_resources is provided by python-setuptools, it's not installed by default.

Version-Release number of selected component (if applicable):
- RHEL-7.3-20160517.n.0 Server x86_64
- virt-who-0.17-1.el7.noarch
- subscription-manager-1.17.6-1.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. install RHEL-7.3-20160517.n.0 Server x86_64

2. yum install virt-who package

3. start virt-who service
# virt-who
Traceback (most recent call last):
  File "/usr/bin/virt-who", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

4. check virt-who requires, there is no python-setuptools required
# rpm -q --requires virt-who
/bin/sh
/bin/sh
/bin/sh
/usr/bin/python2
config(virt-who) = 0.17-1.el7
libvirt-python
m2crypto
python(abi) = 2.7
python-requests
python-rhsm >= 1.10.10
python-suds
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
systemd
systemd
systemd
systemd-python
rpmlib(PayloadIsXz) <= 5.2-1

5. yum install python-setuptools and run virt-who again
# rpm -qa python-setuptools
python-setuptools-0.9.8-4.el7.noarch

# virt-who 
2016-05-19 22:24:18,185 INFO: No configurations found, using libvirt as backend
2016-05-19 22:24:18,185 INFO: Using configuration "env/cmdline" ("libvirt" mode)
2016-05-19 22:24:18,185 INFO: Using reporter_id='hp-z220-10.qe.lab.eng.nay.redhat.com-756f6cbed76041bc84d9248d53192be7'
2016-05-19 22:24:18,243 INFO: Using libvirt url: ""
.....


Actual results:
virt-who requires python-setuptools for pkg_resources module

Expected results:
add python-setuptools requires to virt-who

Additional info:

Comment 2 Radek Novacek 2016-05-31 08:54:43 UTC
Fixed in virt-who-0.17-2.el7.

Comment 4 Eko 2016-06-08 05:35:33 UTC
verified with virt-who-0.17-2.el7

# rpm -q --requires virt-who
/bin/sh
/bin/sh
/bin/sh
/usr/bin/python2
config(virt-who) = 0.17-2.el7
libvirt-python
m2crypto
python(abi) = 2.7
python-requests
python-rhsm >= 1.10.10
python-setuptools
python-suds
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
systemd
systemd
systemd
systemd-python
rpmlib(PayloadIsXz) <= 5.2-1

Comment 6 errata-xmlrpc 2016-11-04 05:09:07 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://rhn.redhat.com/errata/RHBA-2016-2387.html