kolla ansible图像拉ubuntu上的误差20.04

发布于 2025-01-24 09:13:45 字数 920 浏览 2 评论 0 原文

我正在尝试通过 ubuntu 20.04.4 在kolla-sible上部署OpenStack Infrastress多节点。

ansible 4.10.0 
ansible-core 2.11.11 
kolla-ansible  13.0.1

当我执行命令时:

kolla-ansible -i /etc/kolla/multinode pull

或者

kolla-ansible -i /etc/kolla/multinode deploy

我遇到错误:

致命:[控制器]:失败! => {“ msg”:“模板字符串时的模板错误:无过滤器'select_services_enabled_and_mapped_to_host'..字符串:{lookup('vars',('vars',(kolla_role_name | kolla_role_name | default(project_name)) /p>

致命:[compute01]:失败! => {“ msg”:“模板字符串时的模板错误:无过滤器'select_services_enabled_and_mapped_to_host'..字符串:{lookup('vars',('vars',(kolla_role_name | kolla_role_name | default(project_name)) /p>


I have 1 deployment Node, 1 controller, 1 compute Node

I'm trying to deployement an Openstack infrastracture multi node with kolla-ansible on Ubuntu 20.04.4.

ansible 4.10.0 
ansible-core 2.11.11 
kolla-ansible  13.0.1

when I execute command:

kolla-ansible -i /etc/kolla/multinode pull

or

kolla-ansible -i /etc/kolla/multinode deploy

I'm getting error:

fatal: [controller]: FAILED! => {"msg": "template error while templating string: No filter named 'select_services_enabled_and_mapped_to_host'.. String: {{ lookup('vars', (kolla_role_name | default(project_name)) + '_services') | select_services_enabled_and_mapped_to_host }}"}

fatal: [compute01]: FAILED! => {"msg": "template error while templating string: No filter named 'select_services_enabled_and_mapped_to_host'.. String: {{ lookup('vars', (kolla_role_name | default(project_name)) + '_services') | select_services_enabled_and_mapped_to_host }}"}


I have 1 deployment Node, 1 controller, 1 compute Node

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

似梦非梦 2025-01-31 09:13:45

似乎不是基于错误消息中的拉面问题。似乎是您中子的另一个配置问题。默认 - 元素节点配置需要3个控制器。我不完全知道您的kolla宽恕的多节点

配置设置。应该在路径 kolla-sosible/ansible/acketory/All-In-One 中。通过在 [compute] 中替换 localhost - 以主机名的名称来修改此文件,并删除 ansible_connection = local oth 。当我使用1个控制器和X计算节点创建一个测试人员时,这总是对我有用的。

仅如果您希望控制器不在主机上,在执行Kolla宽敞的地方,则将所有其他 localhost 替换为控制器节点的名称,并且当然删除 ansible_connection =本地到处都是。

只有确定:不要忘记在/etc/hosts -file上写下主机的名称,并在节点上执行Kolla-sosible运行。

Doesn't seems like a pull-issue based in the error-message. Seems like another configuration-problem with your Neutron. The default-multi-node config requires 3 controller. I don't exactly know your multi-node config for kolla-ansible, but when you only want 1 controller and 1 compute you can do something different:

Use the all-in-one-file for your setup. Should be in path kolla-ansible/ansible/inventory/all-in-one. Modify this file by replacing the localhost in the [compute]-section with the name of the host, where the compute should be created and remove the ansible_connection=local. This always worked for me, when I created a test-deployment with 1 controller and X compute-nodes.

Only in case you want the controller not on the host, where you execute the kolla-ansible, then replace all other localhost by the name of your controller-node and of course remove the ansible_connection=local everywhere.

Only the be sure: Don't forget to write the name of the host with it's ip-address in the /etc/hosts-file on the node, where you execute the kolla-ansible run.

念﹏祤嫣 2025-01-31 09:13:45

首先, kolla-sosible Prechecks -i Multinode_or_all-in-in-in-in-In-one 命令的结果是什么?

潜入此方法 select_services_enabled_and_mapped_to_to_host kolla-ansible 项目,您会找到一些线索。该方法的返回依赖于 service_mapped_to_host

因此,有两个步骤清除您的问题:

  • 1,在 /etc/kolla/globals.yml中检查启用服务的设置 kolla-ansible/ansible/group_vars/all.yml

您可以使用此文件(Globals.yml)覆盖整个Kolla的任何变量。可以在“ Kolla-sasible/ansible/group_vars/all.yml”文件中找到其他选项。

  • 2,检查主机 库存 Multinode 全中文件中是否与真正的信息一致。

否则一切都还好,我认为您应该重新发挥作用,请参考

Firstly, what's the result of kolla-ansible prechecks -i multinode_or_all-in-one command?

Dive into this method select_services_enabled_and_mapped_to_host of kolla-ansible project, you will find some clues. The method's return dependent by service_enabled and service_mapped_to_host

So, there are two step to clear your problem:

  • 1, check the service enabled setting in /etc/kolla/globals.yml and kolla-ansible/ansible/group_vars/all.yml.

You can use this file(globals.yml) to override any variable throughout Kolla. Additional options can be found in the 'kolla-ansible/ansible/group_vars/all.yml' file.

  • 2, check the host inventory in multinode or all-in-one file whether consistent with the really information or not.

Or everything is OK, I think you should redeploy it refer to kolla-ansible quickstar.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文