[英]Kolla ansible images pull error on ubuntu 20.04
I'm trying to deployement an Openstack infrastracture multi node with kolla-ansible on Ubuntu 20.04.4
.我正在尝试在 Ubuntu 20.04.4 上部署带有 kolla-ansible 的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 }}"}致命的:[控制器]:失败:=> {“msg”:“模板化字符串时出现模板错误。没有名为'select_services_enabled_and_mapped_to_host'的过滤器。:字符串,{{ 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 }}"}致命:[compute01]:失败:=> {“msg”:“模板字符串时出现模板错误。没有名为'select_services_enabled_and_mapped_to_host'的过滤器。:字符串,{{ 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
Doesn't seems like a pull-issue based in the error-message.看起来不像是基于错误消息的拉动问题。 Seems like another configuration-problem with your Neutron.似乎是您的 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:默认多节点配置需要 3 controller。我不完全了解 kolla-ansible 的多节点配置,但是当您只需要 1 controller 和 1 计算时,您可以做一些不同的事情:
Use the all-in-one
-file for your setup.使用all-in-one
文件进行设置。 Should be in path kolla-ansible/ansible/inventory/all-in-one
.应该在路径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
.修改此文件,将[compute]
部分中的localhost
替换为主机名称,计算应在其中创建,并删除ansible_connection=local
。 This always worked for me, when I created a test-deployment with 1 controller and X compute-nodes.当我使用 1 controller 和 X 个计算节点创建测试部署时,这对我一直有效。
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.仅当您希望 controller 不在执行 kolla-ansible 的主机上时,然后将所有其他localhost
替换为您的控制器节点的名称,当然还要删除所有地方的ansible_connection=local
。
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.唯一确定的是:不要忘记在执行 kolla-ansible 运行的节点上的/etc/hosts
文件中写入主机名及其 ip 地址。
Firstly, what's the result of kolla-ansible prechecks -i multinode_or_all-in-one
command?首先, kolla-ansible prechecks -i multinode_or_all-in-one
命令的结果是什么?
Dive into this method select_services_enabled_and_mapped_to_host
of kolla-ansible
project, you will find some clues.深入研究kolla-ansible
项目的select_services_enabled_and_mapped_to_host
这个方法,你会发现一些线索。 The method's return dependent by service_enabled
and service_mapped_to_host
该方法的返回依赖于service_enabled
和service_mapped_to_host
So, there are two step to clear your problem:因此,有两个步骤可以解决您的问题:
You can use this file(globals.yml) to override any variable throughout Kolla.您可以使用此文件 (globals.yml) 覆盖整个 Kolla 中的任何变量。 Additional options can be found in the 'kolla-ansible/ansible/group_vars/all.yml' file.可以在“kolla-ansible/ansible/group_vars/all.yml”文件中找到其他选项。
Or everything is OK, I think you should redeploy it refer to kolla-ansible quickstar .或者一切正常,我认为你应该重新部署它参考kolla-ansible quickstar 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.