sriov binding failure

asked 2015-02-12 06:55:42 -0500

yaroni gravatar image

updated 2015-02-12 07:42:36 -0500

I am trying to launch vm with sriov but get the following error

I am getting the following error in nova-conductor.log 2015-02-10 12:14:33.337 4570 ERROR nova.scheduler.utils [req-63f0d61e-1e2e-40ba-8509-7c6c68238199 None] [instance: b57c7237-7f0b-4c67-8e97-dfa04ec56e68] Error from last host: localhost.localdomain (node localhost.localdomain): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2030, in _do_build_and_run_instance\n filter_properties)\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2161, in _build_and_run_instance\n instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance b57c7237-7f0b-4c67-8e97-dfa04ec56e68 was re-scheduled: Unexpected vif_type=binding_failed\n']

The lspci output looks like

09:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
09:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
09:10.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
09:10.1 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
09:10.2 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
...

In nova.conf

pci_passthrough_whitelist = {"address":"*:09:10.*","physical_network":"physnet1"}

ml2_conf.ini

tenant_network_types = vxlan,vlan
mechanism_drivers =openvswitch,sriovnicswitch
network_vlan_ranges = physnet1:101:150

ml2_sriov.ini

supported_pci_vendor_devs = 8086:10fb 
physical_device_mappings = physnet1:ens2f0

I tried to launch the vm through the dashboard and through the shell and get the error

neutron net-create --provider:physical_network=physnet1 --provider:network_type=vlan --provider:segmentation_id=111 sriov-net
neutron subnet-create sriov-net 192.168.2.0/24 --name sriov-subnet
neutron port-create 64926985-3c04-4e50-8502-b50c0f38af7c  --binding:vnic-type direct
nova boot --flavor m1.large --image 7648d005-4df8-43ab-abca-7f6908e32218   --nic port-id=b89a362d-1909-4e6f-8b64-223a66d66f41 sriov

Neutron log is as following

015-02-10 12:14:04.828 5282 INFO neutron.wsgi [req-6be014f2-64bb-4fc8-80df-173d9b2f95c6 None] 172.16.4.250 - - [10/Feb/2015 12:14:04] "GET //v2.0/routers.json?tenant_id=5af604dbf4c2431f87e157c526158bd0 HTTP/1.1" 200 1046 0.027448

2015-02-10 12:14:06.429 5290 WARNING neutron.plugins.ml2.rpc [req-60be7756-4e9e-44b1-bc10-2b103c74bdc2 None] Device 66fd86cf-4fe8-4d07-8170-a158a156dc2d requested by agent ovs-agent-localhost.localdomain on network 4de555b2-5153-4271-b881-4e3b4a351a40 not bound, vif_type: binding_failed

2015-02-10 12:14:15.001 5280 INFO neutron.wsgi [-] (5280) accepted ('172.16.4.250', 37888)

2015-02-10 12:14:15.041 5280 INFO neutron.wsgi [req-e26ecbbb-a210-4271-913e-7f94699ef7b7 None] 172.16.4.250 - - [10/Feb/2015 12:14:15] "GET /v2.0/ports.json?device_id=b57c7237-7f0b-4c67-8e97-dfa04ec56e68&device_id=e9a531a4-b957-4dc9-8a1f-055e8866d102&device_id=a3e86ff8-6abb-4027-87cf-15fe903916f4&device_id=df44c009-4ccf-4dfe-8173-7a8613514a63&device_id=3f5d95ac-5c9c-49de-909b-74f0b2f722e2&device_id=7d57d794-20d6-4368-8c1a-7ccd41d3217a&device_id=10301f0b-c7f0-4291-bcc4-36936bfaf7ec&device_id=768da694-6771-4761-9520-e8103232dbf7 HTTP/1.1" 200 9223 0.036710

2015-02-10 12:14:15.044 5280 INFO neutron.wsgi [-] (5280) accepted ('172.16.4.250', 37889)

2015-02-10 12:14:15.073 5280 INFO neutron.wsgi [req-a6dda121-3dd5-4b2a-bd37-d20f8dbc79b7 None] 172.16.4.250 - - [10/Feb/2015 12:14:15] "GET /v2.0/security-groups.json?id=66d8cdc0-ce42-4ad5-b986-e9060522f293&id=9a534a9b-ac6e-43fc-a1d2-0dd4e8ffd555&id=94533a81-0e5b-4325-9096-0f919fe1fa97&id=ecb94f49-0fdd-4f6f-baa6-d602d83228bd&id=d66f4b45-cab4-4c65-b578-d9a2359f0ddd&id=d525c71f-ba6c-44b3-bae8-54307aeb3822 HTTP/1.1" 200 10154 0.028447

2015-02-10 12:14:15.113 5280 INFO neutron.wsgi [-] (5280) accepted ('172.16.4.250', 37890)

2015-02-10 12:14:15.140 5280 INFO neutron.wsgi [req-6aa90549-a253-412c-9264-0da80d0b075f None] 172.16.4.250 - - [10/Feb/2015 12:14:15] "GET //v2 ...
(more)
edit retag flag offensive close merge delete

Comments

check the neutron server log - maybe it has more details why it could not bind the port

darragh-oreilly gravatar imagedarragh-oreilly ( 2015-02-12 07:18:39 -0500 )edit

seems like the ovs-agent is being involved in the binding process. I'm not sure why that is. Anyway you could try agent_required=False in [ml2_sriov] on the neutron server.

darragh-oreilly gravatar imagedarragh-oreilly ( 2015-02-13 10:28:54 -0500 )edit

Still not working

I tried and i am still getting error in neutron server.log 2015-02-15 08:54:00.366 5247 INFO neutron.quota [req-c6d690c5-14f6-453b-85b4-6ddb6d41afea None] Loaded quota_driver: <neutron.db.quota_db.dbquotadriver object="" at="" 0x4edced0="">. 2015-02-15 08:54:00.476 5247 WARNING neutron.plu

yaroni gravatar imageyaroni ( 2015-02-15 08:57:12 -0500 )edit