Ask Your Question
0

ERROR:django_openstack.dash:Exception in instance index

asked 2011-10-25 17:56:08 -0500

The dashboard is not worked for me. I don't know is there something I ignored? Please help me.

I install compute, network, glance and scheduler with apt-get. Of course, ppa:openstack-release/2011.3. Then, I download keystone and checkout to origin/stable/diablo. After I installed it, it is work in command line. I have tested it in python-novaclient to make sure that keystone worked with nova_api. When I use dashboard (origin/diablo), I find a special case! At beginning, I set internal_url of nova-compute in keystone endpoint_templates as "http://localhost:8774/v1.1/%tenant_id%", then I got this error message as follow:

DEBUG:django.db.backends:(0.000) SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."session_key" = 9fb7e23e793eff496ab7a9db027ad685 AND "django_session"."expire_date" > 2011-10-26 01:34:34.276245 ); args=('9fb7e23e793eff496ab7a9db027ad685', u'2011-10-26 01:34:34.276245') DEBUG:django_openstack.api:extras_api connection created using token "999888777666" and url "http://localhost:8774/v1.1/1" ERROR:django_openstack.dash:Exception in instance index Traceback (most recent call last): File "/opt/horizon/django-openstack/django_openstack/dash/views/instances.py", line 121, in index instances = api.server_list(request) File "/opt/horizon/django-openstack/django_openstack/api.py", line 318, in inner return f(args, *kwargs) File "/opt/horizon/django-openstack/django_openstack/api.py", line 535, in server_list return [Server(s, request) for s in extras_api(request).servers.list()] File "/opt/horizon/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/extras/servers.py", line 28, in list return self._list("/extras/servers", "servers") File "/opt/horizon/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/base.py", line 27, in _list resp, body = self.api.connection.get(url) File "/opt/horizon/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py", line 78, in get return self._cs_request(url, 'GET', *kwargs) File "/opt/horizon/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py", line 63, in _cs_request *kwargs) File "/opt/horizon/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py", line 48, in request raise exceptions.from_response(resp, body) NotFound: This error may be caused by a misconfigured nova url in keystone's service catalog, or by missing openstackx extensions in nova. See the dashboard README. (HTTP 404)

As I set internal_url of nova-compute in keystone endpoint_templates as "http://localhost:8774/v1.1", the instance of dashboard worked well.

Thanks for you help.

edit retag flag offensive close merge delete

6 answers

Sort by ยป oldest newest most voted
0

answered 2011-10-27 13:34:49 -0500

endre-karlson gravatar image

I run diablo to on Nova, but I'm unable to use dashboard from trunk :(

2011/10/27 Jim Yeh question176195@answers.launchpad.net:

Question #176195 on OpenStack Dashboard (Horizon) changed: https://answers.launchpad.net/horizon/+question/176195 (https://answers.launchpad.net/horizon...)

Jim Yeh posted a new comment: Yes. I run on Diablo. I use apt-get for most of package. Keystone, openstackx and dashboard installed from source.


You received this question notification because you are a direct subscriber of the question.

edit flag offensive delete link more
0

answered 2011-10-27 13:26:44 -0500

Yes. I run on Diablo. I use apt-get for most of package. Keystone, openstackx and dashboard installed from source.

edit flag offensive delete link more
0

answered 2011-10-27 12:52:17 -0500

endre-karlson gravatar image

Are you running on Diablo nova Jim?

edit flag offensive delete link more
0

answered 2011-10-27 12:31:20 -0500

By comparing with devstack, I finally find the solution. I solve this problem by add "--osapi_extensions_path=/path/to/openstackx/extensions" into nova.conf. Thanks for your comment.

edit flag offensive delete link more
0

answered 2011-10-26 22:25:00 -0500

heckj gravatar image

This error is directly related to configuring Keystone to let the dashboard know about the endpoints you have defined in your environment. You can find documentation on configuring Keystone at http://keystone.openstack.org/configuring.html (http://keystone.openstack.org/configu...) .

edit flag offensive delete link more
0

answered 2011-10-26 21:37:33 -0500

endre-karlson gravatar image

I can second this, i'm getting the same error with it, the problem seems to be that it looks for something it can't find in nova?

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: 2011-10-25 17:56:08 -0500

Seen: 102 times

Last updated: Oct 27 '11