Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to config horizon?

I want to open horizon login page in browser,but I get an error page,what says "something went wrong". Then I check the horizon_error.log,there are error logs:

[Wed Dec 11 16:04:17 2013] [error] WARNING:root:No local_settings file found. [Wed Dec 11 02:04:18 2013] [error] DeprecationWarning: The SECRET_KEY setting must not be empty.DeprecationWarning: Translations in the project directory aren't supported anymore. Use the LOCALE_PATHS setting instead.ERROR:django.request:Internal Server Error: /dashboard/ [Wed Dec 11 02:04:18 2013] [error] Traceback (most recent call last): [Wed Dec 11 02:04:18 2013] [error] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response [Wed Dec 11 02:04:18 2013] [error] response = callback(request, callback_args, *callback_kwargs) [Wed Dec 11 02:04:18 2013] [error] File "/usr/lib/python2.6/site-packages/django/views/decorators/vary.py", line 36, in inner_func [Wed Dec 11 02:04:18 2013] [error] response = func(args, *kwargs) [Wed Dec 11 02:04:18 2013] [error] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/views.py", line 35, in splash [Wed Dec 11 02:04:18 2013] [error] form = Login(request) [Wed Dec 11 02:04:18 2013] [error] File "/usr/lib/python2.6/site-packages/openstack_auth/forms.py", line 28, in __init__ [Wed Dec 11 02:04:18 2013] [error] self.fields['region'].choices = self.get_region_choices() [Wed Dec 11 02:04:18 2013] [error] File "/usr/lib/python2.6/site-packages/openstack_auth/forms.py", line 35, in get_region_choices [Wed Dec 11 02:04:18 2013] [error] default_region = (settings.OPENSTACK_KEYSTONE_URL, "Default Region") [Wed Dec 11 02:04:18 2013] [error] File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line 185, in inner [Wed Dec 11 02:04:18 2013] [error] return func(self._wrapped, *args) [Wed Dec 11 02:04:18 2013] [error] AttributeError: 'Settings' object has no attribute 'OPENSTACK_KEYSTONE_URL'

I have already put local_settings.py in the path /etc/openstack-dashboard,and the param OPENSTACK_KEYSTONE_URL is in it: OPENSTACK_HOST = "127.0.0.1" OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST

So ,how can I resolve the problem?

click to hide/show revision 2
No.2 Revision

How to config horizon?

I want to open horizon login page in browser,but I get an error page,what says "something went wrong". Then I check the horizon_error.log,there are error logs:

[Wed Dec 11 16:04:17 2013] [error] WARNING:root:No local_settings file found.
[Wed Dec 11 02:04:18 2013] [error] DeprecationWarning: The SECRET_KEY setting must not be empty.DeprecationWarning: Translations in the project directory aren't supported anymore. Use the LOCALE_PATHS setting instead.ERROR:django.request:Internal Server Error: /dashboard/
[Wed Dec 11 02:04:18 2013] [error] Traceback (most recent call last):
[Wed Dec 11 02:04:18 2013] [error]   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response
[Wed Dec 11 02:04:18 2013] [error]     response = callback(request, callback_args, *callback_kwargs)
*callback_args, **callback_kwargs)
[Wed Dec 11 02:04:18 2013] [error]   File "/usr/lib/python2.6/site-packages/django/views/decorators/vary.py", line 36, in inner_func
[Wed Dec 11 02:04:18 2013] [error]     response = func(args, *kwargs)
func(*args, **kwargs)
[Wed Dec 11 02:04:18 2013] [error]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/views.py", line 35, in splash
[Wed Dec 11 02:04:18 2013] [error]     form = Login(request)
[Wed Dec 11 02:04:18 2013] [error]   File "/usr/lib/python2.6/site-packages/openstack_auth/forms.py", line 28, in __init__
[Wed Dec 11 02:04:18 2013] [error]     self.fields['region'].choices = self.get_region_choices()
[Wed Dec 11 02:04:18 2013] [error]   File "/usr/lib/python2.6/site-packages/openstack_auth/forms.py", line 35, in get_region_choices
[Wed Dec 11 02:04:18 2013] [error]     default_region = (settings.OPENSTACK_KEYSTONE_URL, "Default Region")
[Wed Dec 11 02:04:18 2013] [error]   File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line 185, in inner
[Wed Dec 11 02:04:18 2013] [error]     return func(self._wrapped, *args)
[Wed Dec 11 02:04:18 2013] [error] AttributeError: 'Settings' object has no attribute 'OPENSTACK_KEYSTONE_URL'

'OPENSTACK_KEYSTONE_URL'

I have already put local_settings.py in the path /etc/openstack-dashboard,and the param OPENSTACK_KEYSTONE_URL is in it: OPENSTACK_HOST = "127.0.0.1" OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST

So ,how can I resolve the problem?

How to config horizon?

I want to open horizon login page in browser,but I get an error page,what says "something went wrong". Then I check the horizon_error.log,there are error logs:

[Wed Dec 11 16:04:17 2013] [error] WARNING:root:No local_settings file found.
[Wed Dec 11 02:04:18 2013] [error] DeprecationWarning: The SECRET_KEY setting must not be empty.DeprecationWarning: Translations in the project directory aren't supported anymore. Use the LOCALE_PATHS setting instead.ERROR:django.request:Internal Server Error: /dashboard/
[Wed Dec 11 02:04:18 2013] [error] Traceback (most recent call last):
[Wed Dec 11 02:04:18 2013] [error]   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response
[Wed Dec 11 02:04:18 2013] [error]     response = callback(request, *callback_args, **callback_kwargs)
[Wed Dec 11 02:04:18 2013] [error]   File "/usr/lib/python2.6/site-packages/django/views/decorators/vary.py", line 36, in inner_func
[Wed Dec 11 02:04:18 2013] [error]     response = func(*args, **kwargs)
[Wed Dec 11 02:04:18 2013] [error]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/views.py", line 35, in splash
[Wed Dec 11 02:04:18 2013] [error]     form = Login(request)
[Wed Dec 11 02:04:18 2013] [error]   File "/usr/lib/python2.6/site-packages/openstack_auth/forms.py", line 28, in __init__
[Wed Dec 11 02:04:18 2013] [error]     self.fields['region'].choices = self.get_region_choices()
[Wed Dec 11 02:04:18 2013] [error]   File "/usr/lib/python2.6/site-packages/openstack_auth/forms.py", line 35, in get_region_choices
[Wed Dec 11 02:04:18 2013] [error]     default_region = (settings.OPENSTACK_KEYSTONE_URL, "Default Region")
[Wed Dec 11 02:04:18 2013] [error]   File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line 185, in inner
[Wed Dec 11 02:04:18 2013] [error]     return func(self._wrapped, *args)
[Wed Dec 11 02:04:18 2013] [error] AttributeError: 'Settings' object has no attribute 'OPENSTACK_KEYSTONE_URL'

I have already put local_settings.py in the path /etc/openstack-dashboard,and the param OPENSTACK_KEYSTONE_URL is in it: OPENSTACK_HOST = "127.0.0.1" OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST

So ,how can I resolve the problem?problem ?