当搭建完dashboard页面进行登陆的时候页面没有反应,首先去查看http日志文件:
[Thu Apr 04 17:39:35.792644 2019] [:error] [pid 17630] Could not process panel theme_preview: Dashboard with slug "developer" is not registered.
[Thu Apr 04 17:39:46.013970 2019] [:error] [pid 17630] Login successful for user "admin".
[Thu Apr 04 17:39:49.490375 2019] [:error] [pid 17630] Login failed for user "admin".
[Thu Apr 04 17:39:58.878078 2019] [:error] [pid 17630] Login successful for user "admin".
日志报错信息显示admin用户登录成功,但是为什么页面没有跳转到登录之后的页面
去查看dashboard的配置文件有没有写错什么东西,检查几个重要信息
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = ‘demo‘ //域是OK的没问题
SESSION_ENGINE = ‘django.contrib.sessions.backends.cache‘
CACHES = {
‘default‘: {
‘BACKEND‘: ‘django.core.cache.backends.memcached.MemcachedCache‘,
‘LOCATION‘: ‘127.0.0.1:11211‘,
},
} //缓存配置也没有问题
EMAIL_BACKEND = ‘django.core.mail.backends.console.EmailBackend‘
OPENSTACK_HOST = "controller"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
OPENSTACK_KEYSTONE_BACKEND = {
‘name‘: ‘native‘,
‘can_edit_user‘: True,
‘can_edit_group‘: True,
‘can_edit_project‘: True,
‘can_edit_domain‘: True,
‘can_edit_role‘: True,
}
dashboard的配置文件没有什么问题,那就在尝试最后一个方法清除浏览器缓存或换个浏览器打开页面登录
???终于登录上去了,算是一个很奇葩的问题。
原文地址:https://blog.51cto.com/9103824/2374255
时间: 2024-11-09 05:52:38