diff options
| author | Mark McLoughlin <markmc@redhat.com> | 2012-09-01 09:37:15 +0100 |
|---|---|---|
| committer | Mark McLoughlin <markmc@redhat.com> | 2012-09-01 09:37:15 +0100 |
| commit | 22f0e324f3d3172b563aa67e513fe4d9318de2e5 (patch) | |
| tree | ad216707b726f4127307a59c7deb5996a3b039f1 /nova/openstack | |
| parent | 68abbbbcf02650d24d65a1455ddd40099616c2bd (diff) | |
| download | nova-22f0e324f3d3172b563aa67e513fe4d9318de2e5.tar.gz nova-22f0e324f3d3172b563aa67e513fe4d9318de2e5.tar.xz nova-22f0e324f3d3172b563aa67e513fe4d9318de2e5.zip | |
Fix quota reservation expiration
Fixes bug #1040942
The db.reservation_expire() function assumes a 'usage' attribute on
Reservation objects, but we don't actually define that relationship.
The end result is that reservation_expire() currently traceback if
it actually needs to expire any reservations. This happens pretty
rarely since reservations should only need expiring if they are
leaked because of another bug.
Also define a test case to actually excercise the expiration code
path.
Add a missing chain-up to tearDown in test_limits which was causing
the get_project_quotas() stub not to be unset and, in turn, the
reservation expiration test to fail.
Change-Id: Ib61dbf9fd5dfb5badaf05f20c423a69925d83754
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions
