openstack RuntimeError: Unable to create a new session key. It is likely that the cache


[Mon Apr 15 01:02:31.654247 2019] [:error] [pid 19433:tid 139790082479872] Login successful for user "admin".
[Mon Apr 15 01:02:33.645839 2019] [:error] [pid 19433:tid 139790082479872] Internal Server Error: /horizon/auth/login/
[Mon Apr 15 01:02:33.645878 2019] [:error] [pid 19433:tid 139790082479872] Traceback (most recent call last):
[Mon Apr 15 01:02:33.645887 2019] [:error] [pid 19433:tid 139790082479872]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line $
[Mon Apr 15 01:02:33.645894 2019] [:error] [pid 19433:tid 139790082479872]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Mon Apr 15 01:02:33.645901 2019] [:error] [pid 19433:tid 139790082479872]   File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", l$
[Mon Apr 15 01:02:33.645909 2019] [:error] [pid 19433:tid 139790082479872]     return view(request, *args, **kwargs)
[Mon Apr 15 01:02:33.645916 2019] [:error] [pid 19433:tid 139790082479872]   File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 11$
[Mon Apr 15 01:02:33.645923 2019] [:error] [pid 19433:tid 139790082479872]     response = view_func(request, *args, **kwargs)
[Mon Apr 15 01:02:33.645930 2019] [:error] [pid 19433:tid 139790082479872]   File "/usr/lib/python2.7/dist-packages/django/views/decorators/cache.py", l$
[Mon Apr 15 01:02:33.645937 2019] [:error] [pid 19433:tid 139790082479872]     response = view_func(request, *args, **kwargs)
[Mon Apr 15 01:02:33.645943 2019] [:error] [pid 19433:tid 139790082479872]   File "/usr/lib/python2.7/dist-packages/openstack_auth/views.py", line 111, $
[Mon Apr 15 01:02:33.645950 2019] [:error] [pid 19433:tid 139790082479872]     **kwargs)
[Mon Apr 15 01:02:33.645956 2019] [:error] [pid 19433:tid 139790082479872]   File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", l$
[Mon Apr 15 01:02:33.645964 2019] [:error] [pid 19433:tid 139790082479872]     return view(request, *args, **kwargs)
[Mon Apr 15 01:02:33.645970 2019] [:error] [pid 19433:tid 139790082479872]   File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 11$
[Mon Apr 15 01:02:33.645977 2019] [:error] [pid 19433:tid 139790082479872]     response = view_func(request, *args, **kwargs)
[Mon Apr 15 01:02:33.645984 2019] [:error] [pid 19433:tid 139790082479872]   File "/usr/lib/python2.7/dist-packages/django/views/decorators/cache.py", l$
[Mon Apr 15 01:02:33.645990 2019] [:error] [pid 19433:tid 139790082479872]     response = view_func(request, *args, **kwargs)
[Mon Apr 15 01:02:33.645997 2019] [:error] [pid 19433:tid 139790082479872]   File "/usr/lib/python2.7/dist-packages/django/contrib/auth/views.py", line $
[Mon Apr 15 01:02:33.646004 2019] [:error] [pid 19433:tid 139790082479872]     auth_login(request, form.get_user())
[Mon Apr 15 01:02:33.646010 2019] [:error] [pid 19433:tid 139790082479872]   File "/usr/lib/python2.7/dist-packages/django/contrib/auth/__init__.py", li$


[Mon Apr 15 01:02:33.646024 2019] [:error] [pid 19433:tid 139790082479872]   File "/usr/lib/python2.7/dist-packages/django/contrib/sessions/backends/bas$
[Mon Apr 15 01:02:33.646031 2019] [:error] [pid 19433:tid 139790082479872]     self.create()
[Mon Apr 15 01:02:33.646037 2019] [:error] [pid 19433:tid 139790082479872]   File "/usr/lib/python2.7/dist-packages/django/contrib/sessions/backends/cac$
[Mon Apr 15 01:02:33.646044 2019] [:error] [pid 19433:tid 139790082479872]     "Unable to create a new session key. "
[Mon Apr 15 01:02:33.646050 2019] [:error] [pid 19433:tid 139790082479872] RuntimeError: Unable to create a new session key. It is likely that the cache


再安装过程中,我的系统是ubuntu 14.04 ,报出会话过期的问题,因此,在配置dashboard中文件修改为:


之前的是以controller为访问,在hosts文件中也配置了域名解析,但是无法完成访问,因此设置控制节点的IP地址


SESSION_ENGINE = 'django.contrib.sessions.backends.cache'


CACHES = {
    'default': {
         'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
         'LOCATION': '192.168.1.3:11211',
    }
}