ERROR:django_openstack.dash:Exception in instance index

Asked by Jim Yeh

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.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Dashboard (Horizon) Edit question
Assignee:
No assignee Edit question
Solved by:
Jim Yeh
Solved:
Last query:
Last reply:
Revision history for this message
Endre Karlson (endre-karlson) said :
#1

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?

Revision history for this message
Joseph Heck (heckj) said :
#2

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.

Revision history for this message
Jim Yeh (lemonlatte) said :
#3

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.

Revision history for this message
Endre Karlson (endre-karlson) said :
#4

Are you running on Diablo nova Jim?

Revision history for this message
Jim Yeh (lemonlatte) said :
#5

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

Revision history for this message
Endre Karlson (endre-karlson) said :
#6

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

2011/10/27 Jim Yeh <email address hidden>:
> Question #176195 on OpenStack Dashboard (Horizon) changed:
> https://answers.launchpad.net/horizon/+question/176195
>
> 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.
>