Enable Monasca in Horizon

asked 2018-07-12 04:27:37 -0600

ICBeter gravatar image

updated 2018-07-12 04:29:05 -0600

I have an Openstack installation with running Horizon dashboard. On a different machine I installed Monasca. Now I wanted to integrate it in my Horizon.

When I copy _50_admin_add_monitoring_panel.py to /usr/share/openstack-dashboard/openstack_dashboard/enabled/ the dashboard gets completely messed up and the Firefox console gives the following error:

Error: [$injector:modulerr] Failed to instantiate module horizon.app due to:
[$injector:nomod] Module 'horizon.app' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.5.8/$injector/nomod?p0=horizon.app
minErr/<@http://controller/horizon/static/dashboard/js/732ce617825a.js:699:8
module/<@http://controller/horizon/static/dashboard/js/732ce617825a.js:818:59
ensure@http://controller/horizon/static/dashboard/js/732ce617825a.js:816:320
module@http://controller/horizon/static/dashboard/js/732ce617825a.js:818:8
loadModules/<@http://controller/horizon/static/dashboard/js/732ce617825a.js:925:35
forEach@http://controller/horizon/static/dashboard/js/732ce617825a.js:703:391
loadModules@http://controller/horizon/static/dashboard/js/732ce617825a.js:924:156
createInjector@http://controller/horizon/static/dashboard/js/732ce617825a.js:913:464
doBootstrap@http://controller/horizon/static/dashboard/js/732ce617825a.js:792:36
bootstrap@http://controller/horizon/static/dashboard/js/732ce617825a.js:793:58
angularInit@http://controller/horizon/static/dashboard/js/732ce617825a.js:789:556
@http://controller/horizon/static/dashboard/js/732ce617825a.js:1846:1383
fire@http://controller/horizon/static/dashboard/js/732ce617825a.js:208:281
fireWith@http://controller/horizon/static/dashboard/js/732ce617825a.js:213:198
ready@http://controller/horizon/static/dashboard/js/732ce617825a.js:32:1
completed@http://controller/horizon/static/dashboard/js/732ce617825a.js:14:1184

What's going wrong here? It is Openstack Queens running on Ubuntu 16.04.

edit retag flag offensive close merge delete