Bug 1263761

Summary: horizon js broken
Product: [Community] RDO Reporter: Kevin Fox <Kevin.Fox>
Component: openstack-horizonAssignee: Matthias Runge <mrunge>
Status: CLOSED UPSTREAM QA Contact: wes hayutin <whayutin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: trunkCC: mrunge
Target Milestone: ---   
Target Release: Kilo   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-16 16:08:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.