Dear friend today we will see how to resolve this error Failed to allocate the network in OpenStack SRIOV host.
We were trying to deploy one Virtual machine in our Openstack SRIOV host and we were getting this below error in compute logs.
Error:- Failed to allocate the network
2022-07-06 09:20:09.328 7 ERROR nova.compute.manager [instance: d6a7577e-9d4a-4482-a57e-068401eb3ab1] VirtualInterfaceCreateException: Virtual Interface creation failed 2022-07-06 09:20:09.328 7 ERROR nova.compute.manager [instance: d6a7577e-9d4a-4482-a57e-068401eb3ab1] 2022-07-06 09:20:09.331 7 ERROR nova.compute.manager [req-af1bea2b-2066-4340-9f80-e694ba2c5f3a 7636ca42d07540aba6d44dc0301feaab a96f6759066f444b908e02e012b93ed4 - default default] [instance: d6a7577e-9d4a-4482-a57e-068401eb3ab1] Build of instance d6a7577e-9d4a-4482-a57e-068401eb3ab1 aborted: Failed to allocate the network(s), not rescheduling.: BuildAbortException: Build of instance d6a7577e-9d4a-4482-a57e-068401eb3ab1 aborted: Failed to allocate the network(s), not rescheduling. 2022-07-06 09:20:09.331 7 ERROR nova.compute.manager [instance: d6a7577e-9d4a-4482-a57e-068401eb3ab1] Traceback (most recent call last): 2022-07-06 09:20:09.331 7 ERROR nova.compute.manager [instance: d6a7577e-9d4a-4482-a57e-068401eb3ab1] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1833, in _do_build_and_run_instance 2022-07-06 09:20:09.331 7 ERROR nova.compute.manager [instance: d6a7577e-9d4a-4482-a57e-068401eb3ab1] filter_properties, request_spec) 2022-07-06 09:20:09.331 7 ERROR nova.compute.manager [instance: d6a7577e-9d4a-4482-a57e-068401eb3ab1] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2092, in _build_and_run_instance 2022-07-06 09:20:09.331 7 ERROR nova.compute.manager [instance: d6a7577e-9d4a-4482-a57e-068401eb3ab1] reason=msg) 2022-07-06 09:20:09.331 7 ERROR nova.compute.manager [instance: d6a7577e-9d4a-4482-a57e-068401eb3ab1] BuildAbortException: Build of instance d6a7577e-9d4a-4482-a57e-068401eb3ab1 aborted: Failed to allocate the network(s), not rescheduling. 2022-07-06 09:20:09.331 7 ERROR nova.compute.manager [instance: d6a7577e-9d4a-4482-a57e-068401eb3ab1]
Solution for this error
To resolve this issue we have restarted SRIOV agent service on SRIOV compute host, then our Virtual Machine has been successfully deployed.
You can check SRIOV agent service running status with below command.
systemctl status neutron-sriov-nic-agent-restart
[root@overcloud-sriovperformancecompute-2 ~]# systemctl status neutron-sriov-nic-agent-restart
● neutron-sriov-nic-agent-restart.service – OpenStack Neutron SR-IOV NIC Agent restart
Loaded: loaded (/etc/systemd/system/neutron-sriov-nic-agent-restart.service; static; vendor preset: disabled)
Active: inactive (dead)
Jul 14 12:24:11 overcloud-sriovperformancecompute-2 systemd[1]: Starting OpenStack Neutron SR-IOV NIC Agent restart…
Jul 14 12:24:12 overcloud-sriovperformancecompute-2 systemd[1]: Started OpenStack Neutron SR-IOV NIC Agent restart.
You have new mail in /var/spool/mail/root
[root@overcloud-sriovperformancecompute-2 ~]#
You can restart neutron agent service with below command on SRIOV compute nodes
[root@overcloud-sriovperformancecompute-2 ~]# systemctl restart neutron-sriov-nic-agent-restart
Once the neutron service restarted successfully then you can try. After that this error (Failed to allocate the network) should be resolved.
For more detail about SRIOV Network troubleshoot you can check this below link
That’s all, So in this sort tutorial we have seen how to resolved Failed to allocate the network error in OpenStack SRIOV compute node during Virtual Machine deployment.
If you want to know what is SRIOV network then you can also check this below link.
What is SR-IOV technology and why we need it
An impressive share, I simply given this onto a colleague who was doing a little bit analysis on this. And he in fact purchased me breakfast because I discovered it for him.. smile. So let me reword that: Thnx for the deal with! However yeah Thnkx for spending the time to discuss this, I feel strongly about it and love studying more on this topic. If potential, as you turn into experience, would you thoughts updating your blog with extra particulars? It is highly helpful for me. Huge thumb up for this weblog put up!
What i do not realize is in reality how you are no longer really much more neatly-favored than you might be now. You are very intelligent. You know therefore considerably on the subject of this subject, produced me for my part imagine it from a lot of varied angles. Its like women and men aren’t involved unless it is something to accomplish with Woman gaga! Your own stuffs outstanding. All the time take care of it up!