[Openstack] Diablo 4 dashboard error missing openstackx extensions in nova.

Roman Sokolkov rsokolkov at gmail.com
Tue Sep 13 06:50:20 UTC 2011


Thanks a lot that solve my problem!but I manually update row "nova" in
sqlite CLI.

2011/9/13 Anthony Young <sleepsonthefloor at gmail.com>

> Another thing to check - the os1.1 keystone endpoints have been modified in
> d4 to include a tenant prefix.  If you are upgrading an existing install,
> you may need to update your keystone service catalog accordingly:
>
> keystone-manage $* endpointTemplates add RegionOne nova http://<%= api_vip
> %>:8774/v1.1/%tenant_id% http://<%= api_vip %>:8774/v1.1/%tenant_id%
> http://<%= api_vip %>:8774/v1.1/%tenant_id% 1 1
>
> Anthony
>
>
> On Mon, Sep 12, 2011 at 12:05 PM, Roman Sokolkov <rsokolkov at gmail.com>wrote:
>
>> I ve see this error too.In httpd error logs I have the same traceback.
>> Additional my nova-api.log :
>>
>> 2011-09-12 17:12:03,732 DEBUG routes.middleware [-] No route matched for
>> GET /admin/services from (pid=4312) __call__ /usr/li
>> b/python2.7/site-packages/routes/middleware.py:97
>> 2011-09-12 17:12:03,733 DEBUG routes.middleware [-] No route matched for
>> GET /admin/services from (pid=4312) __call__ /usr/li
>> b/python2.7/site-packages/routes/middleware.py:97
>> 2011-09-12 17:12:03,737 DEBUG routes.middleware [-] No route matched for
>> GET /extras/usage from (pid=4312) __call__ /usr/lib/
>> python2.7/site-packages/routes/middleware.py:97
>> 2011-09-12 17:12:03,738 DEBUG routes.middleware [-] No route matched for
>> GET /extras/usage from (pid=4312) __call__ /usr/lib/
>> python2.7/site-packages/routes/middleware.py:97
>>
>> But I see that extensions were loaded in nova:
>> 2011-09-12 16:51:53,110 AUDIT extensions [-] Initializing extension
>> manager.
>> 2011-09-12 16:51:53,111 AUDIT extensions [-] Loading extension file:
>> admin.pyc
>> 2011-09-12 16:51:53,111 AUDIT extensions [-] Loading extension file:
>> __init__.py
>> 2011-09-12 16:51:53,111 AUDIT extensions [-] Loading extension file:
>> admin.py
>>
>> In my nova.conf I have:
>> --osapi_extensions_path=/opt/openstackx/extensions/
>>
>> 2011/9/12 shake chen <shake.chen at gmail.com>
>>
>>> 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:shake.chen at hotmail.com
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~openstack
>>> Post to     : openstack at lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~openstack
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack at lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20110913/a1bcab5b/attachment.html>


More information about the Openstack mailing list