Merge "When making sub-workflow calls, pass the queue_name"
This commit is contained in:
commit
c6a0d2de37
|
@ -131,7 +131,12 @@ workflows:
|
||||||
- send_message: <% $.initial_state != "available" %>
|
- send_message: <% $.initial_state != "available" %>
|
||||||
on-error: set_status_failed_nodes_managed
|
on-error: set_status_failed_nodes_managed
|
||||||
with-items: node in <% $.new_nodes %>
|
with-items: node in <% $.new_nodes %>
|
||||||
workflow: tripleo.baremetal.v1.set_node_state node_uuid=<% $.node.uuid %> state_action='manage' target_state='manageable'
|
workflow: tripleo.baremetal.v1.set_node_state
|
||||||
|
input:
|
||||||
|
node_uuid: <% $.node.uuid %>
|
||||||
|
queue_name: <% $.queue_name %>
|
||||||
|
state_action: 'manage'
|
||||||
|
target_state: 'manageable'
|
||||||
publish:
|
publish:
|
||||||
status: SUCCESS
|
status: SUCCESS
|
||||||
message: Nodes set to managed.
|
message: Nodes set to managed.
|
||||||
|
@ -183,7 +188,12 @@ workflows:
|
||||||
on-success: try_power_off
|
on-success: try_power_off
|
||||||
on-error: set_status_failed_nodes_available
|
on-error: set_status_failed_nodes_available
|
||||||
with-items: uuid in <% $.node_uuids %>
|
with-items: uuid in <% $.node_uuids %>
|
||||||
workflow: tripleo.baremetal.v1.set_node_state node_uuid=<% $.uuid %> state_action='provide' target_state='available'
|
workflow: tripleo.baremetal.v1.set_node_state
|
||||||
|
input:
|
||||||
|
node_uuid: <% $.uuid %>
|
||||||
|
queue_name: <% $.queue_name %>
|
||||||
|
state_action: 'provide'
|
||||||
|
target_state: 'available'
|
||||||
|
|
||||||
set_status_failed_nodes_available:
|
set_status_failed_nodes_available:
|
||||||
on-success: send_message
|
on-success: send_message
|
||||||
|
@ -195,7 +205,12 @@ workflows:
|
||||||
on-success: send_message
|
on-success: send_message
|
||||||
on-error: power_off_failed
|
on-error: power_off_failed
|
||||||
with-items: uuid in <% $.node_uuids %>
|
with-items: uuid in <% $.node_uuids %>
|
||||||
workflow: tripleo.baremetal.v1.set_power_state node_uuid=<% $.uuid %> state_action='off' target_state='power off'
|
workflow: tripleo.baremetal.v1.set_power_state
|
||||||
|
input:
|
||||||
|
node_uuid: <% $.uuid %>
|
||||||
|
queue_name: <% $.queue_name %>
|
||||||
|
state_action: 'off'
|
||||||
|
target_state: 'power off'
|
||||||
publish:
|
publish:
|
||||||
status: SUCCESS
|
status: SUCCESS
|
||||||
message: 'Successfully set nodes state to available.'
|
message: 'Successfully set nodes state to available.'
|
||||||
|
@ -530,13 +545,20 @@ workflows:
|
||||||
|
|
||||||
tag_nodes:
|
tag_nodes:
|
||||||
with-items: node_uuid in <% $.tag_node_uuids %>
|
with-items: node_uuid in <% $.tag_node_uuids %>
|
||||||
workflow: tripleo.baremetal.v1.tag_node node_uuid=<% $.node_uuid %> role=<% $.role %>
|
workflow: tripleo.baremetal.v1.tag_node
|
||||||
|
input:
|
||||||
|
node_uuid: <% $.node_uuid %>
|
||||||
|
queue_name: <% $.queue_name %>
|
||||||
|
role: <% $.role %>
|
||||||
concurrency: 1
|
concurrency: 1
|
||||||
on-success: untag_nodes
|
on-success: untag_nodes
|
||||||
|
|
||||||
untag_nodes:
|
untag_nodes:
|
||||||
with-items: node_uuid in <% $.untag_node_uuids %>
|
with-items: node_uuid in <% $.untag_node_uuids %>
|
||||||
workflow: tripleo.baremetal.v1.tag_node node_uuid=<% $.node_uuid %>
|
workflow: tripleo.baremetal.v1.tag_node
|
||||||
|
input:
|
||||||
|
node_uuid: <% $.node_uuid %>
|
||||||
|
queue_name: <% $.queue_name %>
|
||||||
concurrency: 1
|
concurrency: 1
|
||||||
on-success: update_role_parameters
|
on-success: update_role_parameters
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,10 @@ workflows:
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
add_validation_ssh_key:
|
add_validation_ssh_key:
|
||||||
workflow: tripleo.validations.v1.add_validation_ssh_key_parameter container=<% $.container %>
|
workflow: tripleo.validations.v1.add_validation_ssh_key_parameter
|
||||||
|
input:
|
||||||
|
container: <% $.container %>
|
||||||
|
queue_name: <% $.queue_name %>
|
||||||
on-complete: deploy
|
on-complete: deploy
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
|
Loading…
Reference in New Issue