cloudbuilders/devstack — Issue #50: nova doesn't use openstackx anymore.
Author: Jaesang
Created: 2011-10-10 13:03:56+00:00
State: open

When I clicked 'instances' tab in Dashboard, an error occurred.

DEBUG:django_openstack.api:extras_api connection created using token "b51013ee-46dd-4c85-b010-b164c84aa287" and url "http://192.168.0.100:8774/v1.1/2"
ERROR:django_openstack.dash:Exception in instance index
Traceback (most recent call last):
File "/root/dash/django-openstack/django_openstack/dash/views/instances.py", line 121, in index
instances = api.server_list(request)
File "/root/dash/django-openstack/django_openstack/api.py", line 318, in inner
return f(*args, **kwargs)
File "/root/dash/django-openstack/django_openstack/api.py", line 535, in server_list
return [Server(s, request) for s in extras_api(request).servers.list()]
File "/root/dash/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/extras/servers.py", line 28, in list
return self._list("/extras/servers", "servers")
File "/root/dash/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/base.py", line 27, in _list
resp, body = self.api.connection.get(url)
File "/root/dash/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py", line 77, in get
return self._cs_request(url, 'GET', **kwargs)
File "/root/dash/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py", line 62, in _cs_request
**kwargs)
File "/root/dash/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py", line 47, 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)
DEBUG:django_openstack.api:auth_api connection created using url "http://192.168.0.151:5500/v2.0/"

So, I changed nova.conf
--osapi_extensions_path=/root/openstackx/extensions

In openstackx.extensions.admin.py use create_instance_helper class from nova.api.openstack. But, It's deprecated recently. How can I fix that problem?