Hello Openstack team, I'm currently working on customizing the Horizon (xena) dashboard to use the OVHcloud assets: logo.svg and logo-splash.svg. I've been following this documentation https://docs.openstack.org/horizon/latest/configuration/themes.html I added the ovhcloud theme in horizon/openstack_dashboard/local/local_settings.py in AVAILABLE_THEMES, I created the subdir ovhcloud in horizon/openstack_dashboard/themes and I created a ovhcloud/img with logo.svg and logo-splash.svg in it. I put a _variables.scss and a _styles.scss in /themes/ovhcloud/ Then I executed python manage.py collectstatic It put all the files in horizon-sources/horizon.../static/themes/ovhcloud But then when trying to connect with the session cookie theme="ovhcloud", I have a 500 error. i don't think it comes from images because i've been puting it in /horizon-souurces/horizon.../static/dashbaord.img and they were displayed correctly. Do you have any idea about the misconfiguration I've done ? Best regards, Mathilde Hermet
Salut! A 500 from Horizon is a bit strange. What do the Horizon logs say? If you remove your customization and restart Horizon, does it recover? On Mon, Feb 28, 2022 at 11:17 AM Mathilde Hermet < mathilde.hermet@ovhcloud.com> wrote:
Hello Openstack team,
I'm currently working on customizing the Horizon (xena) dashboard to use the OVHcloud assets: logo.svg and logo-splash.svg.
I've been following this documentation https://docs.openstack.org/horizon/latest/configuration/themes.html
I added the ovhcloud theme in horizon/openstack_dashboard/local/local_settings.py in AVAILABLE_THEMES,
I created the subdir ovhcloud in horizon/openstack_dashboard/themes and I created a ovhcloud/img with logo.svg and logo-splash.svg in it.
I put a _variables.scss and a _styles.scss in /themes/ovhcloud/
Then I executed python manage.py collectstatic
It put all the files in horizon-sources/horizon.../static/themes/ovhcloud
But then when trying to connect with the session cookie theme="ovhcloud", I have a 500 error.
i don't think it comes from images because i've been puting it in /horizon-souurces/horizon.../static/dashbaord.img and they were displayed correctly.
Do you have any idea about the misconfiguration I've done ?
Best regards,
Mathilde Hermet
On 2/28/22 09:45, Mathilde Hermet wrote:
Hello Openstack team,
I'm currently working on customizing the Horizon (xena) dashboard to use the OVHcloud assets: logo.svg and logo-splash.svg.
I've been following this documentation https://docs.openstack.org/horizon/latest/configuration/themes.html
I added the ovhcloud theme in horizon/openstack_dashboard/local/local_settings.py in AVAILABLE_THEMES,
I created the subdir ovhcloud in horizon/openstack_dashboard/themes and I created a ovhcloud/img with logo.svg and logo-splash.svg in it.
I put a _variables.scss and a _styles.scss in /themes/ovhcloud/
Then I executed python manage.py collectstatic
It put all the files in horizon-sources/horizon.../static/themes/ovhcloud
But then when trying to connect with the session cookie theme="ovhcloud", I have a 500 error.
i don't think it comes from images because i've been puting it in /horizon-souurces/horizon.../static/dashbaord.img and they were displayed correctly.
Do you have any idea about the misconfiguration I've done ?
Best regards,
Mathilde Hermet
Hi Mathilde, I'm not sure where your error is, but if you want, you can have a look at for exemple: https://packages.debian.org/openstack-dashboard-debian-theme which has it's git over here: https://salsa.debian.org/openstack-team/debian/openstack-dashboard-debian-th... I hope this helps, Cheers, Thomas Goirand (zigo)
On 3/2/22 12:16, Thomas Goirand wrote:
Do you have any idea about the misconfiguration I've done ?
Best regards,
Mathilde Hermet
Hi Mathilde,
I'm not sure where your error is, but if you want, you can have a look at for exemple: https://packages.debian.org/openstack-dashboard-debian-theme
which has it's git over here: https://salsa.debian.org/openstack-team/debian/openstack-dashboard-debian-th...
I hope this helps,
Cheers,
Thomas Goirand (zigo)
a 500 error is always a server error and should be logged in http error log. I'd take a look at the error log in the next step. Matthias
participants (4)
-
Laurent Dumont
-
Mathilde Hermet
-
Matthias Runge
-
Thomas Goirand