Openstack dashboard exception problem

After the openstack train is built, the dashboard error is reported
not found.
Changed /etc/httpd/conf.d/openstack-dashboard.conf

#WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
#Alias /dashboard/static /usr/share/openstack-dashboard/static
WSGIApplicationGroup %{
    
    GLOBAL}
WSGIScriptAlias / /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
Alias /static /usr/share/openstack-dashboard/static

The browser can log in to the dashboard by entering the ip, and the option access under the administrator and project is also normal, but the option access under the identity management reports an error.
Continue to modify

vim /usr/share/openstack-dashboard/openstack_dashboard/defaults.py
WEBROOT = '/dashboard'  # from openstack_auth
vim /usr/share/openstack-dashboard/openstack_dashboard/test/settings.py
WEBROOT = '/dashboard'
vim /usr/share/openstack-dashboard/static/dashboard/js/2386ed69f0d7.js
var STATIC_URL="/dashboard/static/";var WEBROOT="/dashboard/";/*!

Note: There are 3 js files, find the file with the WEBROOT option and modify it.
Change the content of /etc/httpd/conf.d/openstack-dashboard.conf back

WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
Alias /dashboard/static /usr/share/openstack-dashboard/static

Restart the httpd service.

Guess you like

Origin blog.csdn.net/weixin_40548182/article/details/111922652
Recommended