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:
Yuval Brik 2017-02-07 15:50:21 +02:00
parent 5edffcb12e
commit 03096645f9
1 changed files with 1 additions and 1 deletions

View File

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