ipdevinfo crashes on IP addresses on VLANs that have no VLAN ID

Bug #689629 reported by Vidar Stokkenes
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Released
Medium
Morten Brekkevold

Bug Description

ipdevinfo or Machine Tracker crashes with a "Something went wrong" error while searching for certain IPs or hostnames with the following debug message:

TemplateSyntaxError at /ipdevinfo/ip=192.168.1.122/
Caught an exception while rendering: Reverse for 'nav.report-swporttrunk-vlan' with arguments '(None,)' and keyword arguments '{}' not found.

Original Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/django/template/debug.py", line 71, in render_node
    result = node.render(context)
  File "/var/lib/python-support/python2.5/django/template/defaulttags.py", line 378, in render
    args=args, kwargs=kwargs)
  File "/var/lib/python-support/python2.5/django/core/urlresolvers.py", line 254, in reverse
    *args, **kwargs)))
  File "/var/lib/python-support/python2.5/django/core/urlresolvers.py", line 243, in reverse
    "arguments '%s' not found." % (lookup_view, args, kwargs))
NoReverseMatch: Reverse for 'nav.report-swporttrunk-vlan' with arguments '(None,)' and keyword arguments '{}' not found.Request Method: GET
Request URL: https://nav.domain.com/ipdevinfo/ip=192.168.1.122/
Exception Type: TemplateSyntaxError
Exception Value: Caught an exception while rendering: Reverse for 'nav.report-swporttrunk-vlan' with arguments '(None,)' and keyword arguments '{}' not found.

Original Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/django/template/debug.py", line 71, in render_node
    result = node.render(context)
  File "/var/lib/python-support/python2.5/django/template/defaulttags.py", line 378, in render
    args=args, kwargs=kwargs)
  File "/var/lib/python-support/python2.5/django/core/urlresolvers.py", line 254, in reverse
    *args, **kwargs)))
  File "/var/lib/python-support/python2.5/django/core/urlresolvers.py", line 243, in reverse
    "arguments '%s' not found." % (lookup_view, args, kwargs))
NoReverseMatch: Reverse for 'nav.report-swporttrunk-vlan' with arguments '(None,)' and keyword arguments '{}' not found.
Exception Location: /var/lib/python-support/python2.5/django/template/debug.py in render_node, line 81
Python Executable: /usr/bin/python
Python Version: 2.5.2
Python Path: ['/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', '/var/lib/python-support/python2.5', '/usr/share/nav/htdocs/ipdevinfo']
Server time: Mon, 13 Dec 2010 12:14:39 +0100

(or http://dpaste.org/B9Sa/)

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

This is a problem in ipdevinfo. Not all VLANs/broadcast domains found by NAV have an associated VLAN-id - ipdevinfo doesn't seem to anticipate this situation.

Changed in nav:
assignee: nobody → Morten Brekkevold (mbrekkevold)
importance: Undecided → Medium
milestone: none → 3.7.3
status: New → Confirmed
summary: - ipdevinfo/machinetracker reports error on some IP or device searches
+ ipdevinfo crashes on IP addresses on VLANs that have no VLAN ID
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :
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  Edit
Everyone can see this information.

Other bug subscribers