collect_active_ip crashes when prefix ids has been changed

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

Bug Description

collect_active_ip stores references to prefix ids in rrd_file. When a prefix has changed id, the reference is wrong and the script tries to create a new tuple for the rrdfile. This will trigger the unique constraint on rrd_file.filename and the script crashes.

1. Make the script do a rollback on such errors.
2. Use prefix.netaddr as reference to prefix in stead of prefix.id
3. Make sure the old references are removed.

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