Comment 79 for bug 1596075

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/339226
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=3ad23f42c7b1fce8e34fce651e03614f28740868
Submitter: Jenkins
Branch: master

commit 3ad23f42c7b1fce8e34fce651e03614f28740868
Author: Kevin Benton <email address hidden>
Date: Thu Jul 7 00:44:59 2016 -0700

    Always start transactions in quota cleanup methods

    If the previous action that let to the quota reservation
    cancelling was the result of a database connection getting
    interrupted, attempting to query without calling session.begin()
    will result in a sqlalchemy.exc.ResourceClosedError.

    This alters the quota methods that mutate DB state to use a
    transaction with the new oslo DB enginefacade decorators that
    start a transaction for us.

    Partial-Bug: #1596075
    Partially-Implements: blueprint enginefacade-switch
    Change-Id: I3d0539b11795cbcf97e70e1ec39013221a00d6d5