Bug 691537

Summary: sos depends on rpm-python but that is not included as a dependency on the sos rpm
Product: Red Hat Enterprise Linux 6 Reporter: Guil Barros <gbarros>
Component: sosAssignee: Bryn M. Reeves <bmr>
Status: CLOSED ERRATA QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: high Docs Contact:
Priority: medium    
Version: 6.0CC: agk, bmr, dkutalek, gavin, jwest, prc, syeghiay, tcapek
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sos-2.2-8.el6 Doc Type: Bug Fix
Doc Text:
Previously, when sos was run without the rpm-python package installed, the sosreport program terminated with a traceback. With this update, the rpm-python package has been added into the sos spec file as a required package and this bug no longer occurs.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 14:27:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Guil Barros 2011-03-28 18:57:35 UTC
Description of problem:
sosreport requires rpm-python but that is not a dependency of the sos rpm

Version-Release number of selected component (if applicable):
sos-2.2-2.el6.noarch

How reproducible:
every time

Steps to Reproduce:
1. remove rpm-python (if installed)
2. install sos
3. attempt to run sos
  
Actual results:
Traceback (most recent call last):
  File "/usr/sbin/sosreport", line 18, in <module>
    from sos.sosreport import sosreport, doExitCode
  File "/usr/lib/python2.6/site-packages/sos/sosreport.py", line 40, in <module>
    import sos.policyredhat
  File "/usr/lib/python2.6/site-packages/sos/policyredhat.py", line 31, in <module>
    import rpm
ImportError: No module named rpm

Expected results:
sos should run

Comment 2 RHEL Program Management 2011-04-04 02:02:03 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 8 Tomas Capek 2011-05-18 14:49:33 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:
Previously, when sos was run without the rpm-python package installed, the sosreport program terminated with a traceback. With this update, the rpm-python package has been added into the sos spec file as a required package and this bug no longer occurs.

Comment 9 errata-xmlrpc 2011-05-19 14:27:58 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

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