IP Device info crashes

Bug #258310 reported by Morten Brekkevold
2
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Released
Medium
Morten Brekkevold

Bug Description

The IP Device Info beta preview in NAV 3.4.0 crashes out of the box.

Apparently, there is an error in the Django models: The module class
contains a "community_suffix" field which doesn't exist in manage.sql. It
did, however, exist on the development database where the IP Device Info
tool was developed, which is probably why the model is faulty.

[http://sourceforge.net/tracker/index.php?func=detail&aid=1990664&group_id=107608&atid=648170]

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

Originator: YES

The Django DEBUG setting is set to False by default in the 3.4.0 release,
which causes the IP Device Info tool to crash with this, very little
informative, traceback:

Mod_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299,
in HandlerDispatch
    result = object(req)

  File
"/var/lib/python-support/python2.4/django/core/handlers/modpython.py", line
189, in handler
    return ModPythonHandler()(req)

  File
"/var/lib/python-support/python2.4/django/core/handlers/modpython.py", line
162, in __call__
    response = self.get_response(request)

  File "/var/lib/python-support/python2.4/django/core/handlers/base.py",
line 132, in get_response
    return callback(request, **param_dict)

  File "/var/lib/python-support/python2.4/django/views/defaults.py", line
89, in server_error
    t = loader.get_template(template_name) # You need to create a 500.html
template.

  File "/var/lib/python-support/python2.4/django/template/loader.py", line
79, in get_template
    source, origin = find_template_source(template_name)

  File "/var/lib/python-support/python2.4/django/template/loader.py", line
72, in find_template_source
    raise TemplateDoesNotExist, name

TemplateDoesNotExist: 500.html

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

Originator: YES

With Django's DEBUG setting set to True, this error appears instead:

This is the actual error reported when Django's DEBUG setting is set to
True.

ProgrammingError at /ipdevinfo/someswitch.example.com/
column module.community_suffix does not exist

Request Method: GET
Request URL: https://nav.example.com/ipdevinfo/someswitch.example.com/
Exception Type: ProgrammingError
Exception Value: column module.community_suffix does not exist
Exception Location:
 /var/lib/python-support/python2.4/django/db/backends/util.py in execute,
line 18
Python Executable: /usr/bin/python
Python Version: 2.4.4
Python Path: ['/usr/lib/python24.zip', '/usr/lib/python2.4',
'/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk',
'/usr/lib/python2.4/lib-dynload', '/usr/local/lib/python2.4/site-packages',
'/usr/lib/python2.4/site-packages', '/var/lib/python-support/python2.4',
'/var/www/nav/ipdevinfo']
Server time: Wed, 11 Jun 2008 04:20:14 -0500

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

Originator: YES

Fixed in changeset 28397e6636dc on the default branch. Should make it
into NAV 3.4.1.

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

Originator: YES

Vidar Stokkenes reports another similar error with the vendor.enterpriseid
field, which has also appeared due to introspecting an experimental/devel
database.

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

Originator: YES

Followup fix in changeset b5fc18a21caf, committed to default branch. Will
be part of NAV 3.4.1.

Changed in nav:
milestone: v3.4 → v3.4.1
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.