Ask Your Question
0

ERROR:django_openstack.dash:ApiException in instance usage

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

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 http://0.0.0.0:8765/ 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/instances.py", line 176, in usage usage = api.usage_get(request, tenant_id, datetime_start, datetime_end) File "/home/localadmin/horizon/django-openstack/django_openstack/api.py", line 324, in inner return f( args, *kwargs) File "/home/localadmin/horizon/django-openstack/django_openstack/api.py", 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/usage.py", 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/base.py", line 36, in _get resp, body = self.api.connection.get(url) File "/home/localadmin/horizon/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py", line 78, in get return self._cs_request(url, 'GET', **kwargs) File "/home/localadmin/horizon/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py", 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
0

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

tres gravatar image

What version of each are you running? The current stable Horizon (dashboard) and Keystone are in the Diablo branches: https://github.com/4P/horizon/tree/diablo (https://github.com/4P/horizon/tree/di...) https://github.com/openstack/keystone/tree/stable/diablo (https://github.com/openstack/keystone...)

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

Hope this helps!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 204 times

Last updated: Oct 24 '11