Duplicate interfaces after upgrade disrupt ipdevpoll

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

Bug Description

getDeviceData had a propensity to create duplicate switch ports (and possibly router ports) when it changed its mind about which module a port belonged to.

Thes duplicate ports remain in the interface table after migrating to the 3.6 schema, and disrupts proper operation of ipdevpoll (which assumes duplicate interfaces can never happen).

The migration SQL needs to remove duplicates from the database, and a proper constraint on (netboxid, ifindex) needs to be added to the Interface table.

Tags: sql
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :
Changed in nav:
status: Confirmed → Fix Committed
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :

Incidentally, the new index on the interface table, that comes from the new constraint introduced in this fix, will immensely improve the speed of interface lookups. This has a huge impact on ipdevpoll, who would run really slowly when monitoring many devices.

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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.