Reset snapshot status available

This patch fix bug: After fail to revert volume to snapshot, the
snapshot status will be set to available. Depend on Line 1007,
Line 1012 should be fields.SnapshotStatus.AVAILABLE.

Change-Id: Ic6b03e6de3de4498dc63f9ab4f77ace025ff28c6
This commit is contained in:
caixiaoyu 2018-12-18 15:23:17 +08:00
parent da34b35579
commit 0a34a5a29d
1 changed files with 1 additions and 1 deletions

View File

@ -1009,7 +1009,7 @@ class VolumeManager(manager.CleanableManager,
if not s_res:
msg_args = {"id": snapshot.id,
"status":
fields.SnapshotStatus.ERROR}
fields.SnapshotStatus.AVAILABLE}
msg += ("Failed to reset snapshot %(id)s "
"status to %(status)s." % msg_args)
LOG.exception(msg, msg_args)