No logo in Horizon - 404 logo-canonical-openstack-splash.svg
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
OpenStack Snap |
Fix Released
|
High
|
Guillaume Boutry | |||
horizon (Ubuntu) | Status tracked in Oracular | |||||
Noble |
Fix Released
|
High
|
Unassigned | |||
Oracular |
Fix Released
|
High
|
Unassigned |
Bug Description
[ Impact ]
* Installation of the horizon package that change the root url will not have the ubuntu theme's static assets load properly. The fixed proposed replaces the absolute paths for static assets to make use of the static_url variable available from the scss context.
[ Test Plan ]
* Install the horizon package and change the static url, this is the default behavior of Sunbeam.
* In non-sunbeam installation, modify the apache2 routes from /etc/apache2/
* This has been tested by creating a horizon Rock from a PPA, and verifying the images are available with and without offline compression enabled.
[ Where problems could occur ]
* Problems could occur if the installation static assets have not been compressed after this change. The files provided by the package would have the fix, but not the actually used static assets (compressed assets when offline compression is enabled)
[ Original Report ]
By following the single node scenario:
https:/
the login screen and the dashboard after logging in are missing the main logo.
horizon-k8s 2024.1/edge 82
Related branches
- James Page: Pending requested
-
Diff: 46 lines (+10/-3)2 files modifieddebian/changelog (+7/-0)
debian/theme/ubuntu/_styles.scss (+3/-3)
tags: | added: open-2183 |
Changed in snap-openstack: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in horizon (Ubuntu Noble): | |
status: | New → Triaged |
Changed in horizon (Ubuntu Oracular): | |
status: | New → Triaged |
description: | updated |
no longer affects: | sunbeam-charms |
no longer affects: | ubuntu-openstack-rocks |
Changed in horizon (Ubuntu Noble): | |
importance: | Undecided → High |
Changed in horizon (Ubuntu Oracular): | |
importance: | Undecided → High |
Changed in snap-openstack: | |
status: | Triaged → In Progress |
Changed in horizon (Ubuntu Noble): | |
status: | Triaged → In Progress |
Changed in horizon (Ubuntu Oracular): | |
status: | Triaged → In Progress |
tags: |
added: verification-done-noble removed: verification-needed-noble |
root@horizon-0:/# find /var/lib/ openstack- dashboard/ static/ -name logo-canonical- openstack- *.svg openstack- dashboard/ static/ themes/ ubuntu/ img/logo- canonical- openstack- linear. svg openstack- dashboard/ static/ themes/ ubuntu/ img/logo- canonical- openstack- splash. svg
/var/lib/
/var/lib/
#splash .login:after { background-image: url("/static/ themes/ ubuntu/ img/logo- canonical- openstack- splash. svg"); background-repeat: no-repeat; background-size: 180px; color: #e95420; content: "Dashboard"; display: block; font-size: 31px; left: 20px; line-height: 2.4em; position: absolute; text-indent: 185px; top: 15px; width: 100%; }
/static/ themes/ ubuntu/ img/logo- canonical- openstack- splash. svg 10.20.21. 11/static/ themes/ ubuntu/ img/logo- canonical- openstack- linear. svg
is translated to:
http://
But 10.20.21.11 is the traefik endpoint so /static doesn't reach to any container behind it.
This has to be: 10.20.21. 11/openstack- horizon/ static/ themes/ ubuntu/ img/logo- canonical- openstack- linear. svg
http://
or something like that to reach to the horizon container.