]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Quotas by Volume Type
authorCory Stone <corystone@gmail.com>
Wed, 22 May 2013 15:31:13 +0000 (10:31 -0500)
committerCory Stone <corystone@gmail.com>
Thu, 27 Jun 2013 15:29:04 +0000 (10:29 -0500)
commitafa27908c5ef558ae8822c89a6f95d8150fc6b47
tree0219956c51776adc0d302901cc173e6507699da9
parent317220858ef219e84109692b6a94fedbd2758a0b
Quotas by Volume Type

The VolumeTypeQuotaEngine creates a volume, snapshot, and gigabyte
quota for each volume type that exists, in addition to the existing
global quotas for each. These are queried every time a quota operation
happens.

The resources for creating quotas are named: volumes_<vtype>,
gigabytes_<vtype>, and snapshots_<vtype>.

Another patch will have changes to cinderclient for setting project
quotas by volume type.

blueprint quotas-limits-by-voltype
DocImpact

Change-Id: I88261676edcd6eb5b7cea40654a931f32c00815c
cinder/db/api.py
cinder/db/sqlalchemy/api.py
cinder/quota.py
cinder/tests/test_quota.py
cinder/volume/api.py
cinder/volume/manager.py