horizon as setup by devstack does not work with django 1.5

Bug #1133609 reported by Sean Dague
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Critical
Gabriel Hurley

Bug Description

django 1.5 shipped today... yay!

it breaks horizon as setup by devstack horribly... boo!

representative log messages look as follows:

stack@devstack-1361907125:~/devstack$ [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] mod_wsgi (pid=4960): Exception occurred processing WSGI script '/opt/stack/new/horizon/openstack_dashboard/wsgi/django.wsgi'.
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] Traceback (most recent call last):
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 236, in __call__
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] self.load_middleware()
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 45, in load_middleware
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] for middleware_path in settings.MIDDLEWARE_CLASSES:
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 52, in __getattr__
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] self._setup(name)
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 47, in _setup
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] self._wrapped = Settings(settings_module)
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 130, in __init__
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] mod = importlib.import_module(self.SETTINGS_MODULE)
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] __import__(name)
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 177, in <module>
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] from local.local_settings import *
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 46, in <module>
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] from horizon.utils import secret_key
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../horizon/__init__.py", line 29, in <module>
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] from horizon.base import Horizon, Dashboard, Panel, PanelGroup
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../horizon/base.py", line 42, in <module>
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] from horizon import conf
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../horizon/conf/__init__.py", line 5, in <module>
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] from .default import HORIZON_CONFIG as DEFAULT_CONFIG
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../horizon/conf/default.py", line 13, in <module>
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] 'user_home': settings.LOGIN_REDIRECT_URL,
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 52, in __getattr__
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] self._setup(name)
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 47, in _setup
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] self._wrapped = Settings(settings_module)
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 150, in __init__
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
[Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] ImproperlyConfigured: The SECRET_KEY setting must not be empty.

Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :
Kieran Spear (kspear)
Changed in horizon:
status: New → Confirmed
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

This was fixed by pinning the django version to 1.4. We'll make 1.5 compatibility a priority in Havana.

Changed in horizon:
assignee: nobody → Gabriel Hurley (gabriel-hurley)
importance: Undecided → Critical
milestone: none → grizzly-rc1
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: grizzly-rc1 → 2013.1
Revision history for this message
Thomas Goirand (thomas-goirand) wrote :

Hi,

I am hit by this issue when trying to build python-django-openstack-auth in Debian sid. Is there a fix somewhere?

Thomas

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.