Merge "Wait for lock release during power state change" into stable/queens
This commit is contained in:
commit
fb05b48550
|
@ -84,12 +84,12 @@ workflows:
|
||||||
action: ironic.node_get
|
action: ironic.node_get
|
||||||
input:
|
input:
|
||||||
node_id: <% $.node_uuid %>
|
node_id: <% $.node_uuid %>
|
||||||
fields: ['power_state', 'last_error']
|
fields: ['power_state', 'last_error', 'reservation']
|
||||||
timeout: 120 #2 minutes
|
timeout: 120 #2 minutes
|
||||||
retry:
|
retry:
|
||||||
delay: 6
|
delay: 6
|
||||||
count: 20
|
count: 20
|
||||||
continue-on: <% not task().result.power_state in [$.target_state, $.error_state] %>
|
continue-on: <% not (task().result.power_state in [$.target_state, $.error_state] and task().result.reservation = null)%>
|
||||||
on-complete:
|
on-complete:
|
||||||
- state_not_reached: <% task().result.power_state != $.target_state %>
|
- state_not_reached: <% task().result.power_state != $.target_state %>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue