Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 595669 - rhnreg_ks doesn't work on ppc64, failure in file hardware_gudev.py line 93, in get_devices
Summary: rhnreg_ks doesn't work on ppc64, failure in file hardware_gudev.py line 93, i...
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rhn-client-tools
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Miroslav Suchý
QA Contact: Petr Sklenar
Depends On:
Blocks: 582655 564352
TreeView+ depends on / blocked
Reported: 2010-05-25 10:50 UTC by Petr Sklenar
Modified: 2010-07-02 19:49 UTC (History)
2 users (show)

Fixed In Version: rhn-client-tools-1.0.0-10.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-07-02 19:49:07 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Petr Sklenar 2010-05-25 10:50:45 UTC
Description of problem:
There is traceback in /usr/share/rhn/up2date_client/hardware_gudev.py file. I can see this failure on one from two of my testing ppc64.

Version-Release number of selected component (if applicable):

How reproducible:
always on ppc64 machine, ibm-js22-vios-02-lp2.rhts.eng.bos.redhat.com

Steps to Reproduce:
[root@ibm-js22-vios-02-lp2 ~]#  rhnreg_ks --username=**** --password=**** --server=https://xmlrpc.rhn.errata.stage.redhat.com/XMLRPC 
An error has occurred:
<type 'exceptions.AttributeError'>
See /var/log/up2date for more information

[root@ibm-js22-vios-02-lp2 ~]# tail -n15 /var/log/up2date
[Tue May 25 06:43:20 2010] up2date 
Traceback (most recent call last):
  File "/usr/sbin/rhnreg_ks", line 205, in <module>
  File "/usr/share/rhn/up2date_client/rhncli.py", line 74, in run
    sys.exit(self.main() or 0)
  File "/usr/sbin/rhnreg_ks", line 99, in main
    hardwareList = hardware.Hardware()
  File "/usr/share/rhn/up2date_client/hardware.py", line 667, in Hardware
    allhw = get_devices()
  File "/usr/share/rhn/up2date_client/hardware_gudev.py", line 93, in get_devices
    result_item['prop1'] = m.group(1) # DEV_HOST
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'group'

[root@ibm-js22-vios-02-lp2 ~]# uname -a
Linux ibm-js22-vios-02-lp2.rhts.eng.bos.redhat.com 2.6.32-28.el6.ppc64 #1 SMP Thu May 20 14:05:29 EDT 2010 ppc64 ppc64 ppc64 GNU/Linux
[root@ibm-js22-vios-02-lp2 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.0 Beta (Santiago)

Actual results:
    result_item['prop1'] = m.group(1) # DEV_HOST
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'group'

Expected results:

Additional info:

Comment 5 RHEL Program Management 2010-05-25 11:16:29 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for

Comment 6 Miroslav Suchý 2010-05-25 11:49:27 UTC
Fixed in spacewalk git as commit 013ee43afa07cd7f8b1441e111c98439bd659b1c
Cherrypicked to satellite.git as commit b6bc59245fe4763557079207da76310d5a500146

Comment 7 Miroslav Suchý 2010-05-25 11:56:27 UTC
Built package rhn-client-tools-1.0.0-10.el6

Comment 9 Petr Sklenar 2010-06-17 13:04:27 UTC
reproduced and verified on

Comment 11 releng-rhel@redhat.com 2010-07-02 19:49:07 UTC
Red Hat Enterprise Linux Beta 2 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

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