]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix HP LeftHand migration with snapshots
authorJim Branen <james.branen@hp.com>
Mon, 3 Mar 2014 18:53:17 +0000 (10:53 -0800)
committerJim Branen <james.branen@hp.com>
Mon, 3 Mar 2014 19:20:35 +0000 (11:20 -0800)
commit5043773390e11719b17d4f999a1df58dcab36f7b
tree7597a59770a4bda10c7362846f6aacfb2f618ac0
parent34f4b56a58d74dc9d35b69b7e1996183b1ed096a
Fix HP LeftHand migration with snapshots

Check for snapshots associated with volumes during assisted
migration, and fail if a snapshot is found.

When a volume is cloned on the HP LeftHand array, a snapshot
is created and the cloned volume is created from the snapshot.
The snapshot remains associated with the newly created volume.
Therefore, backend assisted migration should check for volumes
with snapshots and not use native APIs to migrate any volume
that has a snapshot.

Change-Id: I29fc3dbd1f24c01968e7c3d043cdf6b9d1b89ee9
Closes-Bug:#1285829
cinder/tests/test_hplefthand.py
cinder/volume/drivers/san/hp/hp_lefthand_rest_proxy.py