Ask Your Question
0

Openstack Dasboard login fails

asked 2011-12-01 17:14:20 -0500

arminder gravatar image

I'm getting the error "Unexpected error: identity", while trying to login into the dashboard. I know the username and password is correct. I have picked on Repo from diablo-4 available at http://yum.griddynamics.net/yum/diablo-4/openstack/ (http://yum.griddynamics.net/yum/diabl...) and installed on CentOS 6.

openstack-compute-2.0a1-1.noarch openstack-dashboard-1.0-0.20111116.1230.el6.noarch openstack-glance-2011.3-0.20110825.996.1.el6.noarch openstack-keystone-1.0-0.20110928.1619.el6.noarch openstack-nova-2011.3-0.20110922.1520.5.el6.noarch openstack-client-2.6.4-1.1ed1f5e.noarch


DEBUG 2011-12-01 08:27:13,657 api: auth_api connection created using url "http://localhost:5000/v2.0/" ERROR 2011-12-01 08:27:13,675 forms: Nonspecific error while handling form Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/openstack_dashboard/forms.py", line 168, in maybe_handle return form, form.handle(request, data) File "/usr/lib/python2.6/site-packages/openstack_dashboard/plugins/auth/views.py", line 107, in handle return handle_login(request, data['username'], data['password'], None) File "/usr/lib/python2.6/site-packages/openstack_dashboard/plugins/auth/views.py", line 65, in handle_login info = api_ext.token_info(request, token) File "/usr/lib/python2.6/site-packages/openstack_dashboard/api_ext.py", line 78, in token_info o = urlparse.urlparse(token.serviceCatalog['identity'][0]['adminURL'])

KeyError: 'identity'

Any help on this would be highly appreciated.

edit retag flag offensive close merge delete

8 answers

Sort by ยป oldest newest most voted
0

answered 2011-12-01 21:35:58 -0500

gabriel-hurley gravatar image

That indicates you don't have your services registered properly with Keystone. This is likely the result of using old sample data, or not loading any service data into keystone. You need a service registered with keystone that has the service type "identity" (which is what keystone identifies itself as).

However, the error message there could be improved in horizon.

edit flag offensive delete link more
0

answered 2011-12-02 04:02:53 -0500

arminder gravatar image

Thanks Gabriel for pointing me out in right direction and I totally agree that error message could be improved.

I had already given the following command: $ sudo keystone-manage service add keystone identity "Keystone Identity Service" SUCCESS: Service keystone created successfully.

But now since you pointed it out, I checked & when I try to dump the services table in sqlite db, it shows null for the rest of the fields; infact, can't find the type field there: INSERT INTO "services" VALUES('keystone',NULL);

So I'll rather switch to mysql as backend and see how it goes.

edit flag offensive delete link more
0

answered 2011-12-02 09:36:52 -0500

arminder gravatar image

Moved to MySQL as backend but still same bad luck.

Anyone with any other ideas. I have the service type identity in keystone.

edit flag offensive delete link more
0

answered 2011-12-07 21:18:00 -0500

gabriel-hurley gravatar image

I took a look at the actual code packaged in the .rpm file you linked to... that code is nothing like the Diablo release version of openstack-dashboard/horizon. I'm not sure when that got branched off, but it's simply not the right code.

I suggest starting with a clean copy of the stable/diablo horizon code and working from there.

edit flag offensive delete link more
0

answered 2011-12-07 21:19:53 -0500

gabriel-hurley gravatar image

I took a look at the actual code packaged in the .rpm file you linked to... that code is nothing like the Diablo release version of openstack-dashboard/horizon. I'm not sure when that got branched off, but it's simply not the right code. That code is many months out of sync with the stable/diablo (2011.3) release series.

I suggest starting with a clean copy of the stable/diablo horizon code and working from there.

edit flag offensive delete link more
0

answered 2011-12-07 21:25:44 -0500

gabriel-hurley gravatar image

I took a look at the actual code packaged in the .rpm file you linked to... that code is nothing like the Diablo release version of openstack-dashboard/horizon. I'm not sure when that got branched off, but it's simply not the right code. That code is many months out of sync with the stable/diablo (2011.3) release series.

I suggest starting with a clean copy of the stable/diablo horizon code and working from there.

edit flag offensive delete link more
0

answered 2011-12-07 23:14:59 -0500

gabriel-hurley gravatar image

I took a look at the actual code packaged in the .rpm file you linked to... that code is nothing like the Diablo release version of openstack-dashboard/horizon. I'm not sure when that got branched off, but it's simply not the right code. That code is many months out of sync with the stable/diablo (2011.3) release series.

I suggest starting with a clean copy of the stable/diablo horizon code and working from there.

edit flag offensive delete link more
0

answered 2011-12-07 23:15:43 -0500

gabriel-hurley gravatar image

Awesome fail on Launchpad's part to give me 500 error pages and still post the message 4 times. I win.

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-12-01 17:14:20 -0500

Seen: 148 times

Last updated: Dec 07 '11