Arnold detention crashes when switch reports SNMP agent error

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

Bug Description

As observed on a client installation, when attempting to run a manual detention operation against a switch, the the switch respons with an SNMP error - and Arnold crashes with a traceback as it attempts to handle the error.

The mailed traceback looks like this:

Internal Server Error: /arnold/manualdetention/XXX.XXX.XXX.XXX
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/", line 111, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/nav/web/arnold/", line 246, in render_manual_detention_step_two
    error = process_manual_detention_form(form, get_account(request))
  File "/usr/lib/python2.7/dist-packages/nav/web/arnold/", line 304, in process_manual_detention_form
  File "/usr/lib/python2.7/dist-packages/nav/", line 275, in disable
    change_port_status('disable', identity)
  File "/usr/lib/python2.7/dist-packages/nav/", line 436, in change_port_status
    except nav.Snmp.AgentError, why:
AttributeError: 'module' object has no attribute 'AgentError'

Tags: arnold snmp
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :
Changed in nav:
status: Confirmed → Fix Committed
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.