Ask Your Question
0

troubleshooting horizon failure to log in

asked 2013-10-01 12:14:18 -0500

Phil gravatar image

updated 2014-01-22 15:12:28 -0500

Evgeny gravatar image

I've just upgraded a test grizzly install to havana, and I am unable to log in through horizon. When I enter my admin credentials on the login form, I get redirected back to the login form. There is no error in the web interface, and no error in apache's error.log. With DEBUG = True in /etc/openstack-dashboard/local_settings.py, this is logged:

==> /var/log/apache2/error.log <==
[Tue Oct 01 16:25:58 2013] [error] DEBUG:openstack_auth.backend:Beginning user authentication for user "admin".
[Tue Oct 01 16:25:58 2013] [error] INFO:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
[Tue Oct 01 16:25:58 2013] [error] DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 1133
[Tue Oct 01 16:25:58 2013] [error] INFO:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
[Tue Oct 01 16:25:58 2013] [error] DEBUG:urllib3.connectionpool:"GET /v2.0/tenants HTTP/1.1" 200 143
[Tue Oct 01 16:25:58 2013] [error] INFO:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
[Tue Oct 01 16:25:58 2013] [error] DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 5255
[Tue Oct 01 16:25:58 2013] [error] INFO:urllib3.connectionpool:Starting new HTTP connection (1): 172.20.21.7
[Tue Oct 01 16:25:58 2013] [error] DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 5255
[Tue Oct 01 16:25:58 2013] [error] DEBUG:openstack_auth.backend:Authentication completed for user "admin".

==> /var/log/apache2/access.log <==
172.20.33.199 - - [01/Oct/2013:16:25:58 +0000] "POST /horizon/auth/login/ HTTP/1.1" 302 20 "http://xen10.macprofessionals.lan/horizon" "Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130917 Firefox/17.0 Iceweasel/17.0.9"
172.20.33.199 - - [01/Oct/2013:16:25:58 +0000] "GET /horizon HTTP/1.1" 200 730 "http://xen10.macprofessionals.lan/horizon" "Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130917 Firefox/17.0 Iceweasel/17.0.9"

I see that my browser is sending sessionid and csrftoken cookies in its requests.

If I intentionally do enter invalid credentials, I do get an appropriate error. Also, I'm able to authenticate to the command-line API clients like nova and glance with the environment:

# env | grep OS_
OS_REGION_NAME=RegionOne
OS_PASSWORD=admin
OS_AUTH_STRATEGY=keystone
OS_AUTH_URL=http://XXX:5000/v2.0/
OS_USERNAME=admin
OS_TENANT_NAME=admin
OS_NO_CACHE=true

I'm not sure how to proceed troubleshooting. Can anyone offer some insight into what might be wrong, and where I might look?

edit retag flag offensive close merge delete

Comments

I was able to reproduce this with a fresh install, so I'm wondering if it's a bug. I [reported it at launchpad](https://bugs.launchpad.net/cloud-archive/+bug/1233817).

Phil gravatar imagePhil ( 2013-10-01 14:28:46 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-10-02 02:58:52 -0500

mrunge gravatar image

Did you visit your instance while on Grizzly? If yes, please remove your browser cookie and try again.

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

2 followers

Stats

Asked: 2013-10-01 12:14:18 -0500

Seen: 2,390 times

Last updated: Jan 22 '14