diff options
| author | Mark Goddard <mark@stackhpc.com> | 2019-04-10 12:44:37 +0100 |
|---|---|---|
| committer | Mark Goddard <mark@stackhpc.com> | 2019-04-10 15:14:25 +0100 |
| commit | 92c2456851857c45e8de9a3ff8f167579e0588f4 (patch) | |
| tree | a8f80d36670e8b50b2c590932007c10188cf9041 /docker/haproxy/Dockerfile.j2 | |
| parent | 6c0065185943355851308ae4df23b73918fab7be (diff) | |
| download | kolla-92c2456851857c45e8de9a3ff8f167579e0588f4.tar.gz kolla-92c2456851857c45e8de9a3ff8f167579e0588f4.zip | |
Write hash after compressing horizon static assets
If you run the horizon container with a restart policy of never, and the
static asset compression fails, the container fails to start, e.g. (seen
in CI)
++ /usr/bin/manage.py collectstatic --noinput --clear
Traceback (most recent call last):
File "/usr/bin/manage.py", line 18, in <module>
from django.core.management import execute_from_command_line
ImportError: No module named django.core.management
However, with a restart policy of unless-stopped (the default). the
horizon container will fail the first time but will succeed after a
restart. This is because the settings bundle hash is updated before the
compression is attempted.
To fix this, update the hash after compression completes successfully.
Change-Id: I3f1682ed55e7d45c1e97a1b34c7993aa839f0bb2
Closes-Bug: #1824137
Diffstat (limited to 'docker/haproxy/Dockerfile.j2')
0 files changed, 0 insertions, 0 deletions
