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:
Thomas Herve 2017-10-09 17:54:49 +02:00
parent 98042040e2
commit 8e8360974a
1 changed files with 1 additions and 12 deletions

View File

@ -69,7 +69,7 @@ workflows:
tasks:
delete_the_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
delete_the_stack_failed:
@ -78,17 +78,6 @@ workflows:
status: FAILED
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:
workflow: tripleo.stack.v1.wait_for_stack_does_not_exist stack=<% $.stack %>
on-success: send_message