openstack 创建虚拟机的时候报错: Failed to allocate the network(s), not rescheduling.].

时间:2023-03-08 16:29:19

错误: 实例 "test-gtj" 执行所请求操作失败,实例处于错误状态。: 请稍后再试 [错误: Build of instance 5ea8c935-ee07-4788-823f-10e2b003ca89 aborted: Failed to allocate the network(s), not rescheduling.].

openstack 创建虚拟机的时候报错: Failed to allocate the network(s), not rescheduling.].

解决方法:

在nova的计算节点修改:

/etc/nova/nova.conf

  1. #Fail instance boot if vif plugging fails
  2. vif_plugging_is_fatal = False
  3. #Number of seconds to wait for neutron vif
  4. #plugging events to arrive before continuing or failing
  5. #(see vif_plugging_is_fatal). If this is set to zero and
  6. #vif_plugging_is_fatal is False, events should not be expected to arrive at all.
  7. vif_plugging_timeout = 0

[root@linux-node2 ~]# systemctl restart openstack-nova-compute.service