]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use project id from volume when retyping volumes
authorOllie Leahy <oliver.leahy@hp.com>
Thu, 15 Oct 2015 15:20:28 +0000 (15:20 +0000)
committerOllie Leahy <oliver.leahy@hp.com>
Thu, 15 Oct 2015 15:20:28 +0000 (15:20 +0000)
commitceb65b6f868284a6738b5202ea44ac91198d9f1f
tree8b6d394dbdd957c295b9b3d985bdd8572e8fb593
parent71932e9c4f0d0fe8dfb6400992b4e5be0215221f
Use project id from volume when retyping volumes

Use the project_id from the volume being retyped to reserve quota in
get_volume_type_reservation(). Previously the project_id from the
context was used, which could cause reservations to be made and never
cleared.

Change-Id: I25f7c00961e259102cdaea6ea9394d04ded96b92
Closes-Bug: #1505307
cinder/quota_utils.py
cinder/tests/unit/api/contrib/test_volume_actions.py
cinder/tests/unit/test_quota.py