nova/nova/tests
Matt Riedemann 032937ce51 Add regression test for quota decrement bug 1678326
This was spotted from someone validating the fix for
bug 1670627. They reported that even though they failed
to delete an instance in ERROR state that was in cell0,
the quota usage was decremented.

This is because we committed the quota reservation
to decrement the usage before actually attempting to destroy
the instance, rather than upon successful deletion.

The rollback after InstanceNotFound is a noop because of
how the Quotas.rollback method noops if the reservations
were already committed. That is in itself arguably a bug,
but not fixed here, especially since the counting quotas
work in Pike will remove all of the reservations commit and
rollback code.

Change-Id: I12d1fa1a10f9014863123ac9cc3c63ddfb48378e
Partial-Bug: #1678326
2017-04-05 15:15:20 -04:00
..
functional Add regression test for quota decrement bug 1678326 2017-04-05 15:15:20 -04:00
live_migration/hooks Fix for live-migration job 2016-12-01 09:54:00 +00:00
unit Short-circuit local delete path for cells v2 and InstanceNotFound 2017-04-05 15:12:41 -04:00
__init__.py
fixtures.py Merge "Add functional test for ip filtering with regex" 2017-03-27 13:05:07 +00:00
uuidsentinel.py Remove redundant str typecasting 2016-09-23 12:53:34 +05:30