Public bug reported:

On install, if one tries to access openstack-dashboard, apache gives 500
and the problem is:

[Mon Feb 06 07:12:24 2012] [error] [client 10.99.229.14] mod_wsgi (pid=25215): 
Exception occurred processing WSGI script '/us
r/share/openstack-dashboard/dashboard/wsgi/django.wsgi'.
[Mon Feb 06 07:12:24 2012] [error] [client 10.99.229.14] Traceback (most recent 
call last):
[Mon Feb 06 07:12:24 2012] [error] [client 10.99.229.14]   File 
"/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.p
y", line 250, in __call__
[Mon Feb 06 07:12:24 2012] [error] [client 10.99.229.14]     
self.load_middleware()
[Mon Feb 06 07:12:24 2012] [error] [client 10.99.229.14]   File 
"/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 45, in 
load_middleware
[Mon Feb 06 07:12:24 2012] [error] [client 10.99.229.14]     mod = 
import_module(mw_module)
[Mon Feb 06 07:12:24 2012] [error] [client 10.99.229.14]   File 
"/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in 
import_module
[Mon Feb 06 07:12:24 2012] [error] [client 10.99.229.14]     __import__(name)
[Mon Feb 06 07:12:24 2012] [error] [client 10.99.229.14]   File 
"/usr/lib/python2.7/dist-packages/horizon/middleware.py", line 30, in <module>
[Mon Feb 06 07:12:24 2012] [error] [client 10.99.229.14]     from horizon 
import api
[Mon Feb 06 07:12:24 2012] [error] [client 10.99.229.14]   File 
"/usr/lib/python2.7/dist-packages/horizon/api/__init__.py", line 39, in <module>
[Mon Feb 06 07:12:24 2012] [error] [client 10.99.229.14]     if 
settings.QUANTUM_ENABLED:
[Mon Feb 06 07:12:24 2012] [error] [client 10.99.229.14]   File 
"/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 277, in 
__getattr__
[Mon Feb 06 07:12:24 2012] [error] [client 10.99.229.14]     return 
getattr(self._wrapped, name)
[Mon Feb 06 07:12:24 2012] [error] [client 10.99.229.14] AttributeError: 
'Settings' object has no attribute 'QUANTUM_ENABLED'
[Mon Feb 06 07:12:42 2012] [notice] caught SIGTERM, shutting down

This could be solved by creating a link from /usr/share/openstack-
dashboard/local/local_settings.py to /etc/openstack-
dashboard/local_settings.py:

ln -s /etc/openstack-dashboard/local_settings.py /usr/share/openstack-
dashboard/local/local_settings.py

IMHO, this should be manged by the package, not by the user.

** Affects: openstack-dashboard (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/927594

Title:
  local_settings.py is in /etc, but wsgi is including it from other
  location

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/927594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to