kolla ansible 部署卡在 Nova API 引导容器中

kolla ansible 部署卡在 Nova API 引导容器中

我正在使用 kolla-ansible 部署 openstack(用于 kypo cyber range)。我已按照官方指南。但是我在 Nova API bootstrap 容器上呆了将近半天。我查看了 mariadb.log 文件,它说

2022-01-17 11:40:36 1009 [Warning] Aborted     connection 1009 to db: 'placement' user: 'placement' host: 'kypo-virtual-machine' (Got an error reading communication packets)
2022-01-17 11:41:14 1028 [Warning] Aborted connection 1028 to db: 'placement' user: 'placement' host: 'kypo-virtual-machine' (Got an error reading communication packets)
2022-01-17 11:41:52 1047 [Warning] Aborted connection 1047 to db: 'placement' user: 'placement' host: 'kypo-virtual-machine' (Got an error reading communication packets)
2022-01-17 11:42:29 1064 [Warning] Aborted connection 1064 to db: 'placement' user: 'placement' host: 'kypo-virtual-machine' (Got an error reading communication packets)
2022-01-17 16:49:41 0 [Warning] WSREP: last inactive check more than PT1.5S ago (PT2.13542S), skipping check
2022-01-17 16:49:46 0 [Warning] WSREP: last inactive check more than PT1.5S ago (PT2.49028S), skipping check
2022-01-17 16:51:21 0 [Warning] WSREP: last inactive check more than PT1.5S ago (PT1.56325S), skipping check
2022-01-17 21:23:02 0 [Warning] WSREP: last inactive check more than PT1.5S ago (PT2.2194S), skipping check

我只能说这是连接问题。有人能指导如何解决吗?

答案1

最后我终于让它工作了。

我再次遇到 nova_api_bootstrap 挂起的问题,因为它是临时容器和 DB 配置,我怀疑有几件事。

我发现用于部署 openstack 的服务器和目标主机之间有 2 个小时的漂移。

请确保您的所有服务器都在 TZ 中!

由于我没有时间处理更多部署问题,我决定使用 Xena 而不是 Yoga。

它可以正常工作。

我建议你也看一下用于部署 ansible 的 ansible。确保你指定了正确的版本。我之前遇到过一些麻烦,我发现我有 2 个部署机器的安装(一个来自发行版,另一个来自 venv)理论上它不应该影响安装,但最好有明确的说明!

答案2

尝试重新启动 nova_api 容器并检查日志/var/log/kolla/nova/nova-api.log

在我的例子中,nova_api 在连接到 mariadb 时使用了错误的 fqdn。更改后 Playbook 成功了。

相关内容