]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add volume quota in volume/api.py and olume/manager.py
authorRongze Zhu <zrzhit@gmail.com>
Wed, 12 Sep 2012 07:10:53 +0000 (07:10 +0000)
committerRongze Zhu <zrzhit@gmail.com>
Wed, 12 Sep 2012 07:10:53 +0000 (07:10 +0000)
commita955730b569be6f1132cbd254d8f21828c54d2f2
tree8c879ca2df064a037ec55631e0f121fb1548ffb4
parent24b3cd56967193e789564245352acecb4c80f767
Add volume quota in volume/api.py and olume/manager.py

Fixes bug #1048158

volume.api.API.create() call QUOTAS.reserve(), then
volume.manager.VolumeManager.create_volume call QUOTAS.commit().
volume.manager.VolumeManager.delete_volume call QUOTAS.reserve() and
QUOTAS.commit().

It also fixes bug #1049459.

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