Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The poe plugin still crashes on devices that have no set type #1634

Closed
lunkwill42 opened this issue Dec 5, 2017 · 0 comments
Closed

The poe plugin still crashes on devices that have no set type #1634

lunkwill42 opened this issue Dec 5, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@lunkwill42
Copy link
Member

The same issue as described in #1616 occurs further down in the plugin code. There is also a similar issue in the POEGroup shadow handling code. This causes the statuscheck job to fail. Traceback as follows:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 382, in callback
    self._startRunCallbacks(result)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 490, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 577, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1155, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1099, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python2.7/dist-packages/nav/ipdevpoll/plugins/poe.py", line 55, in handle
    self._process_ports(ports, port_ifindices)
  File "/usr/lib/python2.7/dist-packages/nav/ipdevpoll/plugins/poe.py", line 74, in _process_ports
    self._update_port(netbox, index, row, ifindices.get(index))
  File "/usr/lib/python2.7/dist-packages/nav/ipdevpoll/plugins/poe.py", line 86, in _update_port
    if not ifindex and self.netbox.type.vendor.id == 'hp':
exceptions.AttributeError: 'NoneType' object has no attribute 'vendor'
@lunkwill42 lunkwill42 added the bug label Dec 5, 2017
@lunkwill42 lunkwill42 added this to the 4.8.2 milestone Dec 5, 2017
@lunkwill42 lunkwill42 self-assigned this Dec 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant