背景
最近在测试openstack T版的vxlan模式,新搭建了一套openstack,在部署到dashboard时发现访问web异常(The requested URL /auth/login/ was not found on this server),页面报错如下:
image.png
访问错误日志如下:
[Wed May 19 13:58:41.275674 2021] [authz_core:error] [pid 18088] [client 10.17.70.20:52306] AH01630: client denied by server configuration: /usr/bin/keystone-wsgi-public, referer: http://test-controller/dashboard/identity/
[Wed May 19 13:58:41.579432 2021] [:error] [pid 18034] WARNING:root:Use of this 'djano.wsgi' file has been deprecated since the Rocky release in favor of 'wsgi.py' in the 'openstack_dashboard' module. This file is a legacy naming from before Django 1.4 and an importable 'wsgi.py' is now the default. This file will be removed in the T release cycle.
解决办法
在openstack的官方文档中并没有提示说明,需要修改配置文件/etc/openstack-dashboard/local_settings
#在配置文件当中添加一行
WEBROOT = '/dashboard/'
#重启服务
systemctl restart httpd.service memcached.service
重新进入登陆页面OK
网友评论