Lost ipdevpoll database connections aren't properly reset under Django 1.7

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

Bug Description

A slew of OS upgrades have made it obvious that ipdevpoll under NAV 4.4 isn't resetting lost database connections like it used to. It just keeps logging InterfaceErrors into infinity.

Upon inspection, it seems the problem is becase Django 1.7 is wrapping the database exceptions raised by the psycogp2 driver, so the reset handler is now catching the wrong exceptions.

It should be made to catch InterfaceErrors and OperationalErrors from both psycopg2 and Django.

Tags: db ipdevpoll
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :
Changed in nav:
status: Confirmed → 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.