重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2712|回复: 0
打印 上一主题 下一主题

openstack安装dashboard后访问horizon出错,登陆界面不出来

[复制链接]
跳转到指定楼层
楼主
发表于 2017-11-1 15:11:25 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
无法出现登陆屏幕:
日志中:
[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服务。


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-24 21:06 , Processed in 0.126784 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表