neutron/neutron/db/quota
Slawek Kaplonski f8f50397ca Rollback db session in case of error during releasing quota reservation
Patch [1] changed to not fail if DBError will happend when releasing
quota reservation. That may lead to the errors while commiting db
transaction in the neutron/api/v2/base.py module when in same
transaction Neutron commits reservation (which removes reservation from
db) and then set resources dirty. In case if DB error happens in the
commit_reservation() and we will simply pass this error and move on,
transaction can't be commited without rollback.

This patch adds handle of such DBErrors in the remove_reservation
function so transaction can be rolled back in case of DB error happens.

[1] https://review.opendev.org/c/openstack/neutron/+/805031

Closes-Bug: #1943714
Change-Id: I295a4f0eb1eaf0286f0e34b96db29c8f08340b84
2021-09-15 15:47:35 +02:00
..
__init__.py Add DB support for resource usage tracking 2015-07-26 15:26:10 -07:00
api.py Rollback db session in case of error during releasing quota reservation 2021-09-15 15:47:35 +02:00
driver.py Remove ``ConfDriver`` code 2021-07-26 15:00:32 +00:00
driver_nolock.py Do not fail when releasing a quota reservation 2021-08-25 13:18:17 +00:00
models.py Adds a unique index to quotas 2020-11-20 14:05:39 +08:00