Currently we would have uncommit reservations in database if
the commit operation failed. This could obstruct creating new
shares or others which would consume quota. This patch adds
a perodic task to clean this expired reservations.
Also fix bug in db.reservation_expire method(We dropped
attribute 'usage' from Reservation, but it's still used
in this method).
Reviewed: https:/ /review. openstack. org/440155 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=563e06c3c69 888e4166b10c1d9 f50fe0e820c02d
Committed: https:/
Submitter: Jenkins
Branch: master
commit 563e06c3c69888e 4166b10c1d9f50f e0e820c02d
Author: TommyLike <email address hidden>
Date: Thu Mar 2 14:43:15 2017 +0800
Add periodic task to clean up expired reservation
Currently we would have uncommit reservations in database if
the commit operation failed. This could obstruct creating new
shares or others which would consume quota. This patch adds
a perodic task to clean this expired reservations.
Also fix bug in db.reservation_ expire method(We dropped
attribute 'usage' from Reservation, but it's still used
in this method).
Closes-Bug: #1669449
Change-Id: I3dc0973ebac5eb 33832e242c72059 be1eb954369