openstack Train 版按照官方文档安装后
1.访问/dashboard后跳转到/auth/login报404(操作下面2步可以解决dashboard访问404问题,请跳过此步骤)
解决方法如下:
cd /usr/share/openstack-dashboard
python manage.py make_web_conf --apache > /etc/httpd/conf.d/openstack-dashboard.conf
2.建立策略文件(policy.json)的软链接,否则登录到dashboard将出现权限错误
解决方法如下:
ln -s /etc/openstack-dashboard /usr/share/openstack-dashboard/openstack_dashboard/conf
3.身份管理里面的项目、用户、组和角色都无法打开,日志提示:
Daemon process called 'keystone-public' cannot be accessed by this WSGI application: /usr/bin/keystone-wsgi-public
解决方法如下:
编辑以下文件,找到WEBROOT = '/' 修改为WEBROOT = '/dashboard' (官方未提及坑点之一) vim /usr/share/openstack-dashboard/openstack_dashboard/defaults.py vim /usr/share/openstack-dashboard/openstack_dashboard/test/settings.py vim /usr/share/openstack-dashboard/static/dashboard/js/9937cc9f2cae.js