integration-of-solum-dashboard-in-horizon-fails

Bug #1546596 reported by Devdatta Kulkarni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Solum
New
High
Devdatta Kulkarni

Bug Description

We have solum-dashboard repo [1] which outlines the steps required to get the solum horizon plugin integrated into Horizon.

[1] https://github.com/openstack/solum-dashboard

When I tried the steps specified in the repo's README I am getting following error on the horizon screen:

2016-02-17 15:16:50.548159 mod_wsgi (pid=18043): Exception occurred processing WSGI script '/opt/stack/horizon/openstack_dashboard/wsgi/django.wsgi'.
2016-02-17 15:16:50.548227 Traceback (most recent call last):
2016-02-17 15:16:50.548249 File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 187, in __call__
2016-02-17 15:16:50.548344 self.load_middleware()
2016-02-17 15:16:50.548370 File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 45, in load_middleware
2016-02-17 15:16:50.548463 mw_class = import_by_path(middleware_path)
2016-02-17 15:16:50.548477 File "/usr/local/lib/python2.7/dist-packages/django/utils/module_loading.py", line 31, in import_by_path
2016-02-17 15:16:50.548521 error_prefix, module_path, class_name))
2016-02-17 15:16:50.548540 ImproperlyConfigured: Module "django.contrib.auth.middleware" does not define a "SessionAuthenticationMiddleware" attribute/class

Changed in solum:
milestone: none → next-mitaka
Han Manjong (aksmj8855)
Changed in solum:
assignee: nobody → Han Manjong (aksmj8855)
Revision history for this message
Han Manjong (aksmj8855) wrote :

What is your version of OpenStack?
And what's your version of installed Django?

In recent, Horizon stopped the support for pre-Django 1.8.
(https://github.com/openstack/horizon/commit/83c9e3fead4236e8e958342f29954b27bbb9f0c3)

In this commit, the statement related with the middleware package "django.contrib.auth.middleware.SessionAuthenticationMiddleware" was changed.
(https://github.com/openstack/horizon/commit/83c9e3fead4236e8e958342f29954b27bbb9f0c3#diff-248bcf607a01db20371e0433315e2987L81)

Revision history for this message
Devdatta Kulkarni (devdatta-kulkarni) wrote :

Han,

After updating the requirements I was able to get the Solum Horizon plugin loaded into Horizon.

Dev

Changed in solum:
assignee: Han Manjong (aksmj8855) → Devdatta Kulkarni (devdatta-kulkarni)
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/solum-dashboard 1.0.1

This issue was fixed in the openstack/solum-dashboard 1.0.1 release.

Revision history for this message
Swati Dewan (swatidewan9) wrote :

The dashboard needs to follow a slightly different directory structure as given by this tutorial for plugins in Horizon: http://docs.openstack.org/developer/horizon/tutorials/dashboard.html

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

This issue was fixed in the openstack/solum-dashboard 1.0.1 release.

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

Other bug subscribers

Remote bug watches

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