← Back to team overview

openstack team mailing list archive

horizon authentication / memcached problems

 

Hi,

I'm having some trouble with horizon on centos 6.3.  I've followed the
installation instructions at:
http://docs.openstack.org/essex/openstack-compute/install/yum/content/ch
_install-dashboard.html#dashboard-system-requirements.

I had this working, but following a reboot, horizon hasn't come right.
I've tried reinstalling it, but I'm getting nowhere.  I've got memcached
running:

[root@wonky openstack-dashboard]# netstat -an | grep 11211
tcp        0      0 0.0.0.0:11211               0.0.0.0:*
LISTEN      
tcp        0      0 :::11211                    :::*
LISTEN      
udp        0      0 0.0.0.0:11211               0.0.0.0:*

udp        0      0 :::11211                    :::*

[root@wonky openstack-dashboard]# ps -ea | grep memcached
 3318 ?        00:00:00 memcached
[root@wonky openstack-dashboard]# service memcached status
memcached (pid  3318) is running...

But with this config in my /etc/openstack-dashboard/local_settings file:

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

I get a django runtime error when I try to load the dashboard:  Unable
to create a new session key.

I've seen others resolve this problem by installing or starting
memcached, but memcached is running in my environment.

Can anyone shed any light on how I can resolve this problem?

Here is the database stanza from the local_settings file:

# FIXME: We need to change this to mysql, instead of sqlite.
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'dash',
        'USER': 'dash',
        'PASSWORD': 'dash',
        'HOST': 'localhost',
        'default-character-set': 'utf8'
    },
}
CACHE_BACKEND = 'memcached://127.0.0.1:11211/'

Thanks.

Cheers,
b