From 5a4223c869ebfcf8da0b8f11f2e2311282dc97bc Mon Sep 17 00:00:00 2001 From: Martin Magr Date: Fri, 26 Apr 2019 13:30:12 +0200 Subject: [PATCH] Ensure there is no redis on host In the past releases overcloud-full image could contained redis package even though containerized deployment has been used. This is problematic during minor update, so we need to make sure the package is removed. Change-Id: I827dd918bb83c67c6e02a4d91fed2a6959361283 --- deployment/database/redis-container-puppet.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/deployment/database/redis-container-puppet.yaml b/deployment/database/redis-container-puppet.yaml index 6b6fba79e6..7a9f4a0ee2 100644 --- a/deployment/database/redis-container-puppet.yaml +++ b/deployment/database/redis-container-puppet.yaml @@ -229,7 +229,18 @@ outputs: Log files from redis containers can be found under /var/log/containers/redis. ignore_errors: true - upgrade_tasks: [] + update_tasks: + - name: Ensure redis is uninstalled on container host + when: step|int == 1 + package: + name: redis + state: absent + upgrade_tasks: + - name: Ensure redis is uninstalled on container host + when: step|int == 1 + package: + name: redis + state: absent post_upgrade_tasks: - when: step|int == 1 import_role: