How to config horizon? [closed]

asked 2013-12-11 02:15:44 -0500

nethawk gravatar image

updated 2013-12-12 00:43:30 -0500

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 ?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by nethawk
close date 2013-12-12 20:49:45.771100

Comments

The logs start with "WARNING:root:No local_settings file found." which indicate your local_settings file couldn't be found. How did you install OpenStack? On what platform?

jpichon gravatar imagejpichon ( 2013-12-11 04:39:28 -0500 )edit

AFAIK, on redhat, the file name is local_settings while on ubuntu its local_settings.py Also check if all nova services are running properly.

sngirame gravatar imagesngirame ( 2013-12-11 07:46:18 -0500 )edit

I installed horizon on CENTOS.And I copy local_settings.py to local_settings in /etc/openstack-dashboard. But the error is the same.

nethawk gravatar imagenethawk ( 2013-12-11 21:12:30 -0500 )edit

I have resolved my problem.It becouse of the auth of horizon config file local_settings. After I changing its owner,the problem is resolved.

nethawk gravatar imagenethawk ( 2013-12-12 20:48:24 -0500 )edit

What user is the owner now?

AmirV gravatar imageAmirV ( 2016-12-24 18:40:35 -0500 )edit