Ask Your Question
0

Can't re-login to horizon, bad session_id cookie [closed]

asked 2015-06-16 02:57:26 -0600

Madko gravatar image

updated 2015-06-17 03:55:31 -0600

I'm following the instructions from http://docs.openstack.org/kilo/instal...

When going to my controller http url: http://controller0/dashboard I am able to login at first time. Then after the timeout has expired, I can't login anymore. I have to manually delete the cookie session_id to allow the connection again.

[Tue Jun 16 09:47:29.449268 2015] [:error] [pid 29403] Login successful for user "admin".
[Tue Jun 16 09:47:29.450647 2015] [:error] [pid 29403] Internal Server Error: /dashboard/auth/login/
[Tue Jun 16 09:47:29.450694 2015] [:error] [pid 29403] Traceback (most recent call last):
[Tue Jun 16 09:47:29.450703 2015] [:error] [pid 29403]   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
[Tue Jun 16 09:47:29.450710 2015] [:error] [pid 29403]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Tue Jun 16 09:47:29.450717 2015] [:error] [pid 29403]   File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
[Tue Jun 16 09:47:29.450723 2015] [:error] [pid 29403]     return view(request, *args, **kwargs)
[Tue Jun 16 09:47:29.450728 2015] [:error] [pid 29403]   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
[Tue Jun 16 09:47:29.450734 2015] [:error] [pid 29403]     response = view_func(request, *args, **kwargs)
[Tue Jun 16 09:47:29.450748 2015] [:error] [pid 29403]   File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
[Tue Jun 16 09:47:29.450777 2015] [:error] [pid 29403]     response = view_func(request, *args, **kwargs)
[Tue Jun 16 09:47:29.450821 2015] [:error] [pid 29403]   File "/usr/lib/python2.7/site-packages/openstack_auth/views.py", line 111, in login
[Tue Jun 16 09:47:29.450827 2015] [:error] [pid 29403]     **kwargs)
[Tue Jun 16 09:47:29.450830 2015] [:error] [pid 29403]   File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
[Tue Jun 16 09:47:29.450839 2015] [:error] [pid 29403]     return view(request, *args, **kwargs)
[Tue Jun 16 09:47:29.450878 2015] [:error] [pid 29403]   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
[Tue Jun 16 09:47:29.450902 2015] [:error] [pid 29403]     response = view_func(request, *args, **kwargs)
[Tue Jun 16 09:47:29.450925 2015] [:error] [pid 29403]   File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
[Tue Jun 16 09:47:29.450957 2015] [:error] [pid 29403]     response = view_func(request, *args, **kwargs)
[Tue Jun 16 09:47:29.451111 2015] [:error] [pid 29403]   File "/usr/lib/python2.7/site-packages/django/contrib/auth/views.py", line 51, in login
[Tue Jun 16 09:47:29.451205 2015] [:error] [pid 29403]     auth_login(request, form.get_user())
[Tue Jun 16 09:47:29.451235 2015] [:error] [pid 29403]   File "/usr/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 102, in login
[Tue Jun ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Madko
close date 2015-06-17 04:04:21.846436

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-06-17 04:03:38 -0600

Madko gravatar image

Here is how to fix that! Add this line:

AUTH_USER_MODEL = 'openstack_auth.User'

in /etc/openstack-dashboard/local_settings then restart httpd. This fix will be included in python-django-horizon-2015.1.0-6.el7.noarch

cf: https://bugzilla.redhat.com/show_bug.... and https://bugzilla.redhat.com/show_bug....

thanks

edit flag offensive delete link more

Comments

I have installed latest kilo but issue stil persist

[root@openstack ~]# rpm -q python-django-openstack-auth python-django-openstack-auth-1.2.0-4.el7.noarch

I have followed the same steps mentioned above and it worked like a charm !

genious.c123@gmail.com gravatar imagegenious.c123@gmail.com ( 2016-04-21 04:10:28 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-06-16 02:57:26 -0600

Seen: 1,276 times

Last updated: Jun 17 '15