Bug 1189156 - hwdata-0.274-1.fc21 stops rhnreg_ks for registering client to Satellite
Summary: hwdata-0.274-1.fc21 stops rhnreg_ks for registering client to Satellite
Keywords:
Status: CLOSED DUPLICATE of bug 1185630
Alias: None
Product: Fedora
Classification: Fedora
Component: hwdata
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Minar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-04 15:24 UTC by Gordon Stocks
Modified: 2015-02-09 07:06 UTC (History)
3 users (show)

Fixed In Version: hwdata-0.274-2.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-09 07:06:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Gordon Stocks 2015-02-04 15:24:07 UTC
Description of problem:

When attempting to join a Fedora 21 system to my Satellite server, the rhnreg_ks command fails. After much tracing and trial and error, I narrowed this down to the hwdata package.

Downgrading hwdata from hwdata-0.274-1.fc21.noarch to hwdata-0.271-1.fc21.noarch, allows rhnreg_ks to complete successfully. Hwdata and the rest of the system can seemingly then be updated without issue.

Perhaps an issue in rhn-setup-2.2.7-1.fc21.noarch not working with the newer version of hwdata, but downgrading hwdata resolved the issue for me. Unsure where the problem actually lies.

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

hwdata-0.274-1.fc21.noarch
rhn-setup-2.2.7-1.fc21.noarch

How reproducible:

Always.

Steps to Reproduce:
1. Install Fedora 21
2. Update to latest hwdata package from Internet repo
3. Attempt to join system to Satellite via rhnreg_ks

Actual results:

Running command:

/usr/sbin/rhnreg_ks --activationkey=<ActivationKeyHidden>

Gives output:

An error has occurred:
<type 'exceptions.TypeError'>
See /var/log/up2date for more information

/var/log/up2date contains:

[Tue Feb  3 14:48:51 2015] up2date
Traceback (most recent call last):
  File "/usr/sbin/rhnreg_ks", line 218, in <module>
    cli.run()
  File "/usr/share/rhn/up2date_client/rhncli.py", line 96, in run
    sys.exit(self.main() or 0)
  File "/usr/sbin/rhnreg_ks", line 101, in main
    hardwareList = hardware.Hardware()
  File "/usr/share/rhn/up2date_client/hardware.py", line 787, in Hardware
    allhw = get_devices()
  File "/usr/share/rhn/up2date_client/hardware_gudev.py", line 54, in get_devices
    'desc':     _get_device_desc(device),
  File "/usr/share/rhn/up2date_client/hardware_gudev.py", line 302, in _get_device_desc
    usb = USB()
  File "/usr/lib/python2.7/site-packages/hwdata.py", line 57, in __init__
    USB.devices[vendor][1][device][0][interface_id] = interface_name
<type 'exceptions.TypeError'>: 'str' object does not support item assignment


Expected results:

No errors shown, System successfully joined to Satellite.

Additional info:

Comment 1 Michal Minar 2015-02-09 07:06:43 UTC
I'm sorry for the trouble. Fixed hwdata release is already in stable branch.

*** This bug has been marked as a duplicate of bug 1185630 ***


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