From f605315c40ca1e0a5c695b88c20680574bd700e9 Mon Sep 17 00:00:00 2001 From: Paul Bourke Date: Wed, 4 Oct 2017 16:19:02 +0100 Subject: [PATCH] Fix Horizon asset compression not happening on redeploy A recent change to kolla-ansible (a729dcc4) bind mounts /tmp from the host to handle uploading of larger images. Unfortunately this is also where we keep the state file for horizon which controls whether assets need to be recompressed (.local_settings.md5sum.txt). This means it is left over on destroy and causes issues with CSS / assets on redeploy. Change the location of this file to /var/lib/kolla/.local_settings.md5sum.txt so it is cleaned up correctly along with the container. Change-Id: Icfc71266cabedc2c1a3d30590cada3f774bc0d2c Closes-Bug: #1721281 (cherry picked from commit cad0a1e697ebc2caf9dd9dc6e4abe6ccaccf1b07) --- docker/horizon/extend_start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/horizon/extend_start.sh b/docker/horizon/extend_start.sh index 302560f3b6..11b1808e08 100644 --- a/docker/horizon/extend_start.sh +++ b/docker/horizon/extend_start.sh @@ -230,7 +230,7 @@ fi # NOTE(jeffrey4l): The local_settings file affect django-compress # behavior, so re-generate the compressed javascript and css if it # is changed -MD5SUM_TXT_PATH="/tmp/.local_settings.md5sum.txt" +MD5SUM_TXT_PATH="/var/lib/kolla/.local_settings.md5sum.txt" if [[ ! -f ${MD5SUM_TXT_PATH} || $(md5sum -c --status ${MD5SUM_TXT_PATH};echo $?) != 0 || ${FORCE_GENERATE} == "yes" ]]; then md5sum /etc/openstack-dashboard/local_settings > ${MD5SUM_TXT_PATH} if [[ "${KOLLA_INSTALL_TYPE}" == "binary" ]]; then