]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
ScaleIO driver: update_migrated_volume
authorXing Yang <xing.yang@emc.com>
Tue, 6 Oct 2015 19:36:49 +0000 (15:36 -0400)
committerXing Yang <xing.yang@emc.com>
Fri, 9 Oct 2015 23:46:10 +0000 (19:46 -0400)
commit64437898cdf58d4d028975155bda3d21a014bfe1
tree3bf4a9d985c6c672fc70e7c3ba4cf00e1a9ba80d
parenta6f92ceaf00851de09d608a42541e117bffa34f7
ScaleIO driver: update_migrated_volume

This patch implements the update_migrated_volume function.
Without this change, when the migrate finishes, the original
volume will be deleted but the name on the new volume will not
be changed to the old id even though the Cinder database will
be updated. The volume name is a base64() encoding of the Cinder
volume id so any calls after the migrate fail since the lookup
fails.

Also changed 'SCALEIO' to connector.SCALEIO now that os-brick 0.4.0
is released.

Closes-Bug: #1512387
Change-Id: I70fe4bd651b0ac87b9208efb5918a4cdaf6f06b4
cinder/tests/unit/volume/drivers/emc/scaleio/test_misc.py
cinder/volume/drivers/emc/scaleio.py