]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Clean up failed clones in VMAX driver
authorXing Yang <xing.yang@emc.com>
Sat, 25 Apr 2015 02:42:28 +0000 (22:42 -0400)
committerXing Yang <xing.yang@emc.com>
Sat, 2 May 2015 02:12:47 +0000 (22:12 -0400)
commit5490bddf804281f76fc9ae8289c1f44976f4b5a4
treead47d8ac92e0b3b13b794307205fd155cf78d34a
parentc57aef777ce70a51b4c46ac4c9de4cc3eb854ec5
Clean up failed clones in VMAX driver

If the clone operation fails, clean up is not done properly in
the VMAX driver. This patch catches the exception during the
clone operation, removes the target volume, and then re-throw
the exception.

Closes-Bug: #1440154
Change-Id: I548d5da09cb66077f04b1c5f1aa168c5bd5cf02e
cinder/tests/unit/test_emc_vmax.py
cinder/volume/drivers/emc/emc_vmax_common.py
cinder/volume/drivers/emc/emc_vmax_fc.py
cinder/volume/drivers/emc/emc_vmax_iscsi.py