openstack dashboard/horizon 访问不了,报错500

现象

#dashboard能够正常打开,但是身份认证模块报错500
#对应日志提示

[Wed Feb 26 20:30:04.788847 2020] [:error] [pid 29353] [client 192.168.31.1:64330] Daemon process called 'keystone-public' cannot be accessed by this WSGI application: /usr/bin/keystone-wsgi-public, referer: http://192.168.31.200/project/ 

在这里插入图片描述
在这里插入图片描述

原因

#dashboard 路径指向问题

解决方案

#重建dashboard配置,官网没有指明部署时配置过就不需要再配置

cd /usr/share/openstack-dashboard
python manage.py make_web_conf --apache > /etc/httpd/conf.d/openstack-dashboard.conf

#登录到dashboard将出现权限错误和显示混乱,需要建立策略的软链接部署时配置过就不需要再配置

ln -s /etc/openstack-dashboard /usr/share/openstack-dashboard/openstack_dashboard/conf

#在local_settings底下新增根目录指向
#vim /etc/openstack-dashboard/local_settings

WEBROOT = '/dashboard/'

#vim /etc/httpd/conf.d/openstack-dashboard.conf

#将原有的配置注释掉,添加以下配置
#WSGIScriptAlias / /usr/share/openstack-dashboard/openstack_dashboard/wsgi.py
#Alias /static /usr/share/openstack-dashboard/static
WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
Alias /dashboard/static /usr/share/openstack-dashboard/static

#重启httpd及memcached

systemctl restart httpd.service
systemctl restart memcached.service
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值