Update converge workflow to remove no-ops

The no-opped DeploymentSteps need to be re-added after we're done with
minor update.

Related:
  python-tripleoclient I9656d8c6137fb656aecda7d13768ca4ab3c10b1f

Change-Id: I6abe8cba12806730bb3686d4f2695070c85e468a
Partial-Bug: #1760898
(cherry picked from commit a74541c391)
This commit is contained in:
Jiri Stransky 2018-04-03 17:04:28 +02:00
parent 372fde4d7d
commit 3f4bc4d228
1 changed files with 38 additions and 0 deletions

View File

@ -179,6 +179,44 @@ workflows:
on-success:
- fail: <% $.get('status') = "FAILED" %>
update_converge_plan:
description: Take a container and perform the converge for minor update
input:
- container
- queue_name: tripleo
tags:
- tripleo-common-managed
tasks:
remove_noop:
action: tripleo.plan.remove_noop_deploystep
input:
container: <% $.container %>
on-success: send_message
on-error: set_update_failed
set_update_failed:
on-success: send_message
publish:
status: FAILED
message: <% task(remove_noop).result %>
send_message:
action: zaqar.queue_post
input:
queue_name: <% $.queue_name %>
messages:
body:
type: tripleo.package_update.v1.update_converge_plan
payload:
status: <% $.get('status', 'SUCCESS') %>
message: <% $.get('message', '') %>
execution: <% execution() %>
on-success:
- fail: <% $.get('status') = "FAILED" %>
converge_upgrade_plan:
description: Take a container and perform the converge step of a major upgrade