From ea6fc8f95da041636fa4e1ab7e3524ad5c9992ed Mon Sep 17 00:00:00 2001 From: Martin Schuppert Date: Fri, 1 Feb 2019 14:23:23 +0100 Subject: [PATCH] Run nova_statedir_owner on every run So far nova_statedir_owner step is only run on initial deploy or when the image changes. This runs it on every deploy/scale/... run. Related-Bug: 1814260 Change-Id: I5eaaad9371183dff070d0eb72457fb76a6a60ebe (cherry picked from commit efaf0c3bea07e64361390a2ac573552fe69715b4) --- docker/services/nova-compute.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docker/services/nova-compute.yaml b/docker/services/nova-compute.yaml index bbbc97c5b6..63e2463524 100644 --- a/docker/services/nova-compute.yaml +++ b/docker/services/nova-compute.yaml @@ -80,6 +80,12 @@ parameters: This setup requires the Compute role to have the PacemakerRemote service added to it. type: boolean + DeployIdentifier: + default: '' + type: string + description: > + Setting this to a unique value will re-run any deployment tasks which + perform configuration on a Heat stack-update. resources: @@ -194,6 +200,13 @@ outputs: - /var/lib/nova:/var/lib/nova:shared - /var/lib/docker-config-scripts/:/docker-config-scripts/ command: "/docker-config-scripts/nova_statedir_ownership.py" + environment: + # NOTE: this should force this container to re-run on each + # update (scale-out, etc.) + - list_join: + - '' + - - 'TRIPLEO_DEPLOY_IDENTIFIER=' + - {get_param: DeployIdentifier} step_4: nova_wait_for_placement_service: start_order: 2