问题原因:
搭建默认session在memory cache,需要替换成file。
解决办法:
文件所在目录:/opt/stack/horizon/openstack_dashboard/settings.py
源配置:
文件位置:/usr/lib/python2.7/site-packages/django/core/cache/backends/memcached.py
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
},
}
需要改配为:
文件位置:/usr/lib/python2.7/site-packages/django/core/cache/backends/filebased.py
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
# 'LOCATION': '127.0.0.1:11211', # 非必选
},
}