Activity log for bug #1941784

Date Who What changed Old value New value Message
2021-08-26 17:43:39 Satish Patel bug added bug
2021-08-26 18:09:08 Rodolfo Alonso bug added subscriber Rodolfo Alonso
2021-08-26 18:17:42 Satish Patel description Testing OVN with SRIOV with latest wallaby. I have following configuration for SRIOV. # created network (my gateway is my datacenter physical router) neutron subnet-create net_vlan69 10.69.0.0/21 --name sub_vlan69 --allocation-pool start=10.69.7.1,end=10.69.7.254 --dns-nameservers 10.64.0.10 10.64.0.11 --gateway=10.69.0.1 # ml2_config.ini mechanism_drivers = ovn,sriovnicswitch # sriov_nic_agent.ini [agent] [securitygroup] firewall_driver = neutron.agent.firewall.NoopFirewallDriver [sriov_nic] exclude_devices = physical_device_mappings = vlan:eno49,vlan:eno50 # compute / nova.conf [pci] # White list of PCI devices available to VMs. passthrough_whitelist = { "physical_network":"vlan", "devname":"eno49" } I have created neutron port and then try to create instance using it i got following error in neutron-server.log Aug 26 17:37:40 ovn-lab-infra-1-neutron-server-container-bbc2e2bc neutron-server[7325]: 2021-08-26 17:37:40.926 7325 ERROR neutron.plugins.ml2.managers [req-7cd1f547-f909-41cf-95bf-4bd6ee60fa3a 8f68544ba1ce4f32b7 8a53ee9de0fcc4 47bbb171bfad4b109a4f93e25b9e5cc8 - default default] Failed to bind port ee7432c4-3b55-4290-8666-b6088ae5214e on host ovn-lab-comp-sriov-1.v1v0x.net for vnic_type direct using segments [{'id': '43d98d4d-9a41-4f40-ab1c-6086 4289301a', 'network_type': 'vlan', 'physical_network': 'vlan', 'segmentation_id': 69, 'network_id': '73915d6b-155b-46c4-9755-edd4ceb8aaa9'}] Here is the output of OVN root@ovn-lab-infra-1-neutron-ovn-northd-container-cb55f5ef:~# ovn-sbctl list Chassis _uuid : 9e834f0d-b86c-47a6-8f95-57aab89a56cb encaps : [5d349a0f-7660-45fb-8acb-a30123cf3292, dc1478ea-769e-477c-bce4-fd020950894f] external_ids : {datapath-type=system, iface-types="erspan,geneve,gre,internal,ip6erspan,ip6gre,lisp,patch,stt,system,tap,vxlan", is-interconn="false", "neutron:ovn-metadata-id"="e36ecbc7-6468-5912-ab9e-c35e37f7ae28", "neutron:ovn-metadata-sb-cfg"="11", ovn-bridge-mappings="vlan:br-provider", ovn-chassis-mac-mappings="", ovn-cms-options=enable-chassis-as-gw} hostname : ovn-lab-comp-gen-1.v1v0x.net name : "86dafd8a-0bc2-4225-ad69-00c86412b92c" nb_cfg : 11 transport_zones : [] vtep_logical_switches: [] _uuid : 672ebc1a-09e4-4a3a-82e1-40ab982169f3 encaps : [1386ce35-02cf-43f7-bf7d-7045b96330fe, b684747a-d881-4758-9023-052801a36f12] external_ids : {datapath-type="", iface-types="erspan,geneve,gre,internal,ip6erspan,ip6gre,lisp,patch,stt,system,tap,vxlan", is-interconn="false", "neutron:ovn-metadata-id"="1e56c7cb-7d9d-5794-9ab5-dccbab988e54", "neutron:ovn-metadata-sb-cfg"="11", ovn-bridge-mappings="vlan:br-provider", ovn-chassis-mac-mappings="", ovn-cms-options=enable-chassis-as-gw} hostname : ovn-lab-comp-sriov-1.v1v0x.net name : "7b867957-bcf6-4ae7-a0b5-b6948ec85155" nb_cfg : 11 transport_zones : [] vtep_logical_switches: [] root@ovn-lab-infra-1-neutron-ovn-northd-container-cb55f5ef:~# ovn-nbctl list HA_Chassis _uuid : c4c08be8-5cdc-4cd7-99ed-a22bb787ab55 chassis_name : "86dafd8a-0bc2-4225-ad69-00c86412b92c" external_ids : {} priority : 32767 _uuid : 8f072dda-070a-4ff3-805c-bb0f40b99348 chassis_name : "7b867957-bcf6-4ae7-a0b5-b6948ec85155" external_ids : {} priority : 32766 root@ovn-lab-infra-1-neutron-ovn-northd-container-cb55f5ef:~# ovn-nbctl find Logical_Switch_Port type=external _uuid : b83399de-eced-49cb-bfb1-b356ccaaa399 addresses : ["fa:16:3e:97:d2:a0 10.69.7.30"] dhcpv4_options : 50522284-63ad-4f3c-8b74-05f2b0462171 dhcpv6_options : [] dynamic_addresses : [] enabled : true external_ids : {"neutron:cidrs"="10.69.7.30/21", "neutron:device_id"="", "neutron:device_owner"="", "neutron:network_name"=neutron-73915d6b-155b-46c4-9755-edd4ceb8aaa9, "neutron:port_name"=sriov-port-1, "neutron:project_id"=a1f725b0477a4281bebf76d0765add18, "neutron:revision_number"="6", "neutron:security_group_ids"="5d0f9c38-85aa-42d4-8420-c76328606dbd"} ha_chassis_group : d8e28798-412f-434d-b625-624f957be1e2 name : "ee7432c4-3b55-4290-8666-b6088ae5214e" options : {mcast_flood_reports="true"} parent_name : [] port_security : ["fa:16:3e:97:d2:a0 10.69.7.30"] tag : [] tag_request : [] type : external up : true For testing i have upgraded my neutron with latest master also to see if i missed any patch but still result is same. Testing OVN with SRIOV with latest wallaby. I have following configuration for SRIOV. # created network (my gateway is my datacenter physical router) neutron subnet-create net_vlan69 10.69.0.0/21 --name sub_vlan69 --allocation-pool start=10.69.7.1,end=10.69.7.254 --dns-nameservers 10.64.0.10 10.64.0.11 --gateway=10.69.0.1 # ml2_config.ini mechanism_drivers = ovn,sriovnicswitch # sriov_nic_agent.ini [agent] [securitygroup] firewall_driver = neutron.agent.firewall.NoopFirewallDriver [sriov_nic] exclude_devices = physical_device_mappings = vlan:eno49,vlan:eno50 # compute / nova.conf [pci] # White list of PCI devices available to VMs. passthrough_whitelist = { "physical_network":"vlan", "devname":"eno49" } I have created neutron port and then try to create instance using it i got following error in neutron-server.log Aug 26 17:37:40 ovn-lab-infra-1-neutron-server-container-bbc2e2bc neutron-server[7325]: 2021-08-26 17:37:40.926 7325 ERROR neutron.plugins.ml2.managers [req-7cd1f547-f909-41cf-95bf-4bd6ee60fa3a 8f68544ba1ce4f32b7 8a53ee9de0fcc4 47bbb171bfad4b109a4f93e25b9e5cc8 - default default] Failed to bind port ee7432c4-3b55-4290-8666-b6088ae5214e on host ovn-lab-comp-sriov-1.v1v0x.net for vnic_type direct using segments [{'id': '43d98d4d-9a41-4f40-ab1c-6086 4289301a', 'network_type': 'vlan', 'physical_network': 'vlan', 'segmentation_id': 69, 'network_id': '73915d6b-155b-46c4-9755-edd4ceb8aaa9'}] Here is the output of OVN root@ovn-lab-infra-1-neutron-ovn-northd-container-cb55f5ef:~# ovn-sbctl list Chassis _uuid : 9e834f0d-b86c-47a6-8f95-57aab89a56cb encaps : [5d349a0f-7660-45fb-8acb-a30123cf3292, dc1478ea-769e-477c-bce4-fd020950894f] external_ids : {datapath-type=system, iface-types="erspan,geneve,gre,internal,ip6erspan,ip6gre,lisp,patch,stt,system,tap,vxlan", is-interconn="false", "neutron:ovn-metadata-id"="e36ecbc7-6468-5912-ab9e-c35e37f7ae28", "neutron:ovn-metadata-sb-cfg"="11", ovn-bridge-mappings="vlan:br-provider", ovn-chassis-mac-mappings="", ovn-cms-options=enable-chassis-as-gw} hostname : ovn-lab-comp-gen-1.v1v0x.net name : "86dafd8a-0bc2-4225-ad69-00c86412b92c" nb_cfg : 11 transport_zones : [] vtep_logical_switches: [] _uuid : 672ebc1a-09e4-4a3a-82e1-40ab982169f3 encaps : [1386ce35-02cf-43f7-bf7d-7045b96330fe, b684747a-d881-4758-9023-052801a36f12] external_ids : {datapath-type="", iface-types="erspan,geneve,gre,internal,ip6erspan,ip6gre,lisp,patch,stt,system,tap,vxlan", is-interconn="false", "neutron:ovn-metadata-id"="1e56c7cb-7d9d-5794-9ab5-dccbab988e54", "neutron:ovn-metadata-sb-cfg"="11", ovn-bridge-mappings="vlan:br-provider", ovn-chassis-mac-mappings="", ovn-cms-options=enable-chassis-as-gw} hostname : ovn-lab-comp-sriov-1.v1v0x.net name : "7b867957-bcf6-4ae7-a0b5-b6948ec85155" nb_cfg : 11 transport_zones : [] vtep_logical_switches: [] root@ovn-lab-infra-1-neutron-ovn-northd-container-cb55f5ef:~# ovn-nbctl list HA_Chassis _uuid : c4c08be8-5cdc-4cd7-99ed-a22bb787ab55 chassis_name : "86dafd8a-0bc2-4225-ad69-00c86412b92c" external_ids : {} priority : 32767 _uuid : 8f072dda-070a-4ff3-805c-bb0f40b99348 chassis_name : "7b867957-bcf6-4ae7-a0b5-b6948ec85155" external_ids : {} priority : 32766 root@ovn-lab-infra-1-neutron-ovn-northd-container-cb55f5ef:~# ovn-nbctl find Logical_Switch_Port type=external _uuid : b83399de-eced-49cb-bfb1-b356ccaaa399 addresses : ["fa:16:3e:97:d2:a0 10.69.7.30"] dhcpv4_options : 50522284-63ad-4f3c-8b74-05f2b0462171 dhcpv6_options : [] dynamic_addresses : [] enabled : true external_ids : {"neutron:cidrs"="10.69.7.30/21", "neutron:device_id"="", "neutron:device_owner"="", "neutron:network_name"=neutron-73915d6b-155b-46c4-9755-edd4ceb8aaa9, "neutron:port_name"=sriov-port-1, "neutron:project_id"=a1f725b0477a4281bebf76d0765add18, "neutron:revision_number"="6", "neutron:security_group_ids"="5d0f9c38-85aa-42d4-8420-c76328606dbd"} ha_chassis_group : d8e28798-412f-434d-b625-624f957be1e2 name : "ee7432c4-3b55-4290-8666-b6088ae5214e" options : {mcast_flood_reports="true"} parent_name : [] port_security : ["fa:16:3e:97:d2:a0 10.69.7.30"] tag : [] tag_request : [] type : external up : true For testing i have upgraded my neutron with latest master also to see if i missed any patch but still result is same.
2021-08-26 18:17:59 Satish Patel neutron: status New Invalid