Commit a7617c40 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Delete volumes together with instance

Update, snf-dispatcher callback functions to delete all volumes of
an instance when the instance gets deleted.
parent a8732cfd
......@@ -192,6 +192,8 @@ def process_op_status(vm, etime, jobid, opcode, status, logmsg, nics=None,
new_operstate = state_for_success
vm.backendtime = etime
status = rapi.JOB_STATUS_SUCCESS
#status = "success"
vm.volumes.all().update(deleted=True, machine=None)
if status in rapi.JOB_STATUS_FINALIZED:
# Job is finalized: Handle quotas/commissioning
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