重庆思庄Oracle、Redhat认证学习论坛
标题:
openstack安装dashboard后访问horizon出错,登陆界面不出来
[打印本页]
作者:
郑全
时间:
2017-11-1 15:11
标题:
openstack安装dashboard后访问horizon出错,登陆界面不出来
无法出现登陆屏幕:
日志中:
[Tue Oct 31 09:32:27.947870 2017] [core:notice] [pid 2634] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Oct 31 09:33:11.243428 2017] [autoindex:error] [pid 2783] [client 192.168.133.1:61675] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryI
ndex (index.html) found, and server-generated directory index forbidden by Options directive
[Tue Oct 31 09:34:16.763841 2017] [core:error] [pid 2652] [client 192.168.133.1:61681] Script timed out before returning headers: django.wsgi
[Tue Oct 31 09:37:19.720284 2017] [mpm_prefork:notice] [pid 2634] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Oct 31 09:38:13.187507 2017] [core:error] [pid 2657] [client 192.168.133.1:61674] End of script output before headers: django.wsgi
[Tue Oct 31 09:38:53.424564 2017] [suexec:notice] [pid 4747] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Oct 31 09:38:53.442318 2017] [auth_digest:notice] [pid 4747] AH01757: generating secret for digest authentication ...
[Tue Oct 31 09:38:53.442931 2017] [lbmethod_heartbeat:notice] [pid 4747] AH02282: No slotmem from mod_heartmonitor
[Tue Oct 31 09:38:53.455800 2017] [mpm_prefork:notice] [pid 4747] AH00163: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
vi /etc/openstack-dashboard/local_settings 文件中内容如下:
ALLOWED_HOSTS = ['192.168.133.150','192.168.133.1']
#OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = False
OPENSTACK_API_VERSIONS = {
"identity": 2.0,
"image": 2,
"volume": 2,
}
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'controller:11211',
}
}
OPENSTACK_HOST = "controller"
OPENSTACK_KEYSTONE_URL = "
http://%s:5000/v2.0
" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
解决办法:
编辑:/etc/httpd/conf.d/openstack-dashboard.conf
在WSGISocketPrefix run/wsgi下面加一行代码:
WSGIApplicationGroup %{GLOBAL}
保存,重启httpd服务。
欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/)
Powered by Discuz! X3.2