Openstack Dashboard Horizon - 来自服务器的空回复

问题描述 投票:0回答:1

我正在尝试按照文档手动安装 Openstack (https://docs.openstack.org/2023.2/#install-guides)。我已经成功安装了 keystone、placement、glance、nova 和 neutron,验证了它们的正确运行。我已经到达了安装 Horizon 仪表板的阶段,但是,在仔细遵循 https://docs.openstack.org/horizon/2023.2/install/install-ubuntu.html 上的指南后,当我运行时

curl http://controller/horizon

我收到“curl: (52) 服务器的空回复”。

这是 /etc/apache2/conf-available/openstack-dashboard.conf 文件:

WSGIScriptAlias /horizon /usr/share/openstack-dashboard/openstack_dashboard/wsgi.py process-group=horizon
WSGIDaemonProcess horizon user=horizon group=horizon processes=3 threads=10 display-name=%{GROUP}
WSGIProcessGroup horizon
WSGIApplicationGroup %{GLOBAL}

Alias /static /var/lib/openstack-dashboard/static/
Alias /horizon/static /var/lib/openstack-dashboard/static/

<Directory /usr/share/openstack-dashboard/openstack_dashboard>
  Require all granted
</Directory>

<Directory /var/lib/openstack-dashboard/static>
  Require all granted
</Directory>

这就是结果

apache2ctl -S

命令:

VirtualHost configuration:
*:5000                 controller (/etc/apache2/sites-enabled/keystone.conf:3)
*:8778                 controller (/etc/apache2/sites-enabled/placement-api.conf:3)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex default: dir="/var/run/apache2/" mechanism=default
Mutex watchdog-callback: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33

我确信我在 apache 配置中遗漏了一些东西,即使文档没有提到任何其他内容。有谁知道我该如何解决这个问题?

提前谢谢您。

附注我正在使用 Ubuntu Server 22.04 LTS

apache2 openstack ubuntu-server ubuntu-22.04 openstack-horizon
1个回答
0
投票

我在 Ubuntu 20.04 和 Openstack Victoria 上也有这个。更改此行

WSGIScriptAlias /horizon /usr/share/openstack-dashboard/openstack_dashboard/wsgi.py process-group=horizon

对此:

WSGIScriptAlias / /usr/share/openstack-dashboard/openstack_dashboard/wsgi.py process-group=horizon

这对我有用。

© www.soinside.com 2019 - 2024. All rights reserved.