Workflows for manipulating deployment status
Adds new workflows for setting the deployment status to either success, failed, or deploying. These are useful when interacting with the deployment manually, such as manually running config-download. Change-Id: Ibbe1e9a6776b16078c88b9b2111bf7b774a50161
This commit is contained in:
parent
ad4d9f8d6d
commit
6a9f923933
@ -0,0 +1,6 @@
|
||||
---
|
||||
features:
|
||||
- New workflows are added for manipulating the deployment status, including
|
||||
tripleo.deployment.v1.set_deployment_status_success,
|
||||
tripleo.deployment.v1.set_deployment_status_failed, and
|
||||
tripleo.deployment.v1.set_deployment_status_deploying.
|
@ -588,6 +588,111 @@ workflows:
|
||||
payload:
|
||||
deployment_status: <% $.get(deployment_status, "") %>
|
||||
|
||||
set_deployment_status_success:
|
||||
description: >
|
||||
Set deployment status to success and return the new status
|
||||
|
||||
tags:
|
||||
- tripleo-common-managed
|
||||
|
||||
input:
|
||||
- plan: overcloud
|
||||
- queue_name: tripleo
|
||||
|
||||
output:
|
||||
deployment_status: <% $.deployment_status %>
|
||||
|
||||
tasks:
|
||||
|
||||
set_deployment_success:
|
||||
on-success: send_message
|
||||
publish:
|
||||
status: SUCCESS
|
||||
deployment_status: DEPLOY_SUCCESS
|
||||
|
||||
send_message:
|
||||
workflow: tripleo.messaging.v1.send
|
||||
input:
|
||||
queue_name: <% $.queue_name %>
|
||||
type: <% execution().name %>
|
||||
status: <% $.status %>
|
||||
message: <% $.get('message', '') %>
|
||||
execution: <% execution() %>
|
||||
plan_name: <% $.plan %>
|
||||
deployment_status: <% $.deployment_status %>
|
||||
payload:
|
||||
deployment_status: <% $.deployment_status %>
|
||||
|
||||
set_deployment_status_failed:
|
||||
description: >
|
||||
Set deployment status to failed and return the new status
|
||||
|
||||
tags:
|
||||
- tripleo-common-managed
|
||||
|
||||
input:
|
||||
- plan: overcloud
|
||||
- queue_name: tripleo
|
||||
|
||||
output:
|
||||
deployment_status: <% $.deployment_status %>
|
||||
|
||||
tasks:
|
||||
|
||||
set_deployment_failed:
|
||||
on-success: send_message
|
||||
publish:
|
||||
status: FAILED
|
||||
deployment_status: DEPLOY_FAILED
|
||||
|
||||
send_message:
|
||||
workflow: tripleo.messaging.v1.send
|
||||
input:
|
||||
queue_name: <% $.queue_name %>
|
||||
type: <% execution().name %>
|
||||
status: <% $.status %>
|
||||
message: <% $.get('message', '') %>
|
||||
execution: <% execution() %>
|
||||
plan_name: <% $.plan %>
|
||||
deployment_status: <% $.deployment_status %>
|
||||
payload:
|
||||
deployment_status: <% $.deployment_status %>
|
||||
|
||||
set_deployment_status_deploying:
|
||||
description: >
|
||||
Set deployment status to deploying and return the new status
|
||||
|
||||
tags:
|
||||
- tripleo-common-managed
|
||||
|
||||
input:
|
||||
- plan: overcloud
|
||||
- queue_name: tripleo
|
||||
|
||||
output:
|
||||
deployment_status: <% $.deployment_status %>
|
||||
|
||||
tasks:
|
||||
|
||||
set_deployment_failed:
|
||||
on-success: send_message
|
||||
publish:
|
||||
status: RUNNING
|
||||
deployment_status: DEPLOYING
|
||||
|
||||
send_message:
|
||||
workflow: tripleo.messaging.v1.send
|
||||
input:
|
||||
queue_name: <% $.queue_name %>
|
||||
type: <% execution().name %>
|
||||
status: <% $.status %>
|
||||
message: <% $.get('message', '') %>
|
||||
execution: <% execution() %>
|
||||
plan_name: <% $.plan %>
|
||||
deployment_status: <% $.deployment_status %>
|
||||
payload:
|
||||
deployment_status: <% $.deployment_status %>
|
||||
|
||||
get_deployment_failures:
|
||||
description: >
|
||||
Get deployment failures
|
||||
|
Loading…
Reference in New Issue
Block a user