Ask Your Question
0

horizon doesn't work with keystoneclient?

asked 2012-10-26 06:59:44 -0500

junlun-fan gravatar image

i install horizon and keystone on the same server.Keystone works fine if i use the python-keystoneclient just as follows:

keystone --os-username admin --os-password=keystone --os-tenant-name admin --os-auth-url=http://172.20.9.1:35357/v2.0 user-list

+----------------------------------+---------+---------+------------------+ | id | name | enabled | email | +----------------------------------+---------+---------+------------------+ | 2c2e86783c82412b9caec35ff8098c09 | admin | True | admin@gsta.com | | 33024148420146e69b3b6a6ccd800827 | nova | True | nova@gsta.com | | 79b66cb8fd9e44cc9e1ea5c5ab9a9baf | quantum | True | quantum@gsta.com | | 919c474d8faa4f25ab5e433be92f4625 | demo | True | demo@gsta.com | | aabde8d2778544bd93784ae713501189 | glance | True | glance@gsta.com | +----------------------------------+---------+---------+------------------+

#keystone --os-username demo --os-password=keystone --os-auth-url=http://172.20.9.1:5000/v2.0 token-get +----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Property | Value | +----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | expires | 2012-10-27T06:57:40Z | | id | MIICNgYJKoZIhvcNAQcCoIICJzCCAiMCAQExCTAHBgUrDgMCGjCCAQ8GCSqGSIb3DQEHAaCCAQAEgf17ImFjY2VzcyI6IHsidG9rZW4iOiB7Imlzc3VlZF9hdCI6ICIwNjo1Nzo0MC44NTkwNTEiLCAiZXhwaXJlcyI6ICIyMDEyLTEwLTI3VDA2OjU3OjQwWiIsICJpZCI6ICJwbGFjZWhvbGRlciJ9LCAic2VydmljZUNhdGFsb2ciOiB7fSwgInVzZXIiOiB7InVzZXJuYW1lIjogImRlbW8iLCAicm9sZXNfbGlua3MiOiBbXSwgImlkIjogIjkxOWM0NzRkOGZhYTRmMjVhYjVlNDMzYmU5MmY0NjI1IiwgInJvbGVzIjogW10sICJuYW1lIjogImRlbW8ifX19MYH-MIH8AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgTBVVuc2V0MQ4wDAYDVQQHEwVVbnNldDEOMAwGA1UEChMFVW5zZXQxGDAWBgNVBAMTD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASBgHE4j8tMsCJqZ38ztCmGUlZQ5XBDoIR-9zrgq7ThkkoHehCykeuLOMdtcIYYmip2NQgWPhW4h6GIrZKMjzXRc8T3u2Y84GSfPOaxmOE0kxBYqPwkC-CLXInpkTPZEYZpqZag32MxpCjaopjl9mTAonlVVRgzige9vRFu8vh3GERl | | user_id | 919c474d8faa4f25ab5e433be92f4625 | +----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

yet after i install horizon and the web shows "An error occurred authenticating. Please try again later" when i set the local_setting.py "OPENSTACK_KEYSTONE_URL=http://172.20.9.1:5000/v2.0/",very weird.

the horizon branch is stable\folsom and python-keystoneclient is of master version. I believe that the trouble must be the communication between horizon and python-keystoneclient,but i don't know how to solve it ,any one has the same situations?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-10-26 21:39:18 -0500

gabriel-hurley gravatar image

Given the ID of that token, I'm guessing you have PKI tokens enabled in Keystone. I just discovered a couple days ago that due to the length of the token the PKI tokens break Horizon's session storage. The bug is reported here: https://bugs.launchpad.net/horizon/+bug/1071865 (https://bugs.launchpad.net/horizon/+b...)

A fix is in the works but may take a little while because it will involve adding a new API route to Keystone.

For now, you can disable the PKI mechanisms in Keystone to continue using Horizon.

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: 2012-10-26 06:59:44 -0500

Seen: 61 times

Last updated: Oct 26 '12