When openstack creates a virtual machine, it reports an error: Failed to allocate the network(s), not rescheduling.].

Error: Instance "test-gtj" failed to perform the requested operation, the instance is in an error state. : Please try again later [Error: Build of instance 5ea8c935-ee07-4788-823f-10e2b003ca89 aborted: Failed to allocate the network(s), not rescheduling.].

Solution:

Modify on the computing node of nova:

/etc/nova/nova.conf

 

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



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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325262458&siteId=291194637