]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Update quota when deleting volume that failed to be scheduled
authorZhiteng Huang <zhiteng.huang@intel.com>
Mon, 17 Sep 2012 09:26:09 +0000 (17:26 +0800)
committerZhiteng Huang <zhiteng.huang@intel.com>
Mon, 17 Sep 2012 16:51:48 +0000 (00:51 +0800)
commit9696bd9a8c11618edf970812de822ad0ba99498c
tree652e65d0f75008e10f9ef95ac8a93a924dc25f29
parent1a408818e96434778d34415e880d81c6f176233f
Update quota when deleting volume that failed to be scheduled

If one volume was failed to get scheduled, removing such volume should
also clean up reservation.
Also when create_volume is ready to send to scheduler, reservation
should be committed no matter backend can successfully create that
volume or not since deleting volume call will do a minus reservation
even on volume with 'error' status.

Fix bug 1052052

Change-Id: Iaec9926024ad5adb38b08b07772095f49b8593c2
cinder/volume/api.py
cinder/volume/manager.py