aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Koper <grzegorzk@stackhpc.com>2026-05-08 15:19:12 +0200
committerGrzegorz Koper <grzegorzk@stackhpc.com>2026-05-14 07:52:52 +0000
commit55ff31753038d81a7da8d2394d5365a4e042a402 (patch)
treee135baf482a70aff802830fec60b1972d51512b2
parent369bfaadbec63b50c29e93802585b4c70c8486b9 (diff)
downloadkolla-55ff31753038d81a7da8d2394d5365a4e042a402.tar.gz
kolla-55ff31753038d81a7da8d2394d5365a4e042a402.zip
horizon: rebuild static assets after theme changes
Include the theme directory in settings_bundle so theme-only changes invalidate the cache and rebuild the static assets. Closes-Bug: #2148389 Change-Id: If4fbc24c5c339f7dee7bf67a09fc6448ede0c9fd Signed-off-by: Grzegorz Koper <grzegorzk@stackhpc.com> (cherry picked from commit 21cacdd855bca15be846d392ec6795d667bf8ac1)
-rw-r--r--docker/horizon/extend_start.sh3
-rw-r--r--releasenotes/notes/horizon-theme-rebuilds-65e5f50c1d0cc8dd.yaml7
2 files changed, 9 insertions, 1 deletions
diff --git a/docker/horizon/extend_start.sh b/docker/horizon/extend_start.sh
index 7ada4c0f2..d1198adb4 100644
--- a/docker/horizon/extend_start.sh
+++ b/docker/horizon/extend_start.sh
@@ -193,7 +193,8 @@ function settings_bundle {
tar -cf- --mtime=1970-01-01 \
/etc/openstack-dashboard/local_settings \
/etc/openstack-dashboard/custom_local_settings \
- /etc/openstack-dashboard/local_settings.d 2> /dev/null || true
+ /etc/openstack-dashboard/local_settings.d \
+ /etc/openstack-dashboard/themes 2> /dev/null || true
}
function settings_changed {
diff --git a/releasenotes/notes/horizon-theme-rebuilds-65e5f50c1d0cc8dd.yaml b/releasenotes/notes/horizon-theme-rebuilds-65e5f50c1d0cc8dd.yaml
new file mode 100644
index 000000000..a85f1e5f4
--- /dev/null
+++ b/releasenotes/notes/horizon-theme-rebuilds-65e5f50c1d0cc8dd.yaml
@@ -0,0 +1,7 @@
+---
+fixes:
+ - |
+ Fixed Horizon static asset regeneration for custom theme updates.
+ Changes under ``/etc/openstack-dashboard/themes`` now invalidate the
+ startup settings hash, so Horizon reruns ``collectstatic`` and
+ ``compress`` after a restart or recreate.