Merge "GPFS: Fix consistency group ERROR_CREATE status"

This commit is contained in:
Jenkins 2016-06-03 17:34:29 +00:00 committed by Gerrit Code Review
commit f16cc2f590

View File

@ -1205,7 +1205,7 @@ class GPFSDriver(driver.ConsistencyGroupVD, driver.ExtendVD,
self.create_snapshot(snapshot)
except exception.VolumeBackendAPIException as err:
model_update['status'] = (
fields.ConsistencyGroupStatus.ERROR_CREATE)
fields.ConsistencyGroupStatus.ERROR)
LOG.error(_LE("Failed to create the snapshot %(snap)s of "
"CGSnapshot. Exception: %(exception)s."),
{'snap': snapshot.name, 'exception': err})