Ask Your Question

ERROR:django_openstack.dash:ApiException in instance usage

asked 2011-10-24 09:54:18 -0500

garyk gravatar image

Hi, I have installed the dashboard (horizon). In addition to this I have installed keystone. Sadly I am missing something and the two are not working well together.

Please help. The screen dump is below:

Validating models...

0 errors found Django version 1.3, using settings 'dashboard.settings' Development server is running at Quit the server with CONTROL-C. 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" = b66c8f4f3e3416952d1c2222e8dee660 AND "django_session"."expire_date" > 2011-10-24 11:52:09.822454 ); args=('b66c8f4f3e3416952d1c2222e8dee660', u'2011-10-24 11:52:09.822454') DEBUG:django_openstack.api:extras_api connection created using token "b6bf8995-678c-4d30-83eb-f4b26f0ec363" and url "http://localhost:8774/v1.1/1" ERROR:django_openstack.dash:ApiException in instance usage Traceback (most recent call last): File "/home/localadmin/horizon/django-openstack/django_openstack/dash/views/", line 176, in usage usage = api.usage_get(request, tenant_id, datetime_start, datetime_end) File "/home/localadmin/horizon/django-openstack/django_openstack/", line 324, in inner return f( args, *kwargs) File "/home/localadmin/horizon/django-openstack/django_openstack/", line 710, in usage_get return Usage(extras_api(request).usage.get(tenant_id, start, end)) File "/home/localadmin/horizon/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/extras/", line 15, in get return self._get("/extras/usage/%s?start=%s&end=%s" % (tenant_id, start.isoformat(), end.isoformat()), "usage") File "/home/localadmin/horizon/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/", line 36, in _get resp, body = self.api.connection.get(url) File "/home/localadmin/horizon/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/", line 78, in get return self._cs_request(url, 'GET', **kwargs) File "/home/localadmin/horizon/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/", line 66, in _cs_request raise ex Unauthorized: This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required. (HTTP 401) DEBUG:django_openstack.api:auth_api connection created using url "http://localhost:5000/v2.0/" [24/Oct/2011 11:52:10] "GET /dash/ HTTP/1.1" 200 3444 [24/Oct/2011 11:52:10] "GET /static/dashboard/js/jquery.min.js HTTP/1.1" 200 85259 [24/Oct/2011 11:52:10] "GET /static/dashboard/js/jquery-ui.min.js HTTP/1.1" 200 199939 [24/Oct/2011 11:52:10] "GET /static/dashboard/js/jquery.quicksearch.js HTTP/1.1" 200 3369 [24/Oct/2011 11:52:10] "GET /static/dashboard/js/jquery.example.min.js HTTP/1.1" 200 2030 [24/Oct/2011 11:52:10] "GET /static/dashboard/js/jquery.chosen.js HTTP/1.1" 200 29832 [24/Oct/2011 11:52:10] "GET /static/dashboard/js/form_examples.js HTTP/1.1" 200 1518 [24/Oct/2011 11:52:10] "GET /static/dashboard/js/application.js HTTP/1.1" 200 1562 [24/Oct/2011 11:52:10] "GET /static/dashboard/css/style.css HTTP/1.1" 200 19746 [24/Oct/2011 11:52:10] "GET /static/dashboard/css/chosen ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2011-10-24 18:56:09 -0500

tres gravatar image

What version of each are you running? The current stable Horizon (dashboard) and Keystone are in the Diablo branches: ( (

Those should work well together. If you want to run the latest and greatest try using the excellent devstack from the cloudbuilders folks: ( which should get you set up with a good all-in-one dev setup.

Hope this helps!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-10-24 09:54:18 -0500

Seen: 278 times

Last updated: Oct 24 '11