]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Preserve usage and reservations on quota deletion
authorGorka Eguileor <geguileo@redhat.com>
Mon, 9 Mar 2015 18:39:11 +0000 (19:39 +0100)
committerGorka Eguileor <geguileo@redhat.com>
Tue, 5 May 2015 14:47:12 +0000 (16:47 +0200)
commit0ee1ea83b90de8d342fa242e311f1680fef66a92
tree8849fe364f6dee704d1fb729b89c3e127ec00bcc
parent5df1f2190434af6ab1e09d922dca961ca4f09c23
Preserve usage and reservations on quota deletion

Current API deletes quota usage and reservations on quota limit
deletion.

According to API documentation what should only happen is that quotas
limits revert to default values by deleting tenant/user limits.

This patch fixes this issue.

APIImpact: Delete on os-quota-sets will no longer remove usage and
           reservation quotas. Those quotas are handled by Cinder
           service.
UpgradeImpact: There is no upgrade impact afaik.
Closes-Bug: #1410034
Change-Id: I9340b6f78623cfa5b505886ad75b8e4d3cd6131b
cinder/api/contrib/quotas.py
cinder/db/api.py
cinder/db/sqlalchemy/api.py
cinder/quota.py
cinder/tests/unit/test_db_api.py
cinder/tests/unit/test_quota.py