Comment 17 for bug 1296414

Revision history for this message
Rajesh Tailor (rajesh-tailor) wrote :

Hi Patrick,
The bugs mentioned by you:
1) https://bugs.launchpad.net/nova/+bug/1284424
There is not enough information on bug description/comments through which I can identify whether it is related to current bug (bug #1296414) or not.
2) https://bugs.launchpad.net/nova/+bug/1333145
I'm not sure, but IMO this might be a case mentioned in current bug (bug #1296414) description, where quotas were not getting updated properly (i.e. updated quota everytime for subsequent soft-delete requests).

As mentioned in current bug (bug #1296414) description there were couple of cases where quota was not getting updated properly
while deleting the instance.
As of now, there is only one case when quota is not getting updated properly which is, when instance stuck in 'deleting' task_state.
After that on restart of nova-compute service, init_instance method tries to delete instances stuck in 'deleting' task_state and
doesn't update quota properly.

My patch addresses the issue when quotas are not getting updated properly during deleting instances stuck in 'deleting' task_state on
restart of nova-compute service.
please refer: https://review.openstack.org/122347