#992 AttributeError: 'F24_Device' object has no attribute 'deviceList'
Closed: Invalid Opened by jflorian.

I'm getting this error on a livemedia job:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/koji/daemon.py", line 1244, in runTask
    response = (handler.run(),)
  File "/usr/lib/python2.7/site-packages/koji/tasks.py", line 307, in run
    return koji.util.call_with_argcheck(self.handler, self.params, self.opts)
  File "/usr/lib/python2.7/site-packages/koji/util.py", line 209, in call_with_argcheck
    return func(*args, **kwargs)
  File "/usr/sbin/kojid", line 3217, in handler
    self.readKickstart(kspath, opts)
  File "/usr/sbin/kojid", line 2747, in readKickstart
    self.ks.readKickstart(kspath)
  File "/usr/lib/python2.7/site-packages/pykickstart/parser.py", line 815, in readKickstart
    self.readKickstartFromString(s, reset=False)
  File "/usr/lib/python2.7/site-packages/pykickstart/parser.py", line 788, in readKickstartFromString
    self._stateMachine(i)
  File "/usr/lib/python2.7/site-packages/pykickstart/parser.py", line 771, in _stateMachine
    self._tryFunc(lambda: self.handleCommand(lineno, args))
  File "/usr/lib/python2.7/site-packages/pykickstart/parser.py", line 682, in _tryFunc
    fn()
  File "/usr/lib/python2.7/site-packages/pykickstart/parser.py", line 771, in <lambda>
    self._tryFunc(lambda: self.handleCommand(lineno, args))
  File "/usr/lib/python2.7/site-packages/pykickstart/parser.py", line 573, in handleCommand
    retval = self.handler.dispatcher(args, lineno)
  File "/usr/lib/python2.7/site-packages/pykickstart/base.py", line 379, in dispatcher
    lst = self.commands[cmd].dataList()
  File "/usr/lib/python2.7/site-packages/pykickstart/commands/device.py", line 161, in dataList
    return self.deviceList
AttributeError: 'F24_Device' object has no attribute 'deviceList'

If my quick analysis of device.py is correct, this module provides a number of classes modeling the history of the valid commands in a kickstart file. So, I think there are two bugs here:

  1. This traceback occurs (but obviously shouldn't) because the handling for a DeprecatedCommand is broken. (I'm jumping to the conclusion this is due to a deprecated command simply given that this same F25-based kickstart was working when my kojid was running atop F26, but now fails with it on F28.)
  2. None of the logs provide any hint as to what the offending deprecated command is.

Er, I'm being dense. The bugs are part of python2-kickstart, not Koji. It appears the first is already report at https://bugzilla.redhat.com/show_bug.cgi?id=1582797. I'm closing this here for that reason. Feel free to reopen this if you want a little remote tracking of the issue.

Metadata Update from @jflorian:
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/992

Please continue any further discussion there.

Metadata