Publish error for package_update workflow
The package_update workbook need to publish the execption when something failed with heat stack update Manual Cherry pick from: I8db298e885e110f1b8852893b76b36d3465df6c2 Change-Id: I8db298e885e110f1b8852893b76b36d3465df6c2
This commit is contained in:
parent
7d89b37a53
commit
bd9da1f1b0
@ -27,6 +27,8 @@ workflows:
|
|||||||
timeout: <% $.timeout %>
|
timeout: <% $.timeout %>
|
||||||
container: <% $.container %>
|
container: <% $.container %>
|
||||||
ceph_ansible_playbook: <% $.ceph_ansible_playbook %>
|
ceph_ansible_playbook: <% $.ceph_ansible_playbook %>
|
||||||
|
publish-on-error:
|
||||||
|
message: <% task().result %>
|
||||||
on-success: clean_plan
|
on-success: clean_plan
|
||||||
on-error: set_update_failed
|
on-error: set_update_failed
|
||||||
|
|
||||||
@ -37,15 +39,20 @@ workflows:
|
|||||||
parameter: CephAnsiblePlaybook
|
parameter: CephAnsiblePlaybook
|
||||||
env_key: parameter_defaults
|
env_key: parameter_defaults
|
||||||
delete: true
|
delete: true
|
||||||
on-success: send_message
|
on-success: set_update_success
|
||||||
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:
|
||||||
status: FAILED
|
status: FAILED
|
||||||
message: <% task(update).result %>
|
update_status: UPDATE_FAILED
|
||||||
|
|
||||||
|
set_update_success:
|
||||||
|
on-success: send_message
|
||||||
|
publish:
|
||||||
|
status: SUCCESS
|
||||||
|
update_status: UPDATE_SUCCESS
|
||||||
|
|
||||||
send_message:
|
send_message:
|
||||||
action: zaqar.queue_post
|
action: zaqar.queue_post
|
||||||
|
Loading…
Reference in New Issue
Block a user