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:
Mathieu Bultel 2019-01-15 15:23:17 +01:00
parent 7d89b37a53
commit bd9da1f1b0
1 changed files with 10 additions and 3 deletions

View File

@ -27,6 +27,8 @@ workflows:
timeout: <% $.timeout %>
container: <% $.container %>
ceph_ansible_playbook: <% $.ceph_ansible_playbook %>
publish-on-error:
message: <% task().result %>
on-success: clean_plan
on-error: set_update_failed
@ -37,15 +39,20 @@ workflows:
parameter: CephAnsiblePlaybook
env_key: parameter_defaults
delete: true
on-success: send_message
on-success: set_update_success
on-error: set_update_failed
set_update_failed:
on-success: send_message
publish:
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:
action: zaqar.queue_post