]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix swap_volume for case without migration
authorRyan McNair <rdmcnair@us.ibm.com>
Thu, 19 Nov 2015 19:48:37 +0000 (19:48 +0000)
committerRyan McNair <rdmcnair@us.ibm.com>
Thu, 19 Nov 2015 19:55:38 +0000 (19:55 +0000)
commitdc777f1dc736b01b8f8eec58972230d30b3074f6
treeb27abd609c1320192454fc62dbb92e2cc65fb395
parentae84ce085feaf9d021412c08ecd7d6a0a99d1e0f
Fix swap_volume for case without migration

Fix swap_volume so that even when a volume-migration does not
occur, the volumes don't get stuck in "attaching" and "detaching".
Previously the swap_volume was changed in
https://review.openstack.org/#/c/101932 and
https://review.openstack.org/#/c/101933 to move the final
attach and detach logic to Cinder, however those changes only fix
the migration path.  This change calls Cinder's "attach" and "detach"
for the non-migration path to update the volumes' states.

Change-Id: I242c2c7c4a7197bbce04d0b3d75688f989ea1fd5
Closes-Bug: #1489744
cinder/volume/api.py