collect_active_ip crashes when prefix ids has been changed
Bug #1107723 reported by
John-Magne Bredal
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 |
Changed in nav: | |
milestone: | none → 3.13.0 |
Changed in nav: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix: https:/ /nav.uninett. no/hg/stable/ rev/fada3984131 9