Openstack Dasboard login fails

Asked by Arminder Singh Girgla

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/ 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.

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Dashboard (Horizon) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Gabriel Hurley (gabriel-hurley) said :
#1

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.

Revision history for this message
Arminder Singh Girgla (arminder) said :
#2

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.

Revision history for this message
Arminder Singh Girgla (arminder) said :
#3

Moved to MySQL as backend but still same bad luck.

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

Revision history for this message
Gabriel Hurley (gabriel-hurley) said :
#4

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.

Revision history for this message
Gabriel Hurley (gabriel-hurley) said :
#5

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.

Revision history for this message
Gabriel Hurley (gabriel-hurley) said :
#6

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.

Revision history for this message
Gabriel Hurley (gabriel-hurley) said :
#7

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.

Revision history for this message
Gabriel Hurley (gabriel-hurley) said :
#8

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

Can you help with this problem?

Provide an answer of your own, or ask Arminder Singh Girgla for more information if necessary.

To post a message you must log in.