cinder protection: force create snapshot
When the volume is attached, 'force' must be used in order to take the snapshot. Change-Id: I83b112a0d415f749e8312ce2b6d50d0c46bed30f
This commit is contained in:
parent
5edffcb12e
commit
03096645f9
|
@ -102,7 +102,7 @@ class ProtectOperation(protection_plugin.Operation):
|
|||
self.snapshot_id = None
|
||||
|
||||
def _create_snapshot(self, cinder_client, volume_id):
|
||||
snapshot = cinder_client.volume_snapshots.create(volume_id)
|
||||
snapshot = cinder_client.volume_snapshots.create(volume_id, force=True)
|
||||
|
||||
snapshot_id = snapshot.id
|
||||
is_success = status_poll(
|
||||
|
|
Loading…
Reference in New Issue