Don't wait for stack in progress in delete
We don't need to wait for the stack to be in progress when deleting it,
and it can in fact be a race condition if it disappears too fast. Just
skip to check if it still exists.
Change-Id: Idbbb7afd4ab0157c870e1c1e3cd1666fb99651cc
(cherry picked from commit 9178796142
)
This commit is contained in:
parent
98042040e2
commit
8e8360974a
|
@ -69,7 +69,7 @@ workflows:
|
||||||
tasks:
|
tasks:
|
||||||
delete_the_stack:
|
delete_the_stack:
|
||||||
action: heat.stacks_delete stack_id=<% $.stack %>
|
action: heat.stacks_delete stack_id=<% $.stack %>
|
||||||
on-success: wait_for_stack_in_progress
|
on-success: wait_for_stack_does_not_exist
|
||||||
on-error: delete_the_stack_failed
|
on-error: delete_the_stack_failed
|
||||||
|
|
||||||
delete_the_stack_failed:
|
delete_the_stack_failed:
|
||||||
|
@ -78,17 +78,6 @@ workflows:
|
||||||
status: FAILED
|
status: FAILED
|
||||||
message: <% task(delete_the_stack).result %>
|
message: <% task(delete_the_stack).result %>
|
||||||
|
|
||||||
wait_for_stack_in_progress:
|
|
||||||
workflow: tripleo.stack.v1.wait_for_stack_in_progress stack=<% $.stack %>
|
|
||||||
on-success: wait_for_stack_does_not_exist
|
|
||||||
on-error: wait_for_stack_in_progress_failed
|
|
||||||
|
|
||||||
wait_for_stack_in_progress_failed:
|
|
||||||
on-success: send_message
|
|
||||||
publish:
|
|
||||||
status: FAILED
|
|
||||||
message: <% task(wait_for_stack_in_progress).result %>
|
|
||||||
|
|
||||||
wait_for_stack_does_not_exist:
|
wait_for_stack_does_not_exist:
|
||||||
workflow: tripleo.stack.v1.wait_for_stack_does_not_exist stack=<% $.stack %>
|
workflow: tripleo.stack.v1.wait_for_stack_does_not_exist stack=<% $.stack %>
|
||||||
on-success: send_message
|
on-success: send_message
|
||||||
|
|
Loading…
Reference in New Issue