Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 1474564

Summary: Failed to start virt-who service in RHEL6
Product: Red Hat Satellite Reporter: Liushihui <shihliu>
Component: Subscriptions - virt-whoAssignee: Barnaby Court <bcourt>
Status: CLOSED ERRATA QA Contact: Eko <hsun>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, csnyder, cwelton, egolov, ehelms, hsun, jcallaha, pgagne, sgao, yuefliu
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: virt-who-0.20.4-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:54:17 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 Liushihui 2017-07-25 00:47:15 UTC
Description of problem:
Failed to start virt-who service in RHEL6 arch.

Version-Release number of selected component (if applicable):
virt-who-0.20.2-1.el6sat.noarch
subscription-manager-1.18.10-1.el6.x86_64
python-rhsm-1.18.7-1.el6_9.x86_64

How reproducible:
Always

Steps to Reproduce:
1. In RHEL6 arch, install virt-who-0.20.2-1.el6sat.noarch package
2. Start virt-who service
# service virt-who start
10:44:48 Starting virt-who: [FAILED]
10:44:48 Traceback (most recent call last):
10:44:48   File "/usr/bin/virt-who", line 9, in <module>
10:44:48     load_entry_point('virt-who==0.20.2', 'console_scripts', 'virt-who')()
10:44:48   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 299, in load_entry_point
10:44:48     return get_distribution(dist).load_entry_point(group, name)
10:44:48   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2229, in load_entry_point
10:44:48     return ep.load()
10:44:48   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load
10:44:48     entry = __import__(self.module_name, globals(),globals(), ['__name__'])
10:44:48   File "/usr/lib/python2.6/site-packages/virtwho/__main__.py", line 6, in <module>
10:44:48     import virtwho.main
10:44:48   File "/usr/lib/python2.6/site-packages/virtwho/main.py", line 38, in <module>
10:44:48     from virtwho.parser import parse_options, OptionError
10:44:48   File "/usr/lib/python2.6/site-packages/virtwho/parser.py", line 25, in <module>
10:44:48     from argparse import ArgumentParser, Action
10:44:48 ImportError: No module named argparse


Actual results:
Failed to start virt-who service as "ImportError: No module named argparse"

Expected results:
Virt-who can start normally

Additional info:
virt-who-0.20.2-1.el7sat.noarch can install and run normally in RHEL7 arch

Comment 1 Barnaby Court 2017-07-25 06:53:48 UTC
What version of RHEL 6 was this tested on and which RHEL 6 repositories were enabled?

Comment 2 Chris Snyder 2017-07-25 21:00:19 UTC
Evgeni added a fix for this in the PR added as an external tracker.

Comment 3 Eko 2017-07-26 01:53:39 UTC
This issue is caused by missing python-argparse package, can install it by manual, but it's more better if virt-who spec file can add "Requires" for this package.

Comment 5 Liushihui 2017-07-31 00:32:16 UTC
I used released RHEL6 to do the test. Thanks.

Comment 7 Eko 2017-10-17 03:17:43 UTC
verified it, python-argparse is required for virt-who already,

# rpm -qp --requires virt-who-0.20.4-1.el6sat.noarch.rpm 
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/usr/bin/python
chkconfig
chkconfig
config(virt-who) = 0.20.4-1.el6sat
initscripts
libvirt-python
m2crypto
python(abi) = 2.6
python-argparse
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
rpmlib(PayloadIsXz) <= 5.2-1

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