]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix extend_volume error handling.
authorAvishay Traeger <avishay@il.ibm.com>
Wed, 17 Jul 2013 05:17:14 +0000 (08:17 +0300)
committerAvishay Traeger <avishay@il.ibm.com>
Wed, 17 Jul 2013 11:32:54 +0000 (14:32 +0300)
commit74960fb8de3a84d0f3a5a56f15143647b4182f01
treebf9ecb7c51ca5ecba0fab59a9ebb2313e0193bba
parent659a318f7d90286ddce621ad33e5f5f1cd9d3357
Fix extend_volume error handling.

If the async call to the manager/driver failed, the API still updated
the quota and volume size in the DB. Solution is to move these tasks
down to the manager, where we know if the extend succeeded.

Change-Id: I668fd659830bd6d410be64a1f5116377b08a9e96
Fixes: bug 1201814
cinder/tests/test_volume.py
cinder/volume/api.py
cinder/volume/manager.py