No logo in Horizon - 404 logo-canonical-openstack-splash.svg

Bug #2067632 reported by Nobuto Murata
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Snap
In Progress
High
Unassigned
horizon (Ubuntu)
Status tracked in Oracular
Noble
Fix Committed
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/conf-enabled/openstack-dashboard.conf, and update /etc/openstack-dashboard/local_settings.py value STATIC_URL to match your new apache2 configuration.

 * 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://microstack.run/docs/single-node

the login screen and the dashboard after logging in are missing the main logo.

horizon-k8s 2024.1/edge 82

Related branches

Revision history for this message
Nobuto Murata (nobuto) wrote :
Revision history for this message
Nobuto Murata (nobuto) wrote :

root@horizon-0:/# find /var/lib/openstack-dashboard/static/ -name logo-canonical-openstack-*.svg
/var/lib/openstack-dashboard/static/themes/ubuntu/img/logo-canonical-openstack-linear.svg
/var/lib/openstack-dashboard/static/themes/ubuntu/img/logo-canonical-openstack-splash.svg

#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
is translated to:
http://10.20.21.11/static/themes/ubuntu/img/logo-canonical-openstack-linear.svg

But 10.20.21.11 is the traefik endpoint so /static doesn't reach to any container behind it.

This has to be:
http://10.20.21.11/openstack-horizon/static/themes/ubuntu/img/logo-canonical-openstack-linear.svg
or something like that to reach to the horizon container.

Revision history for this message
Matt Verran (mv-2112) wrote :

This was raised and supposedly fixed under https://bugs.launchpad.net/snap-openstack/+bug/2044176. I've not managed a working setup for sometime so cannot comment if it actually got fixed.

Revision history for this message
Nobuto Murata (nobuto) wrote :

Interesting. Thanks for the pointer.

Looks like the first point you raised in the following comment is still the case.
https://bugs.launchpad.net/snap-openstack/+bug/2044176/comments/2

James Page (james-page)
tags: added: open-2183
Changed in snap-openstack:
status: New → Triaged
importance: Undecided → High
James Page (james-page)
Changed in horizon (Ubuntu Noble):
status: New → Triaged
Changed in horizon (Ubuntu Oracular):
status: New → Triaged
description: updated
James Page (james-page)
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
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package horizon - 4:24.0.0-0ubuntu3

---------------
horizon (4:24.0.0-0ubuntu3) oracular; urgency=medium

  * d/u/_styles.scss: use static_url variable instead of absolute path
    (LP: #2067632).

 -- Guillaume Boutry <email address hidden> Thu, 11 Jul 2024 11:03:18 +0100

Changed in horizon (Ubuntu Oracular):
status: In Progress → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote : Please test proposed package

Hello Nobuto, or anyone else affected,

Accepted horizon into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/horizon/4:24.0.0-0ubuntu1.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in horizon (Ubuntu Noble):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-noble
Revision history for this message
Guillaume Boutry (gboutry) wrote (last edit ):

I have tested with package from main and proposed, I can confirm that the package from proposed fixes the issue. I'll attach reproduction steps, logs and screenshots.

Revision history for this message
Guillaume Boutry (gboutry) wrote (last edit ):

Here's the logs, in which you can see the packages versions, and that after package collections, in main, the assets url is not updated, but in proposed it is updated.

Main version:
openstack-dashboard:
  Installed: 4:24.0.0-0ubuntu1.1
  Candidate: 4:24.0.0-0ubuntu1.1
  Version table:
 *** 4:24.0.0-0ubuntu1.1 500
        500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     4:24.0.0-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages

Proposed version:
openstack-dashboard:
  Installed: 4:24.0.0-0ubuntu1.2
  Candidate: 4:24.0.0-0ubuntu1.2
  Version table:
 *** 4:24.0.0-0ubuntu1.2 700
        100 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     4:24.0.0-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages

Revision history for this message
Guillaume Boutry (gboutry) wrote :

Here's the screenshot from main

Revision history for this message
Guillaume Boutry (gboutry) wrote :

Here's the screenshot from proposed

tags: added: verification-done-noble
removed: verification-needed-noble
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.