Ask Your Question
0

Server error-openstack dashboard

asked 2015-02-06 06:49:38 -0500

updated 2015-02-07 08:31:58 -0500

Once i login dashboard using the username and password i get server error as:

Something went wrong!
An unexpected error has occurred. Try refreshing the page. If that doesn't help, contact your local administrator.

Since IP=192.168.56.29 and controller=varsha, /etc/openstack-dashboard/local_settings.py has: ALLOWED_HOSTS = ['localhost', '192.168.56.29'] OPENSTACK_HOST = "varsha"

error.log file in /var/log/apache2 has:

[Sat Feb 07 14:14:40.741786 2015] [:error] [pid 3044:tid 139994316187392] Internal Server Error: /horizon/admin/
[Sat Feb 07 14:14:40.741841 2015] [:error] [pid 3044:tid 139994316187392] Traceback (most recent call last):
[Sat Feb 07 14:14:40.741852 2015] [:error] [pid 3044:tid 139994316187392]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response
[Sat Feb 07 14:14:40.741861 2015] [:error] [pid 3044:tid 139994316187392]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Sat Feb 07 14:14:40.741868 2015] [:error] [pid 3044:tid 139994316187392]   File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
[Sat Feb 07 14:14:40.741876 2015] [:error] [pid 3044:tid 139994316187392]     return view_func(request, *args, **kwargs)
[Sat Feb 07 14:14:40.741883 2015] [:error] [pid 3044:tid 139994316187392]   File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 86, in dec
[Sat Feb 07 14:14:40.741891 2015] [:error] [pid 3044:tid 139994316187392]     return view_func(request, *args, **kwargs)
[Sat Feb 07 14:14:40.741898 2015] [:error] [pid 3044:tid 139994316187392]   File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 54, in dec
[Sat Feb 07 14:14:40.741905 2015] [:error] [pid 3044:tid 139994316187392]     return view_func(request, *args, **kwargs)
[Sat Feb 07 14:14:40.741912 2015] [:error] [pid 3044:tid 139994316187392]   File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
[Sat Feb 07 14:14:40.741919 2015] [:error] [pid 3044:tid 139994316187392]     return view_func(request, *args, **kwargs)
[Sat Feb 07 14:14:40.741926 2015] [:error] [pid 3044:tid 139994316187392]   File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 86, in dec
[Sat Feb 07 14:14:40.741933 2015] [:error] [pid 3044:tid 139994316187392]     return view_func(request, *args, **kwargs)
[Sat Feb 07 14:14:40.741940 2015] [:error] [pid 3044:tid 139994316187392]   File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view
[Sat Feb 07 14:14:40.741948 2015] [:error] [pid 3044:tid 139994316187392]     return self.dispatch(request, *args, **kwargs)
[Sat Feb 07 14:14:40.741955 2015] [:error] [pid 3044:tid 139994316187392]   File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch
[Sat Feb 07 14:14:40.741962 2015] [:error] [pid 3044:tid 139994316187392]     return handler(request, *args, **kwargs)
[Sat Feb 07 14:14:40.741969 2015] [:error] [pid 3044:tid 139994316187392]   File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 154, in get
[Sat Feb 07 14:14:40.741976 2015] [:error] [pid 3044:tid 139994316187392 ...
(more)
edit retag flag offensive close merge delete

Comments

You should check the logs in search of more explicit messages. Edit your question adding more details as you go on studying what's wrong

smaffulli gravatar imagesmaffulli ( 2015-02-06 11:29:25 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-02-07 08:47:57 -0500

larsks gravatar image

There are some error messages in that log that look interesting:

[Sat Feb 07 14:14:51.784751 2015] [:error] [pid 3042:tid 139994391795456] ServiceCatalogException: Invalid service catalog service: compute

I think we need to verify the contents of your Keystone service catalog, and to do that we're going to need to use the command-line keystone client. Can you update your question with the output of keystone service-list and keystone endpoint-list? You will need to run these commands as the OpenStack "admin" user.

In the output of the service-list command, we expect to see an entry for the compute service similar to:

| 15e837c000124068adcf20cdf1d51007 |    nova    |    compute    |    Openstack Compute Service    |

And in the output of the endpoint-list command, we expect to see an entry with a matching service id:

| a2e5f32d44cc4721ac3730b3c6ee53a0 | RegionOne | http://127.0.0.1:8774/v2/%(tenant_id)s | http://127.0.0.1:8774/v2/%(tenant_id)s | http://127.0.0.1:8774/v2/%(tenant_id)s | 15e837c000124068adcf20cdf1d51007 |

If you don't see these entries, you may need to revisit step 9 of the Nova installation instructions.

edit flag offensive delete link more

Comments

Well, I understood where i am wrong! My keystone service-list has only keystone and swift but no compute service. Hence endpoint-list has no entry with matching id. Thank you larsks.

Varsha gravatar imageVarsha ( 2015-02-08 03:54:40 -0500 )edit

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: 2015-02-06 06:49:38 -0500

Seen: 329 times

Last updated: Feb 07 '15