]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix issue of volume after host-assisted migration
authorpeter_wang <peter.wang13@emc.com>
Fri, 21 Aug 2015 05:33:44 +0000 (01:33 -0400)
committerpeter_wang <peter.wang13@emc.com>
Wed, 16 Sep 2015 16:12:43 +0000 (12:12 -0400)
commit20ac9cac7284f009929cfd6e5ce79f34bccffce8
tree6b1c1d26ca97a589116dd823c57333c7dc305880
parent0be52602d34bdc2f8cee3736dfcc9e59e33d94eb
Fix issue of volume after host-assisted migration

In host-assisted migration, Cinder framework currently doesn't
update name_id and provider_location when the driver doesn't provide
name_id or provider_location in update_migrated_volume

This changes previous Cinder behavior which will update name_id and
provider_location anyway. Any operation against this volume will not
be successful; for example, volume deletion cannot delete it's
underlying LUN.

This fix will update name_id and provider_location if driver doesn't
return them.

Closes-Bug: #1487952
Change-Id: Ice72fc792f0ea8909c027e6df99cff9bbeef5e48
cinder/tests/unit/test_volume.py
cinder/volume/manager.py