Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/horizon/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ func GetVarLogHttpdVolumeMount() corev1.VolumeMount {
// Python version ever changes, this constant needs updating to match, or the
// dashboard-setup init container will fail loudly (permission denied writing
// to the real, unshadowed site-packages path) rather than silently
// misbehave. Confirmed via a real WSGI traceback: Python 3.9.
const SitePackagesPath = "/usr/lib/python3.9/site-packages"
// misbehave. Confirmed via a real WSGI traceback: Python 3.12.
const SitePackagesPath = "/usr/lib/python3.12/site-packages"

// DashboardEnabledFinalPath is where dashboard_setup's config_dashboard
// function copies/removes per-service dashboard panel files
Expand Down
2 changes: 1 addition & 1 deletion templates/horizon/bin/dashboard_setup
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ MANAGE_PY="/usr/bin/python3 /usr/bin/manage.py"
# a Kubernetes VolumeMount path must be a fixed string decided at
# pod-spec-build time, so if this ever needs to change, both places need
# updating together.
SITE_PACKAGES="/usr/lib/python3.9/site-packages"
SITE_PACKAGES="/usr/lib/python3.12/site-packages"
# There may not be an ENABLE_WATCHER variable. Defaulting it to no.
ENABLE_WATCHER="${ENABLE_WATCHER:-no}"
# There may not be an ENABLE_CLOUDKITTY variable. Defaulting it to no.
Expand Down
4 changes: 2 additions & 2 deletions test/kuttl/tests/tls-deployment/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ spec:
name: var-log-httpd
- mountPath: /usr/share/openstack-dashboard/openstack_dashboard/themes
name: themes
- mountPath: /usr/lib/python3.9/site-packages/openstack_dashboard/local/enabled
- mountPath: /usr/lib/python3.12/site-packages/openstack_dashboard/local/enabled
name: dashboard-enabled
- mountPath: /usr/share/openstack-dashboard/static
name: dashboard-static
Expand Down Expand Up @@ -171,7 +171,7 @@ spec:
name: var-log-httpd
- mountPath: /usr/share/openstack-dashboard/openstack_dashboard/themes
name: themes
- mountPath: /usr/lib/python3.9/site-packages/openstack_dashboard/local/enabled
- mountPath: /usr/lib/python3.12/site-packages/openstack_dashboard/local/enabled
name: dashboard-enabled
- mountPath: /usr/share/openstack-dashboard/static
name: dashboard-static
Expand Down
Loading