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.
Reviewed: https:/ /review. openstack. org/339226 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=3ad23f42c7b 1fce8e34fce651e 03614f28740868
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3ad23f42c7b1fce 8e34fce651e0361 4f28740868
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 exc.ResourceClo sedError.
cancelling was the result of a database connection getting
interrupted, attempting to query without calling session.begin()
will result in a sqlalchemy.
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 Implements: blueprint enginefacade-switch cf97e70e1ec3901 3221a00d6d5
Partially-
Change-Id: I3d0539b11795cb