简体   繁体   English

未能创建 openStack 实例

[英]Failed to create openStack instance

在此处输入图片说明 I'm new to open stack , and when I try to create instance it gives me this error:我是 open stack 的新手,当我尝试创建实例时,它给了我这个错误:

[Error : Exceeded maximum number of retries. [错误:超过最大重试次数。 Exhausted all hosts available for retrying build failures for instance 57100c2f-a290-4165-b4c0-ba2202cfb728.]已耗尽所有可用于重试构建失败的主机,例如 57100c2f-a290-4165-b4c0-ba2202cfb728。]

Same here.. We managed to deploy OpenStack through Kolla-Ansible Unfortunately just cannot deploy an instance through Horizon.同样在这里.. 我们设法通过Kolla-Ansible部署了 OpenStack 不幸的是无法通过 Horizo​​n 部署实例。 keep getting this error about the scheduler不断收到有关调度程序的此错误

Message Exceeded maximum number of retries.消息已超出最大重试次数。 Exhausted all hosts available for >retrying build failures for instance 3539a5ba-b4f8-4dea-92a0-618e77d3ee93.耗尽所有可用于 > 重试构建失败的主机,例如 3539a5ba-b4f8-4dea-92a0-618e77d3ee93。

Code 500代码 500

Details Traceback (most recent call last): File详细信息回溯(最近一次调用):文件

"/var/lib/kolla/venv/lib/python3.8/site-packages/nova/conductor/manager.py", line 665, in build_instances raise exception.MaxRetriesExceeded(reason=msg) nova.exception.MaxRetriesExceeded: Exceeded maximum number of retries. “/var/lib/kolla/venv/lib/python3.8/site-packages/nova/conductor/manager.py”,第 665 行,在 build_instances 中引发异常。MaxRetriesExceeded(reason=msg) nova.exception.MaxRetriesExceeded: Exceeded最大重试次数。 >Exhausted all hosts available for retrying build failures for instance >3539a5ba-b4f8-4dea-92a0-618e77d3ee93. > 耗尽所有可用于重试构建失败的主机,例如 >3539a5ba-b4f8-4dea-92a0-618e77d3ee93。

Created Oct. 3, 2021, 7:21 am创建于 2021 年 10 月 3 日上午 7:21

But surprisingly the follwoing command seem to work但令人惊讶的是以下命令似乎有效

openstack server create \
--image cirros \
--flavor m1.tiny \
--key-name mykey \
--network demo-net \
demo1

I had a similar problem, in my compute host i can see in the: journalctl -xfu neutron-linuxbridge-agent我有一个类似的问题,在我的计算主机中我可以看到: journalctl -xfu neutron-linuxbridge-agent

Interface eth12 for physical network flat does not exist.物理网络平面的接口 eth12 不存在。 Agent terminated!代理终止!

My linuxbridge agent service was always restarting.我的 linuxbridge 代理服务总是重新启动。

In this case, i was need to create the virtual devices veth file.在这种情况下,我需要创建虚拟设备 veth 文件。 My solution was:我的解决方案是:

  1. vim /etc/systemd/network/25-veth-br-vlan-eth12.netdev vim /etc/systemd/network/25-veth-br-vlan-eth12.netdev
[NetDev]
Name=eth12
Kind=veth
[Peer]
Name=br-vlan-veth
  1. And adding veth config in netplan file: vim /etc/netplan/00-installer-config.yaml并在 netplan 文件中添加 veth 配置: vim /etc/netplan/00-installer-config.yaml
   ethernets:
       eno1:
         dhcp4: no
         mtu: 1500
       eno2:
         dhcp4: no
         mtu: 1500
       br-vlan-veth: {}
       eth12: {}
  1. Apply netplan config:应用网络规划配置:
netplan apply
  1. Restart linuxbridge agent service:重启 linuxbridge 代理服务:
systemctl restart neutron-linuxbridge-agent

PS: I needed to create the veth devices in all hosts using linuxbridge agent, like controller nodes and compute nodes. PS:我需要使用 linuxbridge 代理在所有主机中创建 veth 设备,如控制器节点和计算节点。

If you are using OVS instead linuxbridge, this solution don't make sense to you, but can help someone that use linuxbridge.如果您使用 OVS 而不是 linuxbridge,则此解决方案对您没有意义,但可以帮助使用 linuxbridge 的人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM