summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorPaul Bourke <paul.bourke@oracle.com>2017-10-04 16:19:02 +0100
committerDuong Ha-Quang <duonghq@vn.fujitsu.com>2017-10-17 07:22:12 +0000
commitcad0a1e697ebc2caf9dd9dc6e4abe6ccaccf1b07 (patch)
tree68568b57b77992cbe22b83771496c31b2974e60a /docker
parentd71c25caa4da6aac2137362a1f48eaf62a4286f0 (diff)
downloadkolla-cad0a1e697ebc2caf9dd9dc6e4abe6ccaccf1b07.tar.gz
kolla-cad0a1e697ebc2caf9dd9dc6e4abe6ccaccf1b07.zip
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
Diffstat (limited to 'docker')
-rw-r--r--docker/horizon/extend_start.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/horizon/extend_start.sh b/docker/horizon/extend_start.sh
index 447d2a723..ddde030a9 100644
--- a/docker/horizon/extend_start.sh
+++ b/docker/horizon/extend_start.sh
@@ -253,7 +253,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