Openstack nova-compute service 在controller node中不被识别为compute service(可能是rabbitmq连接问题)

Openstack nova-compute service is not recognized as compute service in controller node (probably rabbitmq connection problem)

我正在按照 Openstack 文档网站上的教程进行 Stein 版本的最小部署(我将其安装在 Ubuntu 18.04 实例上)。我安装了 nova 服务并进行了所需的配置。然后我在控制器节点上达到 this stage 和 运行 以下命令。

openstack compute service list --service nova-compute

我原本希望在计算主机上看到 nova-compute 服务 运行,但我什么也没得到。 我查看了计算节点 (/var/log/nova/nova-compute) 上的 nova-compute.log 文件 我有这个错误:

.
.
.
2022-04-25 06:33:46.682 4015 ERROR oslo.messaging._drivers.impl_rabbit [req-313f4c65-0f63-4d8b-8682-6295770701af - - - - -] Connection failed: timed out (retrying in 32.0 seconds): socket.timeout: timed out
2022-04-25 06:34:23.745 4015 ERROR oslo.messaging._drivers.impl_rabbit [req-313f4c65-0f63-4d8b-8682-6295770701af - - - - -] Connection failed: timed out (retrying in 32.0 seconds): socket.timeout: timed out
2022-04-25 06:35:00.803 4015 ERROR oslo.messaging._drivers.impl_rabbit [req-313f4c65-0f63-4d8b-8682-6295770701af - - - - -] Connection failed: timed out (retrying in 32.0 seconds): socket.timeout: timed out
2022-04-25 06:35:37.860 4015 ERROR oslo.messaging._drivers.impl_rabbit [req-313f4c65-0f63-4d8b-8682-6295770701af - - - - -] Connection failed: timed out (retrying in 32.0 seconds): socket.timeout: timed out
2022-04-25 06:36:14.920 4015 ERROR oslo.messaging._drivers.impl_rabbit [req-313f4c65-0f63-4d8b-8682-6295770701af - - - - -] Connection failed: timed out (retrying in 32.0 seconds): socket.timeout: timed out
.
.
.

显然,连接到 rabbitmq 服务时出现问题。我搜索了很多,但找不到对我的情况有用的东西。我已经坚持了很长一段时间了。如果有人能给我一个答案,我会很高兴。

正如评论中 Victor Lee 所建议的那样,我检查了 rabbitmq 的端口,那里没有任何问题。 运行 没问题。原来我的防火墙不允许传入流量通过 rabbitmq 的端口。所以我添加了一个规则来允许它。