Ask Your Question
0

Horizon auth is failing

asked 2012-10-10 02:23:32 -0500

paulcz gravatar image

I've installed Folsom single node on Ubuntu 12.04 based on the instructions here - http://docs.openstack.org/trunk/openstack-compute/install/apt/content/ap_installingfolsomubuntuprecise.html (http://docs.openstack.org/trunk/opens...)

everything went to plan until it came to the Dashboard. I installed it and can access it via http://server/horizon . However I cannot auth. The user pass from what I understand should be admin/openstack ( i left the default choices for my first run through the install process) If I use that it sits there spinning for quite a while, whereas if I use a bad user/pass it fails right away.

I tried with /etc/openstack-dashboard/local_settings.py completely default, and also with the mysql backend DATABASES = section ( as described in another section of howto I found ). Both give the same results.

this is my apache error.log when I purposefully use a bad password :

[Wed Oct 10 01:57:24 2012] [error] DEBUG:openstack_auth.backend:Beginning user authentication for user "aa". [Wed Oct 10 01:57:25 2012] [error] Request returned failure status. [Wed Oct 10 01:57:25 2012] [error] None [Wed Oct 10 01:57:25 2012] [error] Request returned failure status. [Wed Oct 10 01:57:25 2012] [error] Traceback (most recent call last): [Wed Oct 10 01:57:25 2012] [error] File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line 155, in _cs_request [Wed Oct 10 01:57:25 2012] [error] **kwargs) [Wed Oct 10 01:57:25 2012] [error] File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line 135, in request [Wed Oct 10 01:57:25 2012] [error] raise exceptions.from_response(resp, body) [Wed Oct 10 01:57:25 2012] [error] Unauthorized: The request you have made requires authentication. (HTTP 401)

and when I use the right password : [Wed Oct 10 01:57:44 2012] [error] DEBUG:openstack_auth.backend:Beginning user authentication for user "admin". [Wed Oct 10 01:57:44 2012] [error] unable to retrieve service catalog with token [Wed Oct 10 01:57:44 2012] [error] Traceback (most recent call last): [Wed Oct 10 01:57:44 2012] [error] File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py", line 132, in _extract_service_catalog [Wed Oct 10 01:57:44 2012] [error] endpoint_type='adminURL') [Wed Oct 10 01:57:44 2012] [error] File "/usr/lib/python2.7/dist-packages/keystoneclient/service_catalog.py", line 62, in url_for [Wed Oct 10 01:57:44 2012] [error] raise exceptions.EndpointNotFound('Endpoint not found.') [Wed Oct 10 01:57:44 2012] [error] EndpointNotFound: Endpoint not found. [Wed Oct 10 01:57:44 2012] [error] DEBUG:openstack_auth.backend:Authentication completed for user "admin". [Wed Oct 10 01:58:47 2012] [error] \x1b[31;1mUnauthorized: n/a (HTTP 401)\x1b[0m [Wed Oct 10 01:58:47 2012] [error] Traceback (most recent call last): [Wed Oct 10 01:58:47 2012] [error] File "/usr/lib/python2.7/dist-packages/horizon/usage/base.py", line 93, in summarize [Wed Oct 10 01:58:47 2012 ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2012-10-11 13:50:09 -0500

paulcz gravatar image

I rebuilt the server again and used this guide

https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/blob/master/OpenStack_Folsom_Install_Guide_WebVersion.rst (https://github.com/mseknibilel/OpenSt...)

Horizon worked ... so Either I screwed up the keystone user mappings or there's some other minor step in the second guide that wasn't in the first.

There was a problem with Cinder, but I've gone ahead and submitted a bug for that as I was able to work around it.

edit flag offensive delete link more
0

answered 2012-10-12 03:03:15 -0500

I am suffering from the same issue here guys. Any thoughts? I notice in the guide Paul posted they use some shell scripts to populate keystone, I used keystone-init to populate my keystone.

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-10 02:23:32 -0500

Seen: 37 times

Last updated: Oct 12 '12