]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Support Volume Backup Quota
authorling-yun <zengyunling@huawei.com>
Sat, 2 Aug 2014 06:43:35 +0000 (14:43 +0800)
committerling-yun <zengyunling@huawei.com>
Tue, 2 Sep 2014 10:09:04 +0000 (18:09 +0800)
commitbaa34a301b1e46d860038b4901b8061bb7101d4f
tree028649aacd699c52b524b8a97a4b2c0aaab00e4f
parentc4bddaa50d862913b35eb82e843aef6cbb1b1f22
Support Volume Backup Quota

Since quota take volumes, snapshots and gigabytes into account, it also
needs to take backup into account.
1. Backup create API is not admin interface, users of projects could
create any number of backups.
2. If some evil users create many more big backups to exhaust the free
space of backup storage-backend, it would cause cinder-backup in the state
of rejecting service.
Based on these two points, I think it is necessary to support volume
backup quota.

blueprint support-volume-backup-quota

Change-Id: Idd24ad2e8a5507bf18e90bd5fad59a4af1c158c6
cinder/api/contrib/used_limits.py
cinder/api/views/limits.py
cinder/backup/api.py
cinder/backup/manager.py
cinder/db/sqlalchemy/api.py
cinder/exception.py
cinder/quota.py
cinder/tests/api/contrib/test_quotas.py
cinder/tests/api/contrib/test_quotas_classes.py
cinder/tests/test_quota.py
etc/cinder/cinder.conf.sample