Ask Your Question
0

Not able to access Openstack Horizon

asked 2016-11-10 17:08:58 -0500

bharath25191 gravatar image

Hello,

I am new to openstack and Ubuntu, I installed Devstack successfully and got my local Ip address for logging into horizon, but I am getting a 500 Internal Server Error, This is the Horizon Error log 2016-11-10 22:34:48.369567 Invalid HTTP_HOST header: '192.168.0.186'. You may need to add u'192.168.0.186' to ALLOWED_HOSTS. 2016-11-10 22:34:48.540797 mod_wsgi (pid=10563): Exception occurred processing WSGI script '/opt/stack/horizon/openstack_dashboard/wsgi/django.wsgi'. 2016-11-10 22:34:48.540850 Traceback (most recent call last): 2016-11-10 22:34:48.540873 File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 189, in __call__ 2016-11-10 22:34:48.540915 response = self.get_response(request) 2016-11-10 22:34:48.540934 File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 207, in get_response 2016-11-10 22:34:48.541069 return debug.technical_500_response(request, *sys.exc_info(), status_code=400) 2016-11-10 22:34:48.541083 File "/usr/local/lib/python2.7/dist-packages/django/views/debug.py", line 97, in technical_500_response 2016-11-10 22:34:48.601681 html = reporter.get_traceback_html() 2016-11-10 22:34:48.601750 File "/usr/local/lib/python2.7/dist-packages/django/views/debug.py", line 384, in get_traceback_html 2016-11-10 22:34:48.601820 return t.render(c) 2016-11-10 22:34:48.601849 File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 210, in render 2016-11-10 22:34:48.602608 return self._render(context) 2016-11-10 22:34:48.602638 File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 202, in _render 2016-11-10 22:34:48.602671 return self.nodelist.render(context) 2016-11-10 22:34:48.602691 File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 905, in render 2016-11-10 22:34:48.602731 bit = self.render_node(node, context) 2016-11-10 22:34:48.602760 File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node 2016-11-10 22:34:48.621138 return node.render(context) 2016-11-10 22:34:48.621257 File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 329, in render 2016-11-10 22:34:48.622726 return nodelist.render(context) 2016-11-10 22:34:48.622786 File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 905, in render 2016-11-10 22:34:48.622880 bit = self.render_node(node, context) 2016-11-10 22:34:48.622920 File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node 2016-11-10 22:34:48.622992 return node.render(context) 2016-11-10 22:34:48.623030 File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 89, in render 2016-11-10 22:34:48.623094 output = self.filter_expression.resolve(context) 2016-11-10 22:34:48.623131 File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 648, in resolve 2016-11-10 22:34:48.623215 obj = self.var.resolve(context) 2016-11-10 22:34:48.623254 File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 789, in resolve 2016-11-10 22 ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-11-17 00:35:38 -0500

silently gravatar image

You may need to add u'192.168.0.186' to ALLOWED_HOSTS

configure ALLOWED_HOSTS in horizon 's file :
/etc/openstack-dashboard/local_settings
or
horizon-x.y.z/openstack_dashboard/local/local_settings.py
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-11-10 17:08:58 -0500

Seen: 175 times

Last updated: Nov 17 '16