Merge "Get the config for update outside of package update"
This commit is contained in:
@@ -46,14 +46,10 @@ workflows:
|
|||||||
parameter: CephAnsiblePlaybook
|
parameter: CephAnsiblePlaybook
|
||||||
env_key: parameter_defaults
|
env_key: parameter_defaults
|
||||||
delete: true
|
delete: true
|
||||||
on-success: get_config
|
|
||||||
on-error: set_update_failed
|
|
||||||
|
|
||||||
get_config:
|
|
||||||
action: tripleo.config.get_overcloud_config
|
|
||||||
on-success: send_message
|
on-success: send_message
|
||||||
on-error: set_update_failed
|
on-error: set_update_failed
|
||||||
|
|
||||||
|
|
||||||
set_update_failed:
|
set_update_failed:
|
||||||
on-success: send_message
|
on-success: send_message
|
||||||
publish:
|
publish:
|
||||||
@@ -72,7 +68,40 @@ workflows:
|
|||||||
message: <% $.get('message', '') %>
|
message: <% $.get('message', '') %>
|
||||||
execution: <% execution() %>
|
execution: <% execution() %>
|
||||||
on-success:
|
on-success:
|
||||||
- fail: <% $.get('get_config') = "FAILED" %>
|
- fail: <% $.get('status') = "FAILED" %>
|
||||||
|
|
||||||
|
get_config:
|
||||||
|
input:
|
||||||
|
- container
|
||||||
|
- queue_name: tripleo
|
||||||
|
|
||||||
|
tags:
|
||||||
|
- tripleo-common-managed
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
get_config:
|
||||||
|
action: tripleo.config.get_overcloud_config container=<% $.container %>
|
||||||
|
publish:
|
||||||
|
status: SUCCESS
|
||||||
|
message: <% task().result %>
|
||||||
|
publish-on-error:
|
||||||
|
status: FAILED
|
||||||
|
message: Init Minor update failed
|
||||||
|
on-complete: send_message
|
||||||
|
|
||||||
|
send_message:
|
||||||
|
action: zaqar.queue_post
|
||||||
|
input:
|
||||||
|
queue_name: <% $.queue_name %>
|
||||||
|
messages:
|
||||||
|
body:
|
||||||
|
type: tripleo.package_update.v1.package_update_plan
|
||||||
|
payload:
|
||||||
|
status: <% $.get('status', 'SUCCESS') %>
|
||||||
|
message: <% $.get('message', '') %>
|
||||||
|
execution: <% execution() %>
|
||||||
|
on-success:
|
||||||
|
- fail: <% $.get('status') = "FAILED" %>
|
||||||
|
|
||||||
update_nodes:
|
update_nodes:
|
||||||
description: Take a container and perform an update nodes by nodes
|
description: Take a container and perform an update nodes by nodes
|
||||||
|
Reference in New Issue
Block a user