seeddb test for snmp version crashes if neither v1 or v2c is supported

Bug #1428578 reported by John-Magne Bredal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Released
Undecided
John-Magne Bredal

Bug Description

Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 109, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/usr/lib/python2.7/dist-packages/nav/web/seeddb/page/netbox/edit.py", line 86, in get_read_only_variables
    snmp_version = get_snmp_version(ip_address, read_community)

  File "/usr/lib/python2.7/dist-packages/nav/web/seeddb/page/netbox/edit.py", line 150, in get_snmp_version
    snmp = Snmp(ip, community, '1')

  File "/usr/lib/python2.7/dist-packages/nav/Snmp/pynetsnmp.py", line 66, in __init__
    self.handle.open()

  File "/usr/lib/pymodules/python2.7/pynetsnmp/netsnmp.py", line 421, in open
    raise SnmpError('snmp_open')

SnmpError: snmp_open

Revision history for this message
John-Magne Bredal (john-m-bredal) wrote :
Changed in nav:
assignee: nobody → John-Magne Bredal (john-m-bredal)
milestone: none → 4.2.4
status: New → Fix Committed
Changed in nav:
status: Fix Committed → Fix Released
Changed in nav:
milestone: 4.2.4 → 4.2.5
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.