Oslo db is logging exceptions before raising

Bug #1851797 reported by Darragh O'Reilly
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.db
Fix Released
Undecided
Darragh O'Reilly

Bug Description

Customer sees and is concerned about errors (see attached) from oslo db in neutron server logs coming from:

https://github.com/openstack/oslo.db/blob/be28e3eaf7f96296d52db4e50837bbcfded9694f/oslo_db/sqlalchemy/exc_filters.py#L416-L418

Oslo db prints a stacktrace and raises an exception. Neutron handles it by retrying and there is no problem that operators need to know about.

https://opendev.org/openstack/neutron/commit/f21eed3998a793f5c40eb248469dc4245de3415a

IMO a library like oslo db should not be printing these errors. That should be the choice of clients like neutron when it handles the exception.

Revision history for this message
Darragh O'Reilly (darragh-oreilly) wrote :
Changed in oslo.db:
assignee: nobody → Darragh O'Reilly (darragh-oreilly)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.db (master)

Fix proposed to branch: master
Review: https://review.opendev.org/693503

Revision history for this message
Darragh O'Reilly (darragh-oreilly) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.db (master)

Reviewed: https://review.opendev.org/693503
Committed: https://git.openstack.org/cgit/openstack/oslo.db/commit/?id=cf6f1b43017826585c3b6c0528506cc533696131
Submitter: Zuul
Branch: master

commit cf6f1b43017826585c3b6c0528506cc533696131
Author: Darragh O'Reilly <email address hidden>
Date: Fri Nov 8 08:52:06 2019 +0000

    Reduce severity of wrapped exceptions logs to warning

    Change-Id: I6ea68fb17ceac23337bfb7405eb3f7a6df8b61f2
    Closes-Bug: 1851797

Changed in oslo.db:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.db 5.1.1

This issue was fixed in the openstack/oslo.db 5.1.1 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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