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
This commit is contained in:
Xing Yang
2015-04-24 22:42:28 -04:00
parent c57aef777c
commit 5490bddf80
4 changed files with 248 additions and 44 deletions

View File

@@ -35,9 +35,10 @@ class EMCVMAXFCDriver(driver.FibreChannelDriver):
2.0.0 - Add driver requirement functions
2.1.0 - Add consistency group functions
2.1.1 - Fixed issue with mismatched config (bug #1442376)
2.1.3 - Clean up failed clones (bug #1440154)
"""
VERSION = "2.1.1"
VERSION = "2.1.3"
def __init__(self, *args, **kwargs):