Horizon asset compression not working in some cases

Bug #1721281 reported by Paul Bourke on 2017-10-04
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla
Undecided
Unassigned
Pike
Undecided
Unassigned

Bug Description

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.

Reviewed: https://review.openstack.org/509505
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=cad0a1e697ebc2caf9dd9dc6e4abe6ccaccf1b07
Submitter: Zuul
Branch: master

commit cad0a1e697ebc2caf9dd9dc6e4abe6ccaccf1b07
Author: Paul Bourke <email address hidden>
Date: Wed Oct 4 16:19:02 2017 +0100

    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

Changed in kolla:
status: New → Fix Released

Reviewed: https://review.openstack.org/509506
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=ae8b3856907dbc3f70a5768cbe11276eae276f29
Submitter: Zuul
Branch: stable/pike

commit ae8b3856907dbc3f70a5768cbe11276eae276f29
Author: Paul Bourke <email address hidden>
Date: Wed Oct 4 16:19:02 2017 +0100

    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

Changed in kolla:
milestone: none → 5.0.1
milestone: 5.0.1 → queens-2

This issue was fixed in the openstack/kolla 6.0.0.0b2 development milestone.

Reviewed: https://review.openstack.org/521710
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=f605315c40ca1e0a5c695b88c20680574bd700e9
Submitter: Zuul
Branch: stable/ocata

commit f605315c40ca1e0a5c695b88c20680574bd700e9
Author: Paul Bourke <email address hidden>
Date: Wed Oct 4 16:19:02 2017 +0100

    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)

tags: added: in-stable-ocata

This issue was fixed in the openstack/kolla 5.0.1 release.

This issue was fixed in the openstack/kolla 4.0.4 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers