Merge "Use the standard messaging in the validations workbook"
This commit is contained in:
@@ -17,19 +17,17 @@ workflows:
|
|||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
notify_running:
|
notify_running:
|
||||||
on-complete: run_validation
|
workflow: tripleo.message.v1.send
|
||||||
action: zaqar.queue_post
|
|
||||||
retry: count=5 delay=1
|
|
||||||
input:
|
input:
|
||||||
queue_name: <% $.queue_name %>
|
queue_name: <% $.queue_name %>
|
||||||
messages:
|
type: <% execution().name %>
|
||||||
body:
|
status: RUNNING
|
||||||
type: tripleo.validations.v1.run_validation
|
execution: <% execution() %>
|
||||||
payload:
|
plan_name: <% $.plan %>
|
||||||
validation_name: <% $.validation_name %>
|
payload:
|
||||||
plan: <% $.plan %>
|
validation_name: <% $.validation_name %>
|
||||||
status: RUNNING
|
plan: <% $.plan %>
|
||||||
execution: <% execution() %>
|
on-complete: run_validation
|
||||||
|
|
||||||
run_validation:
|
run_validation:
|
||||||
on-success: send_message
|
on-success: send_message
|
||||||
@@ -48,22 +46,18 @@ workflows:
|
|||||||
stderr: <% task(run_validation).result.stderr %>
|
stderr: <% task(run_validation).result.stderr %>
|
||||||
|
|
||||||
send_message:
|
send_message:
|
||||||
action: zaqar.queue_post
|
workflow: tripleo.messaging.v1.send
|
||||||
retry: count=5 delay=1
|
|
||||||
input:
|
input:
|
||||||
queue_name: <% $.queue_name %>
|
queue_name: <% $.queue_name %>
|
||||||
messages:
|
type: <% execution().name %>
|
||||||
body:
|
status: <% $.get('status', 'SUCCESS') %>
|
||||||
type: tripleo.validations.v1.run_validation
|
execution: <% execution() %>
|
||||||
payload:
|
plan_name: <% $.plan %>
|
||||||
validation_name: <% $.validation_name %>
|
payload:
|
||||||
plan: <% $.plan %>
|
validation_name: <% $.validation_name %>
|
||||||
status: <% $.get('status', 'SUCCESS') %>
|
plan: <% $.plan %>
|
||||||
stdout: <% $.stdout %>
|
stdout: <% $.stdout %>
|
||||||
stderr: <% $.stderr %>
|
stderr: <% $.stderr %>
|
||||||
execution: <% execution() %>
|
|
||||||
on-success:
|
|
||||||
- fail: <% $.get('status') = "FAILED" %>
|
|
||||||
|
|
||||||
run_validations:
|
run_validations:
|
||||||
input:
|
input:
|
||||||
@@ -77,19 +71,17 @@ workflows:
|
|||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
notify_running:
|
notify_running:
|
||||||
on-complete: run_validations
|
workflow: tripleo.message.v1.send
|
||||||
action: zaqar.queue_post
|
|
||||||
retry: count=5 delay=1
|
|
||||||
input:
|
input:
|
||||||
queue_name: <% $.queue_name %>
|
queue_name: <% $.queue_name %>
|
||||||
messages:
|
type: <% execution().name %>
|
||||||
body:
|
status: RUNNING
|
||||||
type: tripleo.validations.v1.run_validations
|
execution: <% execution() %>
|
||||||
payload:
|
plan_name: <% $.plan %>
|
||||||
validation_names: <% $.validation_names %>
|
payload:
|
||||||
plan: <% $.plan %>
|
validation_name: <% $.validation_name %>
|
||||||
status: RUNNING
|
plan: <% $.plan %>
|
||||||
execution: <% execution() %>
|
on-complete: run_validations
|
||||||
|
|
||||||
run_validations:
|
run_validations:
|
||||||
on-success: send_message
|
on-success: send_message
|
||||||
@@ -105,20 +97,16 @@ workflows:
|
|||||||
status: FAILED
|
status: FAILED
|
||||||
|
|
||||||
send_message:
|
send_message:
|
||||||
action: zaqar.queue_post
|
workflow: tripleo.message.v1.send
|
||||||
retry: count=5 delay=1
|
|
||||||
input:
|
input:
|
||||||
queue_name: <% $.queue_name %>
|
queue_name: <% $.queue_name %>
|
||||||
messages:
|
type: <% execution().name %>
|
||||||
body:
|
status: <% $.get('status', 'SUCCESS') %>
|
||||||
type: tripleo.validations.v1.run_validations
|
execution: <% execution() %>
|
||||||
payload:
|
plan_name: <% $.plan %>
|
||||||
validation_names: <% $.validation_names %>
|
payload:
|
||||||
plan: <% $.plan %>
|
validation_name: <% $.validation_name %>
|
||||||
status: <% $.get('status', 'SUCCESS') %>
|
plan: <% $.plan %>
|
||||||
execution: <% execution() %>
|
|
||||||
on-success:
|
|
||||||
- fail: <% $.get('status') = "FAILED" %>
|
|
||||||
|
|
||||||
run_groups:
|
run_groups:
|
||||||
input:
|
input:
|
||||||
@@ -138,20 +126,18 @@ workflows:
|
|||||||
validations: <% task().result %>
|
validations: <% task().result %>
|
||||||
|
|
||||||
notify_running:
|
notify_running:
|
||||||
on-complete: run_validation_group
|
workflow: tripleo.message.v1.send
|
||||||
action: zaqar.queue_post
|
|
||||||
retry: count=5 delay=1
|
|
||||||
input:
|
input:
|
||||||
queue_name: <% $.queue_name %>
|
queue_name: <% $.queue_name %>
|
||||||
messages:
|
type: <% execution().name %>
|
||||||
body:
|
status: RUNNING
|
||||||
type: tripleo.validations.v1.run_validations
|
execution: <% execution() %>
|
||||||
payload:
|
plan_name: <% $.plan %>
|
||||||
group_names: <% $.group_names %>
|
payload:
|
||||||
validation_names: <% $.validations.id %>
|
group_names: <% $.group_names %>
|
||||||
plan: <% $.plan %>
|
validation_name: <% $.validation_name %>
|
||||||
status: RUNNING
|
plan: <% $.plan %>
|
||||||
execution: <% execution() %>
|
on-complete: run_validation_group
|
||||||
|
|
||||||
run_validation_group:
|
run_validation_group:
|
||||||
on-success: send_message
|
on-success: send_message
|
||||||
@@ -167,21 +153,18 @@ workflows:
|
|||||||
status: FAILED
|
status: FAILED
|
||||||
|
|
||||||
send_message:
|
send_message:
|
||||||
action: zaqar.queue_post
|
workflow: tripleo.message.v1.send
|
||||||
retry: count=5 delay=1
|
|
||||||
input:
|
input:
|
||||||
queue_name: <% $.queue_name %>
|
queue_name: <% $.queue_name %>
|
||||||
messages:
|
type: <% execution().name %>
|
||||||
body:
|
status: <% $.get('status', 'SUCCESS') %>
|
||||||
type: tripleo.validations.v1.run_groups
|
execution: <% execution() %>
|
||||||
payload:
|
plan_name: <% $.plan %>
|
||||||
group_names: <% $.group_names %>
|
payload:
|
||||||
validation_names: <% $.validations.id %>
|
group_names: <% $.group_names %>
|
||||||
plan: <% $.plan %>
|
validation_names: <% $.validations.id %>
|
||||||
status: <% $.get('status', 'SUCCESS') %>
|
validation_name: <% $.validation_name %>
|
||||||
execution: <% execution() %>
|
plan: <% $.plan %>
|
||||||
on-success:
|
|
||||||
- fail: <% $.get('status') = "FAILED" %>
|
|
||||||
|
|
||||||
list:
|
list:
|
||||||
input:
|
input:
|
||||||
@@ -322,23 +305,18 @@ workflows:
|
|||||||
message: <% task().result %>
|
message: <% task().result %>
|
||||||
|
|
||||||
send_message:
|
send_message:
|
||||||
action: zaqar.queue_post
|
workflow: tripleo.messaging.v1.send
|
||||||
retry: count=5 delay=1
|
|
||||||
input:
|
input:
|
||||||
queue_name: <% $.queue_name %>
|
queue_name: <% $.queue_name %>
|
||||||
messages:
|
type: <% execution().name %>
|
||||||
body:
|
status: <% $.get('status', 'SUCCESS') %>
|
||||||
type: tripleo.validations.v1.check_boot_images
|
message: <% $.get('message', '') %>
|
||||||
payload:
|
execution: <% execution() %>
|
||||||
status: <% $.get('status', 'SUCCESS') %>
|
payload:
|
||||||
message: <% $.get('message', '') %>
|
kernel_id: <% $.kernel_id %>
|
||||||
execution: <% execution() %>
|
ramdisk_id: <% $.ramdisk_id %>
|
||||||
kernel_id: <% $.kernel_id %>
|
errors: <% $.errors %>
|
||||||
ramdisk_id: <% $.ramdisk_id %>
|
warnings: <% $.warnings %>
|
||||||
errors: <% $.errors %>
|
|
||||||
warnings: <% $.warnings %>
|
|
||||||
on-success:
|
|
||||||
- fail: <% $.get('status') = "FAILED" %>
|
|
||||||
|
|
||||||
collect_flavors:
|
collect_flavors:
|
||||||
input:
|
input:
|
||||||
@@ -377,22 +355,17 @@ workflows:
|
|||||||
message: <% task().result %>
|
message: <% task().result %>
|
||||||
|
|
||||||
send_message:
|
send_message:
|
||||||
action: zaqar.queue_post
|
workflow: tripleo.messaging.v1.send
|
||||||
retry: count=5 delay=1
|
|
||||||
input:
|
input:
|
||||||
queue_name: <% $.queue_name %>
|
queue_name: <% $.queue_name %>
|
||||||
messages:
|
type: <% execution().name %>
|
||||||
body:
|
status: <% $.get('status', 'SUCCESS') %>
|
||||||
type: tripleo.validations.v1.collect_flavors
|
message: <% $.get('message', '') %>
|
||||||
payload:
|
execution: <% execution() %>
|
||||||
status: <% $.get('status', 'SUCCESS') %>
|
payload:
|
||||||
message: <% $.get('message', '') %>
|
flavors: <% $.flavors %>
|
||||||
execution: <% execution() %>
|
errors: <% $.errors %>
|
||||||
flavors: <% $.flavors %>
|
warnings: <% $.warnings %>
|
||||||
errors: <% $.errors %>
|
|
||||||
warnings: <% $.warnings %>
|
|
||||||
on-success:
|
|
||||||
- fail: <% $.get('status') = "FAILED" %>
|
|
||||||
|
|
||||||
check_ironic_boot_configuration:
|
check_ironic_boot_configuration:
|
||||||
input:
|
input:
|
||||||
@@ -446,21 +419,16 @@ workflows:
|
|||||||
message: <% task().result %>
|
message: <% task().result %>
|
||||||
|
|
||||||
send_message:
|
send_message:
|
||||||
action: zaqar.queue_post
|
workflow: tripleo.messaging.v1.send
|
||||||
retry: count=5 delay=1
|
|
||||||
input:
|
input:
|
||||||
queue_name: <% $.queue_name %>
|
queue_name: <% $.queue_name %>
|
||||||
messages:
|
type: <% execution().name %>
|
||||||
body:
|
status: <% $.get('status', 'SUCCESS') %>
|
||||||
type: tripleo.validations.v1.check_ironic_boot_configuration
|
message: <% $.get('message', '') %>
|
||||||
payload:
|
execution: <% execution() %>
|
||||||
status: <% $.get('status', 'SUCCESS') %>
|
payload:
|
||||||
message: <% $.get('message', '') %>
|
errors: <% $.errors %>
|
||||||
execution: <% execution() %>
|
warnings: <% $.warnings %>
|
||||||
errors: <% $.errors %>
|
|
||||||
warnings: <% $.warnings %>
|
|
||||||
on-success:
|
|
||||||
- fail: <% $.get('status') = "FAILED" %>
|
|
||||||
|
|
||||||
verify_profiles:
|
verify_profiles:
|
||||||
input:
|
input:
|
||||||
@@ -510,21 +478,16 @@ workflows:
|
|||||||
message: <% task().result %>
|
message: <% task().result %>
|
||||||
|
|
||||||
send_message:
|
send_message:
|
||||||
action: zaqar.queue_post
|
workflow: tripleo.messaging.v1.send
|
||||||
retry: count=5 delay=1
|
|
||||||
input:
|
input:
|
||||||
queue_name: <% $.queue_name %>
|
queue_name: <% $.queue_name %>
|
||||||
messages:
|
type: <% execution().name %>
|
||||||
body:
|
status: <% $.get('status', 'SUCCESS') %>
|
||||||
type: tripleo.validations.v1.verify_profiles
|
message: <% $.get('message', '') %>
|
||||||
payload:
|
execution: <% execution() %>
|
||||||
status: <% $.get('status', 'SUCCESS') %>
|
payload:
|
||||||
message: <% $.get('message', '') %>
|
errors: <% $.errors %>
|
||||||
execution: <% execution() %>
|
warnings: <% $.warnings %>
|
||||||
errors: <% $.errors %>
|
|
||||||
warnings: <% $.warnings %>
|
|
||||||
on-success:
|
|
||||||
- fail: <% $.get('status') = "FAILED" %>
|
|
||||||
|
|
||||||
check_default_nodes_count:
|
check_default_nodes_count:
|
||||||
input:
|
input:
|
||||||
@@ -623,22 +586,17 @@ workflows:
|
|||||||
warnings: <% task().result.warnings %>
|
warnings: <% task().result.warnings %>
|
||||||
|
|
||||||
send_message:
|
send_message:
|
||||||
action: zaqar.queue_post
|
workflow: tripleo.messaging.v1.send
|
||||||
retry: count=5 delay=1
|
|
||||||
input:
|
input:
|
||||||
queue_name: <% $.queue_name %>
|
queue_name: <% $.queue_name %>
|
||||||
messages:
|
type: <% execution().name %>
|
||||||
body:
|
status: <% $.get('status', 'SUCCESS') %>
|
||||||
type: tripleo.validations.v1.check_hypervisor_stats
|
message: <% $.get('message', '') %>
|
||||||
payload:
|
execution: <% execution() %>
|
||||||
status: <% $.get('status', 'SUCCESS') %>
|
payload:
|
||||||
message: <% $.get('message', '') %>
|
statistics: <% $.statistics %>
|
||||||
execution: <% execution() %>
|
errors: <% $.errors %>
|
||||||
statistics: <% $.statistics %>
|
warnings: <% $.warnings %>
|
||||||
errors: <% $.errors %>
|
|
||||||
warnings: <% $.warnings %>
|
|
||||||
on-success:
|
|
||||||
- fail: <% $.get('status') = "FAILED" %>
|
|
||||||
|
|
||||||
check_pre_deployment_validations:
|
check_pre_deployment_validations:
|
||||||
input:
|
input:
|
||||||
@@ -765,22 +723,17 @@ workflows:
|
|||||||
on-error: send_message
|
on-error: send_message
|
||||||
|
|
||||||
send_message:
|
send_message:
|
||||||
action: zaqar.queue_post
|
workflow: tripleo.messaging.v1.send
|
||||||
retry: count=5 delay=1
|
|
||||||
input:
|
input:
|
||||||
queue_name: <% $.queue_name %>
|
queue_name: <% $.queue_name %>
|
||||||
messages:
|
type: <% execution().name %>
|
||||||
body:
|
status: <% $.get('status', 'SUCCESS') %>
|
||||||
type: tripleo.validations.v1.check_hypervisor_stats
|
message: <% $.get('message', '') %>
|
||||||
payload:
|
execution: <% execution() %>
|
||||||
status: <% $.get('status', 'SUCCESS') %>
|
payload:
|
||||||
message: <% $.get('message', '') %>
|
kernel_id: <% $.kernel_id %>
|
||||||
execution: <% execution() %>
|
ramdisk_id: <% $.ramdisk_id %>
|
||||||
kernel_id: <% $.kernel_id %>
|
flavors: <% $.flavors %>
|
||||||
ramdisk_id: <% $.ramdisk_id %>
|
statistics: <% $.statistics %>
|
||||||
flavors: <% $.flavors %>
|
errors: <% $.errors %>
|
||||||
statistics: <% $.statistics %>
|
warnings: <% $.warnings %>
|
||||||
errors: <% $.errors %>
|
|
||||||
warnings: <% $.warnings %>
|
|
||||||
on-success:
|
|
||||||
- fail: <% $.get('status') = "FAILED" %>
|
|
||||||
|
Reference in New Issue
Block a user