From 6f6ffe1dffb8eb29f1714c45b1cf3a7dc93bcf3e Mon Sep 17 00:00:00 2001 From: Jaganathan Palanisamy Date: Wed, 9 May 2018 03:58:20 -0400 Subject: [PATCH] Prevent updating derived_parameters in plan environment When deploying overcloud with update-plan-only option, need to prevent updating the derived parameters section in container plan-environment file. derived_parameters will be used only in the deployment when using overcloud deploy without update-plan-only option. Change-Id: I35a35910e5f481d7b7fd7cfea6a20ee8e2cc6816 Closes-Bug: #1770109 --- workbooks/derive_params.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/workbooks/derive_params.yaml b/workbooks/derive_params.yaml index 916d37b68..6dbd4dbc1 100644 --- a/workbooks/derive_params.yaml +++ b/workbooks/derive_params.yaml @@ -11,6 +11,7 @@ workflows: input: - plan: overcloud - queue_name: tripleo + - persist_params_in_plan: true - user_inputs: {} tags: @@ -58,7 +59,9 @@ workflows: publish: # Gets all the roles derived parameters as dictionary result: <% task().result.select($.get('derived_parameters', {})).sum() %> - on-success: reset_derive_parameters_in_plan + on-success: + - send_message: <% not $.persist_params_in_plan %> + - reset_derive_parameters_in_plan: <% $.persist_params_in_plan %> on-error: set_status_failed_for_each_role reset_derive_parameters_in_plan: