portadmin snmp timeout while saving

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

Bug Description

When saving Port Configs with portadmin we have had problems especially on
cisco 2960s-stacked switches that we ran into snmp timeouts .. this local diff
fixed the problem. Maybe worth a config option??

root@urz-nav-pet:/usr/lib/pymodules/python2.6# diff -u nav/portadmin/snmputils.py-20150410 nav/portadmin/snmputils.py
--- nav/portadmin/snmputils.py-20150410 2015-04-10 16:34:21.062460370 +0200
+++ nav/portadmin/snmputils.py 2015-04-10 16:35:21.439762593 +0200
@@ -134,7 +134,10 @@
         if self.read_write_handle is None:
             self.read_write_handle = Snmp(self.netbox.ip,
                                           self.netbox.read_write,
- self.netbox.snmp_version)
+ self.netbox.snmp_version,
+ 161,
+ 3,
+ 8)
         return self.read_write_handle

Changed in nav:
assignee: nobody → John-Magne Bredal (john-m-bredal)
milestone: none → 4.3.1
Revision history for this message
John-Magne Bredal (john-m-bredal) wrote :

Many thanks for discovering this!

I have added options in portadmin.conf for setting values for timeout and retries. I also adjusted the default timeout to 3 seconds, as 1 second seemed a bit optimistic.

Revision history for this message
John-Magne Bredal (john-m-bredal) wrote :
Changed in nav:
status: New → 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.