Browse Source

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
changes/22/625822/3
caixiaoyu 3 years ago
parent
commit
0a34a5a29d
  1. 2
      cinder/volume/manager.py

2
cinder/volume/manager.py

@ -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)

Loading…
Cancel
Save