[ocata only] quota usage not decremented during boot/delete race
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned | ||
Ocata |
Fix Committed
|
Undecided
|
melanie witt |
Bug Description
A customer ran into a situation where, during rapid boot/delete (parallel) requests to nova, they noticed that quota usage was not decremented after deleting instances. So, the number of instances in use did not match the quota usage (quota out-of-sync).
I noticed in the code that in the _delete_
I think that's wrong because if we found the build request, we're in the middle of booting, and if we don't find the instance after that, it means conductor either a) didn't create the instance record yet or b) deleted the instance record because it got BuildRequestNot
I think the fix is to decrement the quota usage whether we find the instance or not, after we successfully delete the build request.
This bug does not exist on the master branch.