Merge "Fail node cleaning on timeout"

This commit is contained in:
Zuul 2019-01-04 04:31:22 +00:00 committed by Gerrit Code Review
commit 0482c377fe

View File

@ -130,13 +130,21 @@ workflows:
message: <% task(set_provision_state).result %> message: <% task(set_provision_state).result %>
wait_for_provision_state: wait_for_provision_state:
on-success: send_message
action: ironic.node_get node_id=<% $.node_uuid %> action: ironic.node_get node_id=<% $.node_uuid %>
timeout: <% $.timeout %> timeout: <% $.timeout %>
retry: retry:
delay: <% $.retry_delay %> delay: <% $.retry_delay %>
count: <% $.retry_count %> count: <% $.retry_count %>
continue-on: <% task().result.provision_state != 'manageable' %> continue-on: <% task().result.provision_state != 'manageable' %>
on-complete:
- send_message: <% task().result.provision_state = 'manageable' %>
- state_not_reached: <% task().result.provision_state != 'manageable' %>
state_not_reached:
publish:
status: FAILED
message: Cleaning of node <% $.node_uuid %> timed out.
on-complete: send_message
send_message: send_message:
workflow: tripleo.messaging.v1.send workflow: tripleo.messaging.v1.send