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 ipdevpoll 5minstats job crashes in the statsystem plugin on VRF master devices #1633

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

Comments

@lunkwill42
Copy link
Member

Under NAV 4.8.1, the statsystem plugin has been observed to crash the 5minstats job. It appears the problem occurs because of unintentional overwriting a variable when duplicating statistics for VRF instances. Traceback as follows:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 423, in errback
    self._startRunCallbacks(fail)
  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 1097, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/lib/python2.7/dist-packages/nav/ipdevpoll/plugins/statsystem.py", line 78, in handle
    power = yield self._collect_power(netboxes)
  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/statsystem.py", line 204, in _collect_power
    for index, power in power.items():
exceptions.AttributeError: 'long' object has no attribute 'items'
@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