IndexToIpException in ipdevpoll Prefix plugin

Bug #1010018 reported by Morten Brekkevold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Released
Medium
Morten Brekkevold

Bug Description

A customer keeps getting these tracebacks from a failed the ipdevpoll inventory job under NAV 3.11.3 and NAV 3.11.4:

 [ERROR jobs.jobhandler] [inventory 129.242.35.50] Plugin nav.ipdevpoll.plugins.prefix.Prefix(u'10.0.35.50') reported an unhandled failure
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 345, in errback
    self._startRunCallbacks(fail)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 424, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 441, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 949, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 891, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.6/dist-packages/twisted/python/failure.py", line 338, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/lib/pymodules/python2.6/nav/ipdevpoll/plugins/prefix.py", line 88, in handle
    new_addresses = yield df
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 891, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.6/dist-packages/twisted/python/failure.py", line 338, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/lib/pymodules/python2.6/nav/mibs/ip_mib.py", line 262, in get_interface_addresses
    addrs_from_new_table = yield self._get_interface_addresses()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 739, in _deferGenerator
    result = g.next()
  File "/usr/lib/pymodules/python2.6/nav/mibs/ip_mib.py", line 237, in _get_interface_addresses
    ip = self.inetaddress_to_ip(row_index)
  File "/usr/lib/pymodules/python2.6/nav/mibs/ip_mib.py", line 72, in inetaddress_to_ip
    "IPv6 address length is not 16: %r" % (oid,))
nav.mibs.ip_mib.IndexToIpException: IPv6 address length is not 16: OID('.2.1.4.10.0.35.33')

The device in question is an APC UPS unit. The problem may possibly be related to bug 777821.

Tags: ipdevpoll
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :

basically fixed this by ignoring IP addresses from devices that exhibit this problem.

fix here: http://nav.uninett.no/hg/stable/rev/0254d5c07e97

Changed in nav:
status: Confirmed → Fix Committed
Changed in nav:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.