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 983999 - rhn-client-tools + sosreport = crash
Summary: rhn-client-tools + sosreport = crash
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rhn-client-tools
Version: 6.6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Milan Zázrivec
QA Contact: Lukas Pramuk
URL:
Whiteboard:
: 982147 1004112 (view as bug list)
Depends On:
Blocks: 1041770
TreeView+ depends on / blocked
 
Reported: 2013-07-12 13:43 UTC by Matej Kollar
Modified: 2020-09-22 11:02 UTC (History)
20 users (show)

Fixed In Version: rhn-client-tools-1.0.0.1-10-el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1041770 (view as bug list)
Environment:
Last Closed: 2013-11-21 23:15:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 506353 0 None None None Never
Red Hat Product Errata RHBA-2013:1702 0 normal SHIPPED_LIVE rhn-client-tools bug fix update 2013-11-20 21:52:04 UTC

Description Matej Kollar 2013-07-12 13:43:25 UTC
Description of problem:

  sosreport on RHEL6 calls

    "python /usr/share/rhn/up2date_client/hardware.py",

  which leads to crash (hidden, caught by abrt, but crashreport
  is usually immediately deleted with

    Corrupted or bad directory '/var/spool/abrt/pyhook-2013-07-09-11:40:06-27058', deleting

  see Bug 909617.
  Coliding name rpmUtils resolves to one in /usr/share/rhn/up2date_client/
  (that do not have submodule transaction) instead of
  the one in /usr/lib/python2.6/site-packages/rpmUtils/.

Version-Release number of selected component (if applicable):
  sos-2.2-38.el6.noarch
  rhn-client-tools-1.10.11-1.el6.noarch

How reproducible: always deterministic

Steps to Reproduce:
  1. python /usr/share/rhn/up2date_client/hardware.py

Actual results:
  Trace...
  >   File "/usr/share/rhn/up2date_client/hardware.py", line 24, in <module>
  >     import rhnserver
  >   File "/usr/share/rhn/up2date_client/rhnserver.py", line 34, in <module>
  >     import rpcServer
  >   File "/usr/share/rhn/up2date_client/rpcServer.py", line 12, in <module>
  >     import clientCaps
  >   File "/usr/share/rhn/up2date_client/clientCaps.py", line 10, in <module>
  >     from capabilities import parseCap
  >   File "/usr/share/rhn/up2date_client/capabilities.py", line 4, in <module>
  >     import up2dateErrors
  >   File "/usr/share/rhn/up2date_client/up2dateErrors.py", line 44, in <module>
  >     from yum.Errors import YumBaseError
  >   File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 52, in <module>
  >     import config
  >   File "/usr/lib/python2.6/site-packages/yum/config.py", line 40, in <module>
  >     import rpmUtils.transaction
  > ImportError: No module named transaction

Expected results:

  Info about hardware is printed.

Additional info:

  Might be related to patch 1417f0700405f27f13309d12fc41603fd37b72a4.

Comment 2 Olle Eriksson 2013-08-06 19:52:27 UTC
Downgrading rhn-client-tools from  1.0.0.1-8 to 1.0.0.0-4 restores
a working system

Comment 4 Tomas Lestach 2013-08-14 08:11:45 UTC
Putting the 1st element of the python search path to the end

    keeping content of search path, changing just the order for finding yum
    rpmUtils module instead of our one in the working directory
    (not a nice solution)


spacewalk.git: 7a6914a28bb5ef2e7a721be91b81a94979dbdcfa

Comment 7 Milan Zázrivec 2013-09-04 09:50:25 UTC
*** Bug 1004112 has been marked as a duplicate of this bug. ***

Comment 8 Jan Hutař 2013-10-15 07:50:37 UTC
*** Bug 982147 has been marked as a duplicate of this bug. ***

Comment 15 Lukas Pramuk 2013-10-29 12:08:04 UTC
VERIFIED. rhn-client-tools-1.0.0.1-16.el6.noarch

REPRO:
# python /usr/share/rhn/up2date_client/hardware.py
Traceback (most recent call last):
  File "/usr/share/rhn/up2date_client/hardware.py", line 25, in <module>
    import rhnserver
  File "/usr/share/rhn/up2date_client/rhnserver.py", line 22, in <module>
    import rpcServer
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 12, in <module>
    import clientCaps
  File "/usr/share/rhn/up2date_client/clientCaps.py", line 10, in <module>
    import capabilities
  File "/usr/share/rhn/up2date_client/capabilities.py", line 4, in <module>
    import up2dateErrors
  File "/usr/share/rhn/up2date_client/up2dateErrors.py", line 16, in <module>
    from yum.Errors import RepoError, YumBaseError
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 52, in <module>
    import config
  File "/usr/lib/python2.6/site-packages/yum/config.py", line 40, in <module>
    import rpmUtils.transaction
ImportError: No module named transaction

vs.

FIX:
# python /usr/share/rhn/up2date_client/hardware.py
'bus' : 'pci'
'driver' : 'x38_edac'
'pciType' : '1'
'prop4' : '1308'
'prop1' : '8086'
'prop2' : '29E0'
'prop3' : '103C'
'detached' : '0'
'class' : 'OTHER'
'desc' : 'Intel Corporation|82X38/X48 Express DRAM Controller'

'bus' : 'pci'
'driver' : 'pcieport'
'pciType' : '1'
'prop4' : '0000'
'prop1' : '8086'
'prop2' : '29E1'
'prop3' : '0000'
'detached' : '0'
'class' : 'OTHER'
'desc' : 'Intel Corporation|82X38/X48 Express Host-Primary PCI Express Bridge'

'bus' : 'pci'
'driver' : 'nouveau'
'pciType' : '1'
'prop4' : '0492'
'prop1' : '10DE'
'prop2' : '042F'
'prop3' : '10DE'
'detached' : '0'
'class' : 'VIDEO'
'desc' : 'NVIDIA Corporation|G86 [Quadro NVS 290]'

...

Comment 19 errata-xmlrpc 2013-11-21 23:15:28 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-2013-1702.html


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