Pass container and queue_name inputs to the list_available_roles workflow

The tripleo.plan_management.v1.update_roles workflow didn't pass the plan
name (container name) or Zaqar queue name to the sub-workflow it triggered.
This caused the behaviour to be incorrect when using a name other than the
default. It now correctly passes on these parameters.

Change-Id: Ie0fccbdbfd97005dbc13ae6d1493b8274bb6254e
Closes-Bug: #1775791
This commit is contained in:
Dougal Matthews 2018-06-08 10:09:32 +01:00 committed by Jiri Tomasek
parent dca8418e78
commit b6c6881419
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,7 @@
---
fixes:
- |
The tripleo.plan_management.v1.update_roles workflow didn't pass the plan
name (container name) or Zaqar queue name to the sub-workflow it triggered.
This caused the behaviour to be incorrect when using a name other than the
default. It now correctly passes on these parameters.

View File

@ -1071,6 +1071,7 @@ workflows:
description: Internal workflow for validating a network exists from a role
input:
- container: overcloud
- defined_networks
- networks_in_roles
- queue_name: tripleo
@ -1153,6 +1154,7 @@ workflows:
validate_roles_and_networks:
workflow: _validate_networks_from_roles
input:
container: <% $.container %>
defined_networks: <% $.network_data.name %>
networks_in_roles: <% $.networks_in_roles %>
queue_name: <% $.queue_name %>
@ -1256,6 +1258,9 @@ workflows:
tasks:
get_available_roles:
workflow: list_available_roles
input:
container: <% $.container %>
queue_name: <% $.queue_name%>
publish:
available_roles: <% task().result.available_roles %>
on-success: validate_input