Ask Your Question

Revision history [back]

ERROR:django_openstack.dash:Exception in instance index

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.