RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1263761 - horizon js broken
Summary: horizon js broken
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: RDO
Classification: Community
Component: openstack-horizon
Version: trunk
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Kilo
Assignee: Matthias Runge
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-16 15:40 UTC by Kevin Fox
Modified: 2015-09-16 16:08 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-09-16 16:08:22 UTC
Embargoed:


Attachments (Terms of Use)

Description Kevin Fox 2015-09-16 15:40:56 UTC
Description of problem:
Javascript's very broken.

Version-Release number of selected component (if applicable):
openstack-dashboard-8.0.0.0b4-dev91.el7.centos.noarch
with
http://cbs.centos.org/repos/cloud7-openstack-liberty-testing/$basearch/os/
http://cbs.centos.org/repos/cloud7-openstack-common-testing/$basearch/os/


How reproducible:
Every time

Steps to Reproduce:
open the dashboard and open the javascript console. lots of anuglar spewage.
Actual results:
Errors

Expected results:
No errors

Additional info:
I've narrowed part of it down. Its related to not having a horizon/ directory in the file structure.
The following patch makes it get closer to working, but not 100% yet

--- /usr/share/openstack-dashboard/openstack_dashboard/static_settings.py.orig  2015-09-15 19:29:40.941775339 +0000
+++ /usr/share/openstack-dashboard/openstack_dashboard/static_settings.py       2015-09-15 19:56:13.714211497 +0000
@@ -144,7 +144,7 @@
     # leading "/"
     file_discovery.populate_horizon_config(
         HORIZON_CONFIG,
-        os.path.join(ROOT_PATH, '..', 'horizon', 'static/')
+        os.path.join(ROOT_PATH, '..', 'static/')
     )
 
     # filter out non-angular javascript code and lib

After patching, the compressed js files seems to have the right bits compiled in, but for some reason, the second javascript file isn't being loaded into the website, causing horizon.app not to be loadable.

Comment 1 Matthias Runge 2015-09-16 16:08:22 UTC
thank you for the report.

there is a bug open coming from zigo building debian packages:
https://bugs.launchpad.net/bugs/1494171

Let's keep discussion around this upstream.


Note You need to log in before you can comment on or make changes to this bug.