]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Implement the update_migrated_volume for the drivers
authorVincent Hou <sbhou@cn.ibm.com>
Thu, 7 May 2015 05:53:25 +0000 (13:53 +0800)
committerVincent Hou <sbhou@cn.ibm.com>
Thu, 2 Jul 2015 14:14:55 +0000 (22:14 +0800)
commit474f70e9edaccc87ecefafd5618d542497055212
treee520b5e218d57fb170d3735bd899766f4ff9f44f
parent0330f251ce87e2dce4c8535780e87adb1a47c0eb
Implement the update_migrated_volume for the drivers

This patch implements update_migrated_volume for LVM, Storwize
and updates Dell, StorPool and Infortrend drivers accordingly. It
makes sure that after a successful volume migration, the cinder
volume name(id) is the same as the backend volume name(id). Other
back-end drivers can take this patch as a reference to implement
update_migrated_volume.

PS: Not applicable to multi-attached volumes, since we need to wait
until the multi-attach lands in Nova.

This patch also adds a unit test for the StorPool driver's
update_migrated_volume() implementation.

Co-Authored-By: Peter Penchev <openstack-dev@storpool.com>
Change-Id: I69707340ddf2b55286ff0d84319529b2f502cefa
Partial-Bug: #1450649
18 files changed:
cinder/db/sqlalchemy/api.py
cinder/tests/unit/db/test_finish_migration.py
cinder/tests/unit/test_dellsc.py
cinder/tests/unit/test_infortrend_cli.py
cinder/tests/unit/test_infortrend_common.py
cinder/tests/unit/test_storpool.py
cinder/tests/unit/test_storwize_svc.py
cinder/tests/unit/test_volume.py
cinder/volume/driver.py
cinder/volume/drivers/dell/dell_storagecenter_common.py
cinder/volume/drivers/ibm/storwize_svc/__init__.py
cinder/volume/drivers/infortrend/eonstor_ds_cli/common_cli.py
cinder/volume/drivers/infortrend/infortrend_fc_cli.py
cinder/volume/drivers/infortrend/infortrend_iscsi_cli.py
cinder/volume/drivers/lvm.py
cinder/volume/drivers/storpool.py
cinder/volume/manager.py
cinder/volume/rpcapi.py