Bug 2109768
| Summary: | ofproto_dpif_upcall(revalidator50)|WARN|Failed to acquire udpif_key corresponding to unexpected flow (Invalid argument) | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Fast Datapath | Reporter: | Jianlin Shi <jishi> |
| Component: | openvswitch2.17 | Assignee: | Aaron Conole <aconole> |
| Status: | CLOSED EOL | QA Contact: | Jianlin Shi <jishi> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | FDP 22.F | CC: | ctrautma, fleitner, jhsiao, ralongi |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-10-08 17:49:14 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
full ovs-vswitchd.log: [root@wsfd-advnetlab16 test]# cat /var/log/openvswitch/ovs-vswitchd.log 2022-07-26T00:51:44.316Z|00001|vlog|INFO|opened log file /var/log/openvswitch/ovs-vswitchd.log 2022-07-26T00:51:44.366Z|00002|ovs_numa|INFO|Discovered 24 CPU cores on NUMA node 1 2022-07-26T00:51:44.366Z|00003|ovs_numa|INFO|Discovered 24 CPU cores on NUMA node 0 2022-07-26T00:51:44.366Z|00004|ovs_numa|INFO|Discovered 2 NUMA nodes and 48 CPU cores 2022-07-26T00:51:44.366Z|00005|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting... 2022-07-26T00:51:44.366Z|00006|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connected 2022-07-26T00:51:44.368Z|00007|dpdk|INFO|DPDK Disabled - Use other_config:dpdk-init to enable 2022-07-26T00:51:44.377Z|00008|bridge|INFO|ovs-vswitchd (Open vSwitch) 2.17.3 2022-07-26T00:51:44.472Z|00009|ofproto_dpif|INFO|system@ovs-system: Datapath supports recirculation 2022-07-26T00:51:44.472Z|00010|ofproto_dpif|INFO|system@ovs-system: VLAN header stack length probed as 2 2022-07-26T00:51:44.472Z|00011|ofproto_dpif|INFO|system@ovs-system: MPLS label stack length probed as 3 2022-07-26T00:51:44.472Z|00012|ofproto_dpif|INFO|system@ovs-system: Datapath supports truncate action 2022-07-26T00:51:44.472Z|00013|ofproto_dpif|INFO|system@ovs-system: Datapath supports unique flow ids 2022-07-26T00:51:44.472Z|00014|ofproto_dpif|INFO|system@ovs-system: Datapath supports clone action 2022-07-26T00:51:44.473Z|00015|ofproto_dpif|INFO|system@ovs-system: Max sample nesting level probed as 10 2022-07-26T00:51:44.473Z|00016|ofproto_dpif|INFO|system@ovs-system: Datapath supports eventmask in conntrack action 2022-07-26T00:51:44.473Z|00017|ofproto_dpif|INFO|system@ovs-system: Datapath supports ct_clear action 2022-07-26T00:51:44.473Z|00018|ofproto_dpif|INFO|system@ovs-system: Max dp_hash algorithm probed to be 0 2022-07-26T00:51:44.473Z|00019|ofproto_dpif|INFO|system@ovs-system: Datapath supports check_pkt_len action 2022-07-26T00:51:44.484Z|00020|ofproto_dpif|INFO|system@ovs-system: Datapath supports timeout policy in conntrack action 2022-07-26T00:51:44.484Z|00021|ofproto_dpif|INFO|system@ovs-system: Datapath supports ct_zero_snat 2022-07-26T00:51:44.484Z|00022|ofproto_dpif|INFO|system@ovs-system: Datapath supports add_mpls action 2022-07-26T00:51:44.484Z|00023|ofproto_dpif|INFO|system@ovs-system: Datapath supports ct_state 2022-07-26T00:51:44.484Z|00024|ofproto_dpif|INFO|system@ovs-system: Datapath supports ct_zone 2022-07-26T00:51:44.484Z|00025|ofproto_dpif|INFO|system@ovs-system: Datapath supports ct_mark 2022-07-26T00:51:44.484Z|00026|ofproto_dpif|INFO|system@ovs-system: Datapath supports ct_label 2022-07-26T00:51:44.484Z|00027|ofproto_dpif|INFO|system@ovs-system: Datapath supports ct_state_nat 2022-07-26T00:51:44.484Z|00028|ofproto_dpif|INFO|system@ovs-system: Datapath supports ct_orig_tuple 2022-07-26T00:51:44.484Z|00029|ofproto_dpif|INFO|system@ovs-system: Datapath supports ct_orig_tuple6 2022-07-26T00:51:44.484Z|00030|ofproto_dpif|INFO|system@ovs-system: Datapath does not support IPv6 ND Extensions 2022-07-26T00:51:44.490Z|00031|ofproto_dpif_upcall|INFO|Overriding n-handler-threads to 48, setting n-revalidator-threads to 13 2022-07-26T00:51:44.490Z|00032|ofproto_dpif_upcall|INFO|Starting 61 threads 2022-07-26T00:51:44.602Z|00033|bridge|INFO|bridge br-ex: added interface br-ex on port 65534 2022-07-26T00:51:44.602Z|00034|bridge|INFO|bridge br-ex: using datapath ID 0000265556554c4d 2022-07-26T00:51:44.602Z|00035|connmgr|INFO|br-ex: added service controller "punix:/var/run/openvswitch/br-ex.mgmt" 2022-07-26T00:51:44.653Z|00036|bridge|INFO|bridge br-ex: added interface ens1f0np0 on port 1 2022-07-26T00:51:44.654Z|00037|bridge|INFO|bridge br-ex: using datapath ID 00000c42a1080b1a 2022-07-26T00:51:44.765Z|00038|bridge|INFO|bridge br-ex: deleted interface br-ex on port 65534 2022-07-26T00:51:44.765Z|00039|bridge|INFO|bridge br-ex: deleted interface ens1f0np0 on port 1 2022-07-26T00:51:45.450Z|00001|vlog|INFO|opened log file /var/log/openvswitch/ovs-vswitchd.log 2022-07-26T00:51:45.502Z|00002|ovs_numa|INFO|Discovered 24 CPU cores on NUMA node 1 2022-07-26T00:51:45.502Z|00003|ovs_numa|INFO|Discovered 24 CPU cores on NUMA node 0 2022-07-26T00:51:45.502Z|00004|ovs_numa|INFO|Discovered 2 NUMA nodes and 48 CPU cores 2022-07-26T00:51:45.502Z|00005|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting... 2022-07-26T00:51:45.503Z|00006|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connected 2022-07-26T00:51:45.505Z|00007|dpdk|INFO|DPDK Disabled - Use other_config:dpdk-init to enable 2022-07-26T00:51:45.513Z|00008|ofproto_dpif|INFO|system@ovs-system: Datapath supports recirculation 2022-07-26T00:51:45.513Z|00009|ofproto_dpif|INFO|system@ovs-system: VLAN header stack length probed as 2 2022-07-26T00:51:45.513Z|00010|ofproto_dpif|INFO|system@ovs-system: MPLS label stack length probed as 3 2022-07-26T00:51:45.513Z|00011|ofproto_dpif|INFO|system@ovs-system: Datapath supports truncate action 2022-07-26T00:51:45.513Z|00012|ofproto_dpif|INFO|system@ovs-system: Datapath supports unique flow ids 2022-07-26T00:51:45.513Z|00013|ofproto_dpif|INFO|system@ovs-system: Datapath supports clone action 2022-07-26T00:51:45.514Z|00014|ofproto_dpif|INFO|system@ovs-system: Max sample nesting level probed as 10 2022-07-26T00:51:45.514Z|00015|ofproto_dpif|INFO|system@ovs-system: Datapath supports eventmask in conntrack action 2022-07-26T00:51:45.514Z|00016|ofproto_dpif|INFO|system@ovs-system: Datapath supports ct_clear action 2022-07-26T00:51:45.514Z|00017|ofproto_dpif|INFO|system@ovs-system: Max dp_hash algorithm probed to be 0 2022-07-26T00:51:45.514Z|00018|ofproto_dpif|INFO|system@ovs-system: Datapath supports check_pkt_len action 2022-07-26T00:51:45.524Z|00019|ofproto_dpif|INFO|system@ovs-system: Datapath supports timeout policy in conntrack action 2022-07-26T00:51:45.524Z|00020|ofproto_dpif|INFO|system@ovs-system: Datapath supports ct_zero_snat 2022-07-26T00:51:45.524Z|00021|ofproto_dpif|INFO|system@ovs-system: Datapath supports add_mpls action 2022-07-26T00:51:45.524Z|00022|ofproto_dpif|INFO|system@ovs-system: Datapath supports ct_state 2022-07-26T00:51:45.524Z|00023|ofproto_dpif|INFO|system@ovs-system: Datapath supports ct_zone 2022-07-26T00:51:45.524Z|00024|ofproto_dpif|INFO|system@ovs-system: Datapath supports ct_mark 2022-07-26T00:51:45.524Z|00025|ofproto_dpif|INFO|system@ovs-system: Datapath supports ct_label 2022-07-26T00:51:45.524Z|00026|ofproto_dpif|INFO|system@ovs-system: Datapath supports ct_state_nat 2022-07-26T00:51:45.524Z|00027|ofproto_dpif|INFO|system@ovs-system: Datapath supports ct_orig_tuple 2022-07-26T00:51:45.524Z|00028|ofproto_dpif|INFO|system@ovs-system: Datapath supports ct_orig_tuple6 2022-07-26T00:51:45.524Z|00029|ofproto_dpif|INFO|system@ovs-system: Datapath does not support IPv6 ND Extensions 2022-07-26T00:51:45.525Z|00030|ofproto_dpif_upcall|INFO|Overriding n-handler-threads to 48, setting n-revalidator-threads to 13 2022-07-26T00:51:45.525Z|00031|ofproto_dpif_upcall|INFO|Starting 61 threads 2022-07-26T00:51:45.621Z|00032|bridge|INFO|bridge br-ex: added interface br-ex on port 65534 2022-07-26T00:51:45.621Z|00033|bridge|INFO|bridge br-ex: added interface ens1f0np0 on port 1 2022-07-26T00:51:45.621Z|00034|bridge|INFO|bridge br-ex: using datapath ID 00000c42a1080b1a 2022-07-26T00:51:45.623Z|00035|connmgr|INFO|br-ex: added service controller "punix:/var/run/openvswitch/br-ex.mgmt" 2022-07-26T00:51:45.625Z|00036|bridge|INFO|ovs-vswitchd (Open vSwitch) 2.17.3 2022-07-26T00:51:46.048Z|00037|bridge|INFO|bridge br-int: added interface br-int on port 65534 2022-07-26T00:51:46.048Z|00038|bridge|INFO|bridge br-int: using datapath ID 000042cc5a00a8d5 2022-07-26T00:51:46.049Z|00039|connmgr|INFO|br-int: added service controller "punix:/var/run/openvswitch/br-int.mgmt" 2022-07-26T00:51:53.521Z|00040|bridge|INFO|bridge br-int: added interface ovn-hv0-0 on port 1 2022-07-26T00:51:55.536Z|00041|memory|INFO|287196 kB peak resident set size after 10.1 seconds 2022-07-26T00:51:55.536Z|00042|memory|INFO|handlers:48 idl-cells:297 ofconns:3 ports:4 revalidators:13 rules:15 udpif keys:8 2022-07-26T00:51:57.046Z|00043|connmgr|INFO|br-int<->unix#1: 7 flow_mods in the 6 s starting 10 s ago (6 adds, 1 deletes) 2022-07-26T00:51:57.253Z|00044|bridge|INFO|bridge br-ex: added interface patch-hv1_ln-to-br-int on port 2 2022-07-26T00:51:57.253Z|00045|bridge|INFO|bridge br-int: added interface patch-br-int-to-hv1_ln on port 2 2022-07-26T00:51:57.264Z|00046|bridge|INFO|bridge br-int: added interface hv1_host on port 3 2022-07-26T00:51:57.317Z|00047|bridge|INFO|bridge br-int: added interface hv1p1 on port 4 2022-07-26T00:51:57.432Z|00048|bridge|INFO|bridge br-int: added interface hv1p2 on port 5 2022-07-26T00:51:57.533Z|00049|bridge|INFO|bridge br-ex: added interface ext1 on port 3 2022-07-26T00:52:22.500Z|00001|ofproto_dpif_upcall(handler43)|INFO|received packet on unassociated datapath port 4294967295 2022-07-26T00:52:22.504Z|00001|ofproto_dpif_upcall(revalidator50)|WARN|Failed to acquire udpif_key corresponding to unexpected flow (Invalid argument): ufid:ebbd34f6-5d0f-4d9d-8970-21575cc1e003 This bug did not meet the criteria for automatic migration and is being closed. If the issue remains, please open a new ticket in https://issues.redhat.com/browse/FDP |
Description of problem: ofproto_dpif_upcall(revalidator50)|WARN|Failed to acquire udpif_key corresponding to unexpected flow (Invalid argument) Version-Release number of selected component (if applicable): openvswitch2.17-2.17.0-34.el8fdp.x86_64 How reproducible: Always Steps to Reproduce: 1. setup ovn on server nic_test=ens1f0 systemctl start openvswitch ovs-vsctl --if-exists del-br br-ex ovs-vsctl add-br br-ex ovs-vsctl set open . external_ids:ovn-bridge-mappings=provider:br-ex ip link set br-ex up ip addr flush dev $nic_test ovs-vsctl add-port br-ex $nic_test ip link set $nic_test up systemctl restart openvswitch ip add add 20.0.182.25/24 dev br-ex ip link set br-ex up systemctl start ovn-northd ovn-nbctl set-connection ptcp:6641 ovn-sbctl set-connection ptcp:6642 ovs-vsctl set open . external_ids:system-id=hv1 external_ids:ovn-remote=tcp:20.0.182.25:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=20.0.182.25 systemctl restart ovn-controller 2. setup ovn on client nic_test=ens1f0 systemctl start openvswitch ovs-vsctl --if-exists del-br br-ex ovs-vsctl add-br br-ex ovs-vsctl set open . external_ids:ovn-bridge-mappings=provider:br-ex ip link set br-ex up ip addr flush dev $nic_test ovs-vsctl add-port br-ex $nic_test ip link set $nic_test up systemctl restart openvswitch ip add add 20.0.182.26/24 dev br-ex ip link set br-ex up ovs-vsctl set open . external_ids:system-id=hv0 external_ids:ovn-remote=tcp:20.0.182.25:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=20.0.182.26 systemctl restart ovn-controller 3. configure ovn and start netns on server mac_prefix=0a:0a:b6:fc: ip_subnet=182 hv0_host_mac="00:00:00:00:00:10" hv0_host_ip4="10.244.1.10" hv0_host_ip6="fd00:10:244:1::10" hv0p1_mac="00:00:00:00:00:11" hv0p1_ip4="10.244.1.11" hv0p1_ip6="fd00:10:244:1::11" hv0p2_mac="00:00:00:00:00:12" hv0p2_ip4="10.244.1.12" hv0p2_ip6="fd00:10:244:1::12" hv1_host_mac="00:00:00:00:01:10" hv1_host_ip4="10.244.2.10" hv1_host_ip6="fd00:10:244:2::10" hv1p1_mac="00:00:00:00:01:11" hv1p1_ip4="10.244.2.11" hv1p1_ip6="fd00:10:244:2::11" hv1p2_mac="00:00:00:00:01:12" hv1p2_ip4="10.244.2.12" hv1p2_ip6="fd00:10:244:2::12" hv0tor_mac="00:00:00:0f:00:01" hv0tor_ip4="10.244.1.1" hv0tor_ip6="fd00:10:244:1::1" hv1tor_mac="00:00:00:0f:01:01" hv1tor_ip4="10.244.2.1" hv1tor_ip6="fd00:10:244:2::1" cluster_router_toj_mac="00:00:00:0f:02:01" cluster_router_toj_ip4="100.64.0.1" cluster_router_toj_ip6="fd98::1" gr_hv0_toj_mac="00:00:00:0f:02:02" gr_hv0_toj_ip4="100.64.0.2" gr_hv0_toj_ip6="fd98::2" gr_hv0_toex_mac="${mac_prefix}03:11" gr_hv0_toex_ip4="10.89.$ip_subnet.11" gr_hv0_toex_ip6="fc00:$ip_subnet::11" gr_hv1_toj_mac="00:00:00:0f:02:03" gr_hv1_toj_ip4="100.64.0.3" gr_hv1_toj_ip6="fd98::3" gr_hv1_toex_mac="${mac_prefix}03:12" gr_hv1_toex_ip4="10.89.$ip_subnet.12" gr_hv1_toex_ip6="fc00:$ip_subnet::12" ext1_mac="${mac_prefix}03:01" ext1_ip4="10.89.$ip_subnet.1" ext1_ip6="fc00:$ip_subnet::1" ext2_mac="${mac_prefix}03:02" ext2_ip4="10.89.$ip_subnet.2" ext2_ip6="fc00:$ip_subnet::2" client1=wsfd-advnetlab17.anl.lab.eng.bos.redhat.com hv1_system_id=$(ovn-sbctl find chassis hostname=$(hostname) | awk '/^name/{print $3}' | sed 's/"//g') hv0_system_id=$(ovn-sbctl find chassis hostname=$client1 | awk '/^name/{print $3}' | sed 's/"//g') ovn-nbctl ls-add ls-hv0 \ -- lsp-add ls-hv0 hv0-host \ -- lsp-set-addresses hv0-host "$hv0_host_mac $hv0_host_ip4 $hv0_host_ip6" \ -- lsp-set-port-security hv0-host "$hv0_host_mac $hv0_host_ip4 $hv0_host_ip6" \ -- lsp-add ls-hv0 hv0p1 \ -- lsp-set-addresses hv0p1 "$hv0p1_mac $hv0p1_ip4 $hv0p1_ip6" \ -- lsp-set-port-security hv0p1 "$hv0p1_mac $hv0p1_ip4 $hv0p1_ip6" \ -- lsp-add ls-hv0 hv0p2 \ -- lsp-set-addresses hv0p2 "$hv0p2_mac $hv0p2_ip4 $hv0p2_ip6" \ -- lsp-set-port-security hv0p2 "$hv0p2_mac $hv0p2_ip4 $hv0p2_ip6" \ -- lsp-add ls-hv0 hv0tor \ -- lsp-set-type hv0tor router \ -- lsp-set-options hv0tor router-port=rtohv0 \ -- lsp-set-addresses hv0tor router ovn-nbctl ls-add ls-hv1 \ -- lsp-add ls-hv1 hv1-host \ -- lsp-set-addresses hv1-host "$hv1_host_mac $hv1_host_ip4 $hv1_host_ip6" \ -- lsp-set-port-security hv1-host "$hv1_host_mac $hv1_host_ip4 $hv1_host_ip6" \ -- lsp-add ls-hv1 hv1p1 \ -- lsp-set-addresses hv1p1 "$hv1p1_mac $hv1p1_ip4 $hv1p1_ip6" \ -- lsp-set-port-security hv1p1 "$hv1p1_mac $hv1p1_ip4 $hv1p1_ip6" \ -- lsp-add ls-hv1 hv1p2 \ -- lsp-set-addresses hv1p2 "$hv1p2_mac $hv1p2_ip4 $hv1p2_ip6" \ -- lsp-set-port-security hv1p2 "$hv1p2_mac $hv1p2_ip4 $hv1p2_ip6" \ -- lsp-add ls-hv1 hv1tor \ -- lsp-set-type hv1tor router \ -- lsp-set-options hv1tor router-port=rtohv1 \ -- lsp-set-addresses hv1tor router ovn-nbctl lr-add ovn_cluster_router \ -- lrp-add ovn_cluster_router rtohv0 $hv0tor_mac $hv0tor_ip4/24 $hv0tor_ip6/64 \ -- lrp-add ovn_cluster_router rtohv1 $hv1tor_mac $hv1tor_ip4/24 $hv1tor_ip6/64 \ -- lrp-add ovn_cluster_router cluster_router_toj $cluster_router_toj_mac $cluster_router_toj_ip4/16 $cluster_router_toj_ip6/64 \ -- lrp-set-gateway-chassis rtohv0 $hv0_system_id 10 \ -- lrp-set-gateway-chassis rtohv1 $hv1_system_id 10 \ -- --policy=src-ip lr-route-add ovn_cluster_router 10.244.1.0/24 $gr_hv0_toj_ip4 \ -- --policy=src-ip lr-route-add ovn_cluster_router fd00:10:244:1::/64 $gr_hv0_toj_ip6 \ -- --policy=src-ip lr-route-add ovn_cluster_router 10.244.2.0/24 $gr_hv1_toj_ip4 \ -- --policy=src-ip lr-route-add ovn_cluster_router fd00:10:244:2::/64 $gr_hv1_toj_ip6 ovn-nbctl ls-add join \ -- lsp-add join jto_cluster_router \ -- lsp-set-type jto_cluster_router router \ -- lsp-set-options jto_cluster_router router-port=cluster_router_toj \ -- lsp-set-addresses jto_cluster_router router \ -- lsp-add join jto_gr_hv0 \ -- lsp-set-type jto_gr_hv0 router \ -- lsp-set-options jto_gr_hv0 router-port=gr_hv0_toj \ -- lsp-set-addresses jto_gr_hv0 router \ -- lsp-add join jto_gr_hv1 \ -- lsp-set-type jto_gr_hv1 router \ -- lsp-set-options jto_gr_hv1 router-port=gr_hv1_toj \ -- lsp-set-addresses jto_gr_hv1 router ovn-nbctl lr-add GR-hv0 \ -- lrp-add GR-hv0 gr_hv0_toj $gr_hv0_toj_mac $gr_hv0_toj_ip4/16 $gr_hv0_toj_ip6/64 \ -- lrp-add GR-hv0 gr_hv0_toex $gr_hv0_toex_mac $gr_hv0_toex_ip4/24 $gr_hv0_toex_ip6/64 \ -- set logical_router GR-hv0 options:chassis=$hv0_system_id \ -- lr-route-add GR-hv0 10.244.0.0/16 $cluster_router_toj_ip4 \ -- lr-route-add GR-hv0 fd00:10:244::/48 $cluster_router_toj_ip6 \ -- lr-nat-add GR-hv0 snat $gr_hv0_toex_ip4 10.244.0.0/16 \ -- lr-nat-add GR-hv0 snat $gr_hv0_toex_ip6 fd00:10:244::/48 ovn-nbctl lr-add GR-hv1 \ -- lrp-add GR-hv1 gr_hv1_toj $gr_hv1_toj_mac $gr_hv1_toj_ip4/16 $gr_hv1_toj_ip6/64 \ -- lrp-add GR-hv1 gr_hv1_toex $gr_hv1_toex_mac $gr_hv1_toex_ip4/24 $gr_hv1_toex_ip6/64 \ -- set logical_router GR-hv1 options:chassis=$hv1_system_id \ -- lr-route-add GR-hv1 10.244.0.0/16 $cluster_router_toj_ip4 \ -- lr-route-add GR-hv1 fd00:10:244::/48 $cluster_router_toj_ip6 \ -- lr-nat-add GR-hv1 snat $gr_hv1_toex_ip4 10.244.0.0/16 \ -- lr-nat-add GR-hv1 snat $gr_hv1_toex_ip6 fd00:10:244::/48 ovn-nbctl ls-add ext-hv0 \ -- lsp-add ext-hv0 exto_gr_hv0 \ -- lsp-set-type exto_gr_hv0 router \ -- lsp-set-options exto_gr_hv0 router-port=gr_hv0_toex \ -- lsp-set-addresses exto_gr_hv0 router \ -- lsp-add ext-hv0 hv0_ln \ -- lsp-set-type hv0_ln localnet \ -- lsp-set-options hv0_ln network_name=provider \ -- lsp-set-addresses hv0_ln unknown ovn-nbctl ls-add ext-hv1 \ -- lsp-add ext-hv1 exto_gr_hv1 \ -- lsp-set-type exto_gr_hv1 router \ -- lsp-set-options exto_gr_hv1 router-port=gr_hv1_toex \ -- lsp-set-addresses exto_gr_hv1 router \ -- lsp-add ext-hv1 hv1_ln \ -- lsp-set-type hv1_ln localnet \ -- lsp-set-options hv1_ln network_name=provider \ -- lsp-set-addresses hv1_ln unknown ovn-nbctl set logical_router GR-hv0 options:lb_force_snat_ip=router_ip \ -- set logical_router GR-hv0 options:snat-ct-zone=0 \ -- set logical_router GR-hv0 options:dynamic_neigh_routers=true \ -- set logical_router GR-hv1 options:lb_force_snat_ip=router_ip \ -- set logical_router GR-hv1 options:snat-ct-zone=0 \ -- set logical_router GR-hv1 options:dynamic_neigh_routers=true # create_netns $netns_name # create a netns with specified name, then set lo up create_netns() { [ -z "$1" ] && { echo "$0 ns_name, no name is specified"; return 1; } local ns_name=$1 ip netns del $ns_name ip netns add $ns_name ip netns exec $ns_name ip link set lo up return 0 } # netns_attach_if $ns_name $if_name $mac $ip4 $ip6 $ip4_route $ip6_route # attach specified if into specified netns, and set specified address for the if(mac, ip, etc.) netns_attach_if() { [ $# -lt 2 ] && { echo "usage:$0 ns_name if_name [mac] [ip4] [ip6] [ip4_route] [ip6_route]"; return 1; } local ns_name=$1 local if_name=$2 ip netns exec $ns_name ip link show &> /dev/null || { echo "$ns_name doesn't exist"; return 2; } ip link set $if_name netns $ns_name || { echo "fail to attach"; return 3; } [ -n "$3" ] && ip netns exec $ns_name ip link set $if_name address $3 [ -n "$4" ] && ip netns exec $ns_name ip addr add $4 dev $if_name [ -n "$5" ] && ip netns exec $ns_name ip addr add $5 dev $if_name ip netns exec $ns_name ip link set $if_name up [ -n "$6" ] && ip netns exec $ns_name ip route add default via $6 [ -n "$7" ] && ip netns exec $ns_name ip -6 route add default via $7 return 0 } # hv1-host ovs-vsctl add-port br-int hv1_host -- set interface hv1_host type=internal external_ids:iface-id=hv1-host ip link set hv1_host address $hv1_host_mac ip link set hv1_host up ip addr add $hv1_host_ip4/24 dev hv1_host ip addr add $hv1_host_ip6/64 dev hv1_host ip route add 10.244.0.0/16 via $hv1tor_ip4 dev hv1_host ip -6 route add fd00:10:244::/48 via $hv1tor_ip6 dev hv1_host ncat -k -l 58111 & # hv1p1 ovs-vsctl add-port br-int hv1p1 -- set interface hv1p1 type=internal external_ids:iface-id=hv1p1 create_netns hv1p1 netns_attach_if hv1p1 hv1p1 $hv1p1_mac $hv1p1_ip4/24 $hv1p1_ip6/64 $hv1tor_ip4 $hv1tor_ip6 ip netns exec hv1p1 ncat -k -l 58111 & # hv1p2 ovs-vsctl add-port br-int hv1p2 -- set interface hv1p2 type=internal external_ids:iface-id=hv1p2 create_netns hv1p2 netns_attach_if hv1p2 hv1p2 $hv1p2_mac $hv1p2_ip4/24 $hv1p2_ip6/64 $hv1tor_ip4 $hv1tor_ip6 ip netns exec hv1p2 ncat -k -l 58111 & # ext1 ovs-vsctl add-port br-ex ext1 -- set interface ext1 type=internal create_netns ext1 netns_attach_if ext1 ext1 $ext1_mac $ext1_ip4/24 $ext1_ip6/64 ip netns exec ext1 sysctl -w net.ipv4.conf.all.rp_filter=0 ip netns exec ext1 sysctl -w net.ipv4.conf.all.forwarding=1 ip netns exec ext1 sysctl -w net.ipv6.conf.all.forwarding=1 ip netns exec ext1 ncat -k -l 58111 & 4. create netns on client mac_prefix=0a:0a:b6:fc: ip_subnet=182 hv0_host_mac="00:00:00:00:00:10" hv0_host_ip4="10.244.1.10" hv0_host_ip6="fd00:10:244:1::10" hv0p1_mac="00:00:00:00:00:11" hv0p1_ip4="10.244.1.11" hv0p1_ip6="fd00:10:244:1::11" hv0p2_mac="00:00:00:00:00:12" hv0p2_ip4="10.244.1.12" hv0p2_ip6="fd00:10:244:1::12" hv1_host_mac="00:00:00:00:01:10" hv1_host_ip4="10.244.2.10" hv1_host_ip6="fd00:10:244:2::10" hv1p1_mac="00:00:00:00:01:11" hv1p1_ip4="10.244.2.11" hv1p1_ip6="fd00:10:244:2::11" hv1p2_mac="00:00:00:00:01:12" hv1p2_ip4="10.244.2.12" hv1p2_ip6="fd00:10:244:2::12" hv0tor_mac="00:00:00:0f:00:01" hv0tor_ip4="10.244.1.1" hv0tor_ip6="fd00:10:244:1::1" hv1tor_mac="00:00:00:0f:01:01" hv1tor_ip4="10.244.2.1" hv1tor_ip6="fd00:10:244:2::1" cluster_router_toj_mac="00:00:00:0f:02:01" cluster_router_toj_ip4="100.64.0.1" cluster_router_toj_ip6="fd98::1" gr_hv0_toj_mac="00:00:00:0f:02:02" gr_hv0_toj_ip4="100.64.0.2" gr_hv0_toj_ip6="fd98::2" gr_hv0_toex_mac="${mac_prefix}03:11" gr_hv0_toex_ip4="10.89.$ip_subnet.11" gr_hv0_toex_ip6="fc00:$ip_subnet::11" gr_hv1_toj_mac="00:00:00:0f:02:03" gr_hv1_toj_ip4="100.64.0.3" gr_hv1_toj_ip6="fd98::3" gr_hv1_toex_mac="${mac_prefix}03:12" gr_hv1_toex_ip4="10.89.$ip_subnet.12" gr_hv1_toex_ip6="fc00:$ip_subnet::12" ext1_mac="${mac_prefix}03:01" ext1_ip4="10.89.$ip_subnet.1" ext1_ip6="fc00:$ip_subnet::1" ext2_mac="${mac_prefix}03:02" ext2_ip4="10.89.$ip_subnet.2" ext2_ip6="fc00:$ip_subnet::2" # create_netns $netns_name # create a netns with specified name, then set lo up create_netns() { [ -z "$1" ] && { echo "$0 ns_name, no name is specified"; return 1; } local ns_name=$1 ip netns del $ns_name ip netns add $ns_name ip netns exec $ns_name ip link set lo up return 0 } # netns_attach_if $ns_name $if_name $mac $ip4 $ip6 $ip4_route $ip6_route # attach specified if into specified netns, and set specified address for the if(mac, ip, etc.) netns_attach_if() { [ $# -lt 2 ] && { echo "usage:$0 ns_name if_name [mac] [ip4] [ip6] [ip4_route] [ip6_route]"; return 1; } local ns_name=$1 local if_name=$2 ip netns exec $ns_name ip link show &> /dev/null || { echo "$ns_name doesn't exist"; return 2; } ip link set $if_name netns $ns_name || { echo "fail to attach"; return 3; } [ -n "$3" ] && ip netns exec $ns_name ip link set $if_name address $3 [ -n "$4" ] && ip netns exec $ns_name ip addr add $4 dev $if_name [ -n "$5" ] && ip netns exec $ns_name ip addr add $5 dev $if_name ip netns exec $ns_name ip link set $if_name up [ -n "$6" ] && ip netns exec $ns_name ip route add default via $6 [ -n "$7" ] && ip netns exec $ns_name ip -6 route add default via $7 return 0 } # hv0-host ovs-vsctl add-port br-int hv0_host -- set interface hv0_host type=internal external_ids:iface-id=hv0-host ip link set hv0_host address $hv0_host_mac ip link set hv0_host up ip addr add $hv0_host_ip4/24 dev hv0_host ip addr add $hv0_host_ip6/24 dev hv0_host ip route add 10.244.0.0/16 via $hv0tor_ip4 dev hv0_host ip -6 route add fd00:10:244::/48 via $hv0tor_ip6 dev hv0_host ncat -k -l 58111 & # hv0p1 ovs-vsctl add-port br-int hv0p1 -- set interface hv0p1 type=internal external_ids:iface-id=hv0p1 create_netns hv0p1 netns_attach_if hv0p1 hv0p1 $hv0p1_mac $hv0p1_ip4/24 $hv0p1_ip6/64 $hv0tor_ip4 $hv0tor_ip6 ip netns exec hv0p1 ncat -k -l 58111 & # hv0p2 ovs-vsctl add-port br-int hv0p2 -- set interface hv0p2 type=internal external_ids:iface-id=hv0p2 create_netns hv0p2 netns_attach_if hv0p2 hv0p2 $hv0p2_mac $hv0p2_ip4/24 $hv0p2_ip6/64 $hv0tor_ip4 $hv0tor_ip6 ip netns exec hv0p2 ncat -k -l 58111 & # ext2 ovs-vsctl add-port br-ex ext2 -- set interface ext2 type=internal create_netns ext2 netns_attach_if ext2 ext2 $ext2_mac $ext2_ip4/24 $ext2_ip6/64 ip netns exec ext2 sysctl -w net.ipv4.conf.all.rp_filter=0 ip netns exec ext2 sysctl -w net.ipv4.conf.all.forwarding=1 ip netns exec ext2 sysctl -w net.ipv6.conf.all.forwarding=1 ip netns exec ext2 ncat -k -l 58111 & 5. run ip netns exec hv1p1 ping 10.89.182.1 -c 1 -w 2 -W2 Actual results: warn in /var/log/openvswitch/ovs-vswitchd.log: 2022-07-22T02:51:59.232Z|00001|ofproto_dpif_upcall(revalidator62)|WARN|Failed to acquire udpif_key corresponding to unexpected flow (Invalid argument): ufid:e8c8bce8-9840-4dd5-b190-739205fb843b Expected results: no warn Additional info: [root@wsfd-advnetlab16 test]# rpm -qa | grep -E "openvswitch2.17|ovn22.06" python3-openvswitch2.17-2.17.0-34.el8fdp.x86_64 ovn22.06-host-22.06.0-21.el8fdp.x86_64 ovn22.06-22.06.0-21.el8fdp.x86_64 openvswitch2.17-2.17.0-34.el8fdp.x86_64 ovn22.06-central-22.06.0-21.el8fdp.x86_64