[Spacewalk-list] rhnreg_ks on F15

Sandro "red" Mathys red at fedoraproject.org
Wed Apr 13 14:26:09 UTC 2011


2011/4/13 Miroslav Suchý <msuchy at redhat.com>:
> On 04/13/2011 02:52 PM, Sandro "red" Mathys wrote:
>> 2011/4/13 Miroslav Suchý <msuchy at redhat.com>:
>>> It is some USB device. Can you run this python script in both %post
>>> section of kickstart and after normal reboot? Check the diferences.
>>> You should look for records with
>>> XXX: None
>>
>> Lots of XXX: None found, actually it's always None!
>
> That is strange... aha, there is typo. It should be PRODUCT and not product.
> Commited as ebd9948a92945026db88932eefd23c4c0c7738ea

Next issue: ~4 lines later, "usb" is not defined:
<type 'exceptions.UnboundLocalError'>: local variable 'usb' referenced
before assignment

If I add "usb = USB()" (as found in the first part of that
if-elif-else construct) before that line, I get the next traceback:
[Wed Apr 13 15:18:51 2011] up2date
Traceback (most recent call last):
  File "/usr/sbin/rhnreg_ks", line 213, in <module>
    cli.run()
  File "/usr/share/rhn/up2date_client/rhncli.py", line 74, 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 674, in Hardware
    allhw = get_devices()
  File "/usr/share/rhn/up2date_client/hardware_gudev.py", line 45, in
get_devices
    'desc':     _get_device_desc(device),
  File "/usr/share/rhn/up2date_client/hardware_gudev.py", line 311, in
_get_device_desc
    result = "%s|%s" % (usb.get_vendor(vendor_id),
usb.get_device(vendor_id, device.get_property('ID_MODEL_ID')))
  File "/usr/lib/python2.7/site-packages/hwdata.py", line 82, in get_device
    device = device.lower()
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'lower'




More information about the Spacewalk-list mailing list