Broken layout in horizon dashboard

Bug #1610122 reported by Sergei Chipiga
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Status tracked in 10.0.x
10.0.x
Fix Released
Critical
Alexey Deryugin
9.x
Fix Released
Critical
Alexey Deryugin

Bug Description

Steps:
- Open horizon dashboard url

Expected result:
- Login page has correct layout

Actual result:
- Layout is broken, no css and js, only html and logo requests are present. It's actual for all pages.

Env:
cat /etc/fuel_build_id:
 685
cat /etc/fuel_build_number:
 685
cat /etc/fuel_release:
 9.0
cat /etc/fuel_openstack_version:
 mitaka-9.0
rpm -qa | egrep 'fuel|astute|network-checker|nailgun|packetary|shotgun':
 fuel-release-9.0.0-1.mos6349.noarch
 network-checker-9.0.0-1.mos74.x86_64
 fuel-notify-9.0.0-1.mos8496.noarch
 fuel-ostf-9.0.0-1.mos938.noarch
 fuel-provisioning-scripts-9.0.0-1.mos8748.noarch
 python-packetary-9.0.0-1.mos142.noarch
 fuel-openstack-metadata-9.0.0-1.mos8748.noarch
 rubygem-astute-9.0.0-1.mos753.noarch
 fuel-misc-9.0.0-1.mos8496.noarch
 python-fuelclient-9.0.0-1.mos325.noarch
 fuel-mirror-9.0.0-1.mos142.noarch
 fuel-9.0.0-1.mos6349.noarch
 fuel-utils-9.0.0-1.mos8496.noarch
 fuel-setup-9.0.0-1.mos6349.noarch
 nailgun-mcagents-9.0.0-1.mos753.noarch
 fuel-library9.0-9.0.0-1.mos8496.noarch
 fuel-agent-9.0.0-1.mos285.noarch
 fuel-ui-9.0.0-1.mos2717.noarch
 fuel-migrate-9.0.0-1.mos8496.noarch
 shotgun-9.0.0-1.mos90.noarch
 fuel-bootstrap-cli-9.0.0-1.mos285.noarch
 fuelmenu-9.0.0-1.mos275.noarch
 fuel-nailgun-9.0.0-1.mos8748.noarch

Revision history for this message
Sergei Chipiga (schipiga) wrote :
Revision history for this message
Timur Sufiev (tsufiev-x) wrote :

After I ran once again `/usr/share/openstack-dashboard/manage.py collectstatic --clear --no-input && /usr/share/openstack-dashboard/manage.py compress` on controller node and restarted Apache, the layout became good.

It looks like a package script issue to me, somehow the static assets are not properly collected/compressed.

Changed in mos:
assignee: MOS Horizon (mos-horizon) → MOS Packaging Team (mos-packaging)
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

All automated tests for Horizon blocked because of the issue.

tags: added: blocker-for-qa
Changed in mos:
assignee: MOS Packaging Team (mos-packaging) → Ivan Udovichenko (iudovichenko)
Revision history for this message
Ivan Udovichenko (iudovichenko) wrote :

Looks like the issue is not with static files.
If DEBUG is set to True, it works, otherwise it doesn't link .css to page.

Changed in mos:
assignee: Ivan Udovichenko (iudovichenko) → MOS Horizon (mos-horizon)
Changed in mos:
assignee: MOS Horizon (mos-horizon) → Ivan Udovichenko (iudovichenko)
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack-build/horizon-build (9.0/mitaka)

Fix proposed to branch: 9.0/mitaka
Change author: Ivan Udovichenko <email address hidden>
Review: https://review.fuel-infra.org/24646

Changed in mos:
status: Confirmed → In Progress
Revision history for this message
Ivan Udovichenko (iudovichenko) wrote :

Puppet manifest runs command in a wrong order.

"""
2016-08-09 14:00:48 +0000 Concat[/etc/openstack-dashboard/local_settings.py] (info): Starting to evaluate the resource
2016-08-09 14:00:48 +0000 Concat[/etc/openstack-dashboard/local_settings.py] (debug): The container Class[Horizon] will propagate my refresh event
2016-08-09 14:00:48 +0000 Concat[/etc/openstack-dashboard/local_settings.py] (info): Scheduling refresh of Exec[refresh_horizon_django_compress]
2016-08-09 14:00:48 +0000 Concat[/etc/openstack-dashboard/local_settings.py] (info): Scheduling refresh of Exec[refresh_horizon_django_cache]
2016-08-09 14:00:48 +0000 Concat[/etc/openstack-dashboard/local_settings.py] (info): Evaluated in 0.02 seconds
2016-08-09 14:00:48 +0000 /Stage[main]/Horizon/Exec[refresh_horizon_django_compress] (info): Starting to evaluate the resource
2016-08-09 14:00:48 +0000 Exec[refresh_horizon_django_compress](provider=posix) (debug): Executing '/usr/share/openstack-dashboard/manage.py compress --force'
2016-08-09 14:00:48 +0000 Puppet (debug): Executing '/usr/share/openstack-dashboard/manage.py compress --force'
2016-08-09 14:01:34 +0000 /Stage[main]/Horizon/Exec[refresh_horizon_django_compress] (notice): Triggered 'refresh' from 1 events
2016-08-09 14:01:34 +0000 /Stage[main]/Horizon/Exec[refresh_horizon_django_compress] (debug): The container Class[Horizon] will propagate my refresh event
2016-08-09 14:01:34 +0000 /Stage[main]/Horizon/Exec[refresh_horizon_django_compress] (info): Evaluated in 46.72 seconds
2016-08-09 14:01:34 +0000 /Stage[main]/Horizon/Exec[refresh_horizon_django_cache] (info): Starting to evaluate the resource
2016-08-09 14:01:34 +0000 Exec[refresh_horizon_django_cache](provider=posix) (debug): Executing '/usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear'
2016-08-09 14:01:34 +0000 Puppet (debug): Executing '/usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear'
2016-08-09 14:01:40 +0000 /Stage[main]/Horizon/Exec[refresh_horizon_django_cache] (notice): Triggered 'refresh' from 1 events
2016-08-09 14:01:40 +0000 /Stage[main]/Horizon/Exec[refresh_horizon_django_cache] (debug): The container Class[Horizon] will propagate my refresh event
2016-08-09 14:01:40 +0000 /Stage[main]/Horizon/Exec[refresh_horizon_django_cache] (info): Evaluated in 5.42 seconds
2016-08-09 14:01:40 +0000 Class[Horizon] (info): Starting to evaluate the resource
"""
http://paste.openstack.org/show/553599/

Snapshot:
https://drive.google.com/open?id=0B9h5DoYChm-CYzdIMGlWa0ZVMVU

As Timur Sufiev mentioned earlier, static files start to show after commands execution in the following order:
/usr/share/openstack-dashboard/manage.py collectstatic --clear --no-input
/usr/share/openstack-dashboard/manage.py compress

Changed in mos:
assignee: Ivan Udovichenko (iudovichenko) → MOS Puppet Team (mos-puppet)
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

We need to fix the issue in puppet now.

MOS Puppet team, please prepare the fix, the issue is Critical and still open for more the one week already.

Revision history for this message
Ivan Berezovskiy (iberezovskiy) wrote :
Revision history for this message
Dmitry Belyaninov (dbelyaninov) wrote :

Horizon UI works fine on snapshot #151

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-library 10.0.0rc1

This issue was fixed in the openstack/fuel-library 10.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-library 10.0.0

This issue was fixed in the openstack/fuel-library 10.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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