Make sure that the openstackx/extensions contents are accessible via the
flag FLAGS.osapi_extensions_path.  nova-api uses that flag to dynamically
load external extensions.

Anthony

On Mon, Sep 12, 2011 at 7:52 AM, shake chen <[email protected]> wrote:

> Hi
>
> I run Diablo 3 and dashboard, all the component is working as expect.
> (ubuntu 11.04)
>
> but when I update to Diablo 4, when I login the dashboard and check the
> instance, would report the error.
>
> Unable to get usage info: This error may be caused by missing openstackx
> extensions in nova. See the dashboard README.
>
> I have check and installed openstackx package.
>
> the log would show below:
>
>
> DEBUG:django.db.backends:(0.001) SELECT "django_session"."session_key", 
> "django_session"."session_data", "django_session"."expire_date" FROM 
> "django_session" WHERE ("django_session"."session_key" = 
> bf62b7f5da9ef659de3d01009c9baa71  AND "django_session"."expire_date" > 
> 2011-09-12 22:47:55.518083 ); args=('bf62b7f5da9ef659de3d01009c9baa71', 
> u'2011-09-12 22:47:55.518083')
>
> DEBUG:django_openstack.api:extras_api connection created using token 
> "887665443383838" and url "
> http://localhost:8774/v1.1";
> ERROR:django_openstack.dash:ApiException in instance usage
> Traceback (most recent call last):
>
>   File 
> "/opt/openstack-dashboard/django-openstack/django_openstack/dash/views/instances.py",
>  line 167, in usage
>     usage = api.usage_get(request, tenant_id, datetime_start, datetime_end)
>
>   File "/opt/openstack-dashboard/django-openstack/django_openstack/api.py", 
> line 280, in inner
>     return f(*args, **kwargs)
>
>   File "/opt/openstack-dashboard/django-openstack/django_openstack/api.py", 
> line 553, in usage_get
>     return Usage(extras_api(request).usage.get(tenant_id, start, end))
>
>   File 
> "/opt/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/extras/usage.py",
>  line 15, in get
>
>     return self._get("/extras/usage/%s?start=%s&end=%s" % (tenant_id, 
> start.isoformat(), end.isoformat()), "usage")
>
>   File 
> "/opt/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/base.py",
>  line 36, in _get
>     resp, body = self.api.connection.get(url)
>
>   File 
> "/opt/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py",
>  line 78, in get
>     return self._cs_request(url, 'GET', **kwargs)
>
>   File 
> "/opt/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py",
>  line 63, in _cs_request
>     **kwargs)
>
>   File 
> "/opt/openstack-dashboard/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 missing openstackx extensions in nova. 
> See the dashboard README. (HTTP 404)
>
>
>
>
>
> --
> 陈沙克
> 手机:13661187180
> msn:[email protected]
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : [email protected]
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp

Reply via email to