Commit 46b06122 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Re-raise exception when snapshots fail

When we cannot send a Ganeti job for a snapshot, we must re-raise the
exception after setting the snapshot's status to error.
parent 629da64e
......@@ -114,6 +114,7 @@ def create(user_id, volume, name, description, metadata, force=False):
# If failed to enqueue job to Ganeti, mark snapshot as ERROR
b.update_snapshot_state(snapshot_id, OBJECT_ERROR)
# Store the backend and job id as metadata in the snapshot in order
# to make reconciliation based on the Ganeti job possible.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment