]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix non-migration swap with error
authorRyan McNair <rdmcnair@us.ibm.com>
Wed, 9 Dec 2015 15:29:27 +0000 (15:29 +0000)
committerRyan McNair <rdmcnair@us.ibm.com>
Wed, 9 Dec 2015 15:29:27 +0000 (15:29 +0000)
commitfc6e7250457479f221d9a11767a16511ffaf30eb
tree4c78a902af876d5f2b1e0ec1ad75fdd22d9542f9
parent36841fcd06947284b255c4d31f8d36c1e7f6af82
Fix non-migration swap with error

The fix I242c2c7c4a7197bbce04d0b3d75688f989ea1fd5 for non-migration
swap volume caused drivers which don't support volume swapping,
e.g. Ceph, to put the volumes in an incorrect state (additional
details can be found in bug #1489744 report).  This patch adds an
additional check to ensure no errors occurred during the swap before
it completes the volume status updates, as well a test-case for
the non-migration swap scenario.

Change-Id: Ic2fddbcb12b4c9d251f9c3aab08a73e12d4d73e2
Closes-Bug: #1489744
cinder/tests/unit/test_volume.py
cinder/volume/api.py