【发布时间】:2022-06-13 14:32:32
【问题描述】:
我不能同时使用 httpd 和 nova-api。
当我使用 httpd 服务时。nova-api 已死(或不活动)。
#systemctl 重启 openstack-nova-api
输出:
Job for openstack-nova-api.service failed because the control process exited
with error code. See "systemctl status openstack-nova-api.service" and
"journalctl -xe" for details.
我查看了日志,我得到如下错误。
LOG:ERROR nova.wsgi [-] Could not bind to 0.0.0.0:8774: error: [Errno 98] Address already in use.
CRITICAL nova [-] Unhandled error: error: [Errno 98] Address already in use.
然后,我尝试找出哪个进程使用了端口8774。
#netstat -tunlp | grep 8774
OUTPUT:
tcp 0 0 0.0.0.0:8774 0.0.0.0:* LISTEN 61690/httpd
当我#systemctl stop httpd->#systemctl restart nova-api->#systemctl restart http.我遇到了类似的错误(我使用 RDO 在 centos 7 上安装 openstack-train 版本)。
它们不能同时存在
【问题讨论】:
-
执行
systemctl stop httpd后是否再次检查8774端口? -
在我看来,您正试图在同一个 IP 地址的同一个端口上运行两个服务。这是不可能的。检查配置以找出发生这种情况的原因。
-
grep -r 8774 /etc/揭示了什么?您似乎在端口 8774 上监听了 nova 也需要的虚拟主机定义。您需要更改其中一项服务的端口配置。 -
当我执行“systemctl stop httpd”后检查8774时,没有进程使用它。
-
我也检查了配置,例如 /etc/nova/nova.config==>enable_apis 和 server_listen, etc/httpd/conf.d/****nova-api.conf= =>
或 或 ,它们都无法工作。(对 Stephen)
标签: openstack httpd.conf openstack-nova