navtopology crashes on CDP data from Cisco Switch Clustering

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

Bug Description

CDP data collected from a Cisco Switch Cluster commander, the stack members will appear as having the same IP address as the commander (which they in effect do). ipdevpoll will, however, identify the neighbor as the box itself based on that IP, and ignores the cdpCacheDeviceID field.

This results in adjacency candidate records that indicate self-loops. Self-loops seem to cause the topology analyzer to crash. The topology analyzer should probably have a more reasonable fail-safe for a situation like this, but the core problem can be fixed in the CDP cache parsing:

If a CDP neighbor record indicates the same IP as the source netbox, we should treat it the same as if there was no IP address there. This will cause the algorithm to move on to cdpCacheDeviceID for neighbor identification. A stack member will normally have a member index suffixed to its sysname, which makes it unidentifiable by NAV, and will cause an uncrecognized_neighbor entry to be generated instead. This is acceptable as long as we have no NAV support for switch clustering.

Changed in nav:
status: Confirmed → In Progress
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :
Changed in nav:
status: In Progress → Fix Committed
milestone: none → 3.12.3
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :

It might also be necessary to use https://nav.uninett.no/hg/stable/rev/255a8e4eae41 to force re-processing of CDP records, even if they haven't changed on the device.

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

This is related to bug 955808, btw. I will also be committing a fix to stop navtopology from crashing entirely if a situation like this arises again.

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.