openstack yoga版本 dashboard 404问题求助

m0_63241910 m0_63241910 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

虚拟机是centos8 stream,按照官方文档进行安装后,浏览器访问10.0.0.11/dashboard会报错404

 

查看/var/log/httpd/error日志显示OpenStack  Dashboard的WSGI脚本无法找到或无法读取的错误

[Sun May 14 15:11:32.935809 2023] [wsgi:error] [pid 3313:tid 140181323626240] [client 10.0.0.1:57323] Target WSGI script not found or unable to stat: /usr/share/openstack-dashboard/openstack_dashboard/wsgi
[Sun May 14 15:11:33.269890 2023] [wsgi:error] [pid 3313:tid 140181306840832] [client 10.0.0.1:57323] Target WSGI script not found or unable to stat: /usr/share/openstack-dashboard/openstack_dashboard/wsgi
[Sun May 14 15:11:33.572512 2023] [wsgi:error] [pid 3313:tid 140181290055424] [client 10.0.0.1:57323] Target WSGI script not found or unable to stat: /usr/share/openstack-dashboard/openstack_dashboard/wsgi
[Sun May 14 15:11:33.793648 2023] [wsgi:error] [pid 3313:tid 140181273270016] [client 10.0.0.1:57323] Target WSGI script not found or unable to stat: /usr/share/openstack-dashboard/openstack_dashboard/wsgi
[Sun May 14 15:11:33.993826 2023] [wsgi:error] [pid 3313:tid 140181315233536] [client 10.0.0.1:57323] Target WSGI script not found or unable to stat: /usr/share/openstack-dashboard/openstack_dashboard/wsgi
[Sun May 14 15:11:35.289143 2023] [wsgi:error] [pid 3313:tid 140181332018944] [client 10.0.0.1:57323] Target WSGI script not found or unable to stat: /usr/share/openstack-dashboard/openstack_dashboard/wsgi
[Sun May 14 15:11:35.463633 2023] [wsgi:error] [pid 3313:tid 140181281662720] [client 10.0.0.1:57323] Target WSGI script not found or unable to stat: /usr/share/openstack-dashboard/openstack_dashboard/wsgi

这是/etc/openstack-dashboard/路径下的local_settings文件的主要配置部分

ALLOWED_HOSTS = ['*', ]
WEBROOT = '/dashboard'
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': 'controller:11211',
    },
}

SESSION_ENGINE = 'django.contrib.sessions.backends.cache'

EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

OPENSTACK_HOST = "controller"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
OPENSTACK_API_VERSIONS = {
    "identity": 3,
    "image": 2,
    "volume": 3,
}
OPENSTACK_NEUTRON_NETWORK = {
    'enable_router': False,
    'enable_quotas': False,
    'enable_distributed_router': False,
    'enable_ha_router': False,
    'enable_fip_topology_check': False,
}

TIME_ZONE = "Asia/Shanghai"

这是/etc/httpd/conf.d/openstack-dashboard.conf文件的全部配置

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

<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
  Options All
  AllowOverride All
  Require all granted
</Directory>

<Directory /usr/share/openstack-dashboard/static>
  Options All
  AllowOverride All
  Require all granted
</Directory>

有大佬能帮我解决下这个问题吗

...全文

相关推荐

评论 2
收藏 已收藏
分享
返回顶部
m0_63241910
OpenStack 1,011 成员 1,396 内容