[Openstack] Horizon ask password for every click

Christoph Thiel cthiel at suse.com
Wed Mar 7 16:51:26 UTC 2012


On Wed, Mar 07, 2012 at 07:04:30PM +0400, Roman Sokolkov wrote:
> Hi
> 
> I have stupid issue. When I login to dashboard and click on any link,
> dashboard write "*Error: *You are not authorized to access /syspanel/" and
> redirect to login page, if I type login and password, I needed page open.
> And for any click same happens.
> 
> I use packages last for 12.04.
> 
> apache error.log
> 
> [Wed Mar 07 18:52:32 2012] [error] CRITICAL:openstack_dashboard:Unhandled
> Exception in of type "<class 'django.http.Http404'>" in dashboard.
> [Wed Mar 07 18:52:32 2012] [error] Traceback (most recent call last):
> [Wed Mar 07 18:52:32 2012] [error]   File
> "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111,
> in get_response
> [Wed Mar 07 18:52:32 2012] [error]     response = callback(request,
> *callback_args, **callback_kwargs)
> [Wed Mar 07 18:52:32 2012] [error]   File
> "/usr/lib/python2.7/dist-packages/django/contrib/staticfiles/views.py",
> line 37, in serve
> [Wed Mar 07 18:52:32 2012] [error]     raise Http404("'%s' could not be
> found" % path)
> [Wed Mar 07 18:52:32 2012] [error] Http404: 'horizon/js/form_examples.js'
> could not be found
> [Wed Mar 07 18:52:32 2012] [error] WARNING:django.request:Not Found:
> /static/horizon/js/form_examples.js
> 
> My keystone config
> http://paste.openstack.org/show/7121/
> 
> My apache config
> http://paste.openstack.org/show/7122/
> 
> And in keystone I see new tokens for every login

This is most likely due to the fact that you are using 

  CACHE_BACKEND = 'locmem://'

in your local_settings.py? Your problems should go away by using
memcached + the following setting:

  CACHE_BACKEND = 'memcached://127.0.0.1:11211/'


Best
Christoph
-- 
Christoph Thiel, Project Manager, SUSE Cloud Infrastructure

SUSE LINUX Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)




More information about the Openstack mailing list