Merge "Dell EMC SC: Error Deleting Consistency Group"

This commit is contained in:
Zuul 2018-03-03 23:55:55 +00:00 committed by Gerrit Code Review
commit 471bdcfb12

View File

@ -876,8 +876,9 @@ class SCCommonDriver(driver.ManageableVD,
for volume in volumes:
status = fields.GroupStatus.ERROR
try:
if self.delete_volume(volume):
status = fields.GroupStatus.DELETED
self.delete_volume(volume)
# We throw if that fails.
status = fields.GroupStatus.DELETED
except (exception.VolumeBackendAPIException,
exception.VolumeIsBusy):
LOG.error('delete_group: error deleting volume %s',