Skip to content

Commit

Permalink
Add create cinder volume backup example
Browse files Browse the repository at this point in the history
  • Loading branch information
int32bit committed Apr 25, 2017
1 parent f716fc2 commit 4910940
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions examples/cinder/create_volume_backup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
version: "2.0"

create_volume_backup:
type: direct

input:
- volume_id
- backup_name
- force: True
- incremental: True
- description: "Created by mistral"

description: create a backup for a volume.

tasks:
create_backup:
description: create a backup for a volume
action: int32bit.cinder.backups.create volume_id=<% $.volume_id %> backup_name=<% $.backup_name %> force=<% $.force %> incremental=<% $.incremental %> description=<% $.description %>
publish:
backup_id: <% task(create_backup).result.id %>
on-success:
- wait_for_active

wait_for_active:
action: int32bit.cinder.backups.assert_status backup_id=<% $.backup_id %> status='available'
retry:
delay: 10
count: 30

0 comments on commit 4910940

Please sign in to comment.