Uploaded image for project: 'Fast Datapath Product'
  1. Fast Datapath Product
  2. FDP-2220

set dynamic-routing-redistribute as fdb,ip for logical switch doesn't work

    • Icon: Epic Epic
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • OVN
    • None
    • set dynamic-routing-redistribute as fdb,ip for logical switch doesn't work
    • 5
    • False
    • False
    • Hide

      Please mark each item below with ( / ) if completed or ( x ) if incomplete:

      ( ) The acceptance criteria defined below are met.

      Given an OVN logical switch configured with dynamic-routing-redistribute set to "fdb,ip",
      When EVPN routes are redistributed to the VTEP bridge,
      Then both FDB entries and IP neighbor entries appear in the kernel neighbor table.


      ( ) The epics work is available in a downstream build (nightly/Async or other)


      ( ) All cards under the epic have been moved to Done

      Show
      Please mark each item below with ( / ) if completed or ( x ) if incomplete: ( ) The acceptance criteria defined below are met. Given an OVN logical switch configured with dynamic-routing-redistribute set to "fdb,ip", When EVPN routes are redistributed to the VTEP bridge, Then both FDB entries and IP neighbor entries appear in the kernel neighbor table. ( ) The epics work is available in a downstream build (nightly/Async or other) ( ) All cards under the epic have been moved to Done
    • In Progress
    • rhel-9
    • rhel-net-ovn
    • 67% To Do, 0% In Progress, 33% Done
    • ssg_networking

      This epic tracks all the effort needed to deliver the solution related to the bug described below.

       Problem Description: Clearly explain the issue.

      set dynamic-routing-redistribute as fdb,ip for logical switch, then neither ip nor fdb would be advertised

       Impact Assessment: Describe the severity and impact (e.g., network down,availability of a workaround, etc.).

      network down

       Software Versions: Specify the exact versions in use (e.g.,openvswitch3.1-3.1.0-147.el8fdp).

      ovn26.03-26.03.0-alpha.134.el9fdp.x86_64

        Issue Type: Indicate whether this is a new issue or a regression (if a regression, state the last known working version).

       

       Reproducibility: Confirm if the issue can be reproduced consistently. If not, describe how often it occurs.

      Always

       Reproduction Steps: Provide detailed steps or scripts to replicate the issue.

      systemctl start openvswitch                                                                                                                                                                                 
      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:127.0.0.1:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=127.0.0.1 external-ids:ovn-evpn-local-ip=20.0.86.25 external-ids:ovn-evpn-vxlan-ports=4789                                                                
      systemctl restart ovn-controller
      ovs-vsctl --if-exists del-br br-nat
      ovs-vsctl add-br br-nat
      ovs-vsctl set open . external_ids:ovn-bridge-mappings=phy:br-nat
      ip link set br-nat up
      #ovs-vsctl add-port br-nat ens1f1np1
      #ip link set ens1f1np1 up
      ovn-nbctl lr-add lr-tenant\
      	-- lrp-add lr-tenant lr-tenant-public 00:00:00:00:00:42 20.0.0.42/8 2002::42/64
      ovn-nbctl ls-add public\
      	-- lr-add lr-bgp\
      	-- set logical_router lr-bgp options:chassis=hv1
      ovn-nbctl\
      	-- lrp-add lr-bgp lr-bgp-pub 00:00:00:00:00:03 20.0.0.2/8 2002::2/64\
      	-- lsp-add public pub-lr-bgp\
      	-- set logical_switch_port pub-lr-bgp type=router\
      	options:router-port=lr-bgp-pub\
      	-- lsp-set-addresses pub-lr-bgp router\
      	-- lsp-add public pub-lr-tenant\
      	-- set logical_switch_port pub-lr-tenant type=router\
      	options:router-port=lr-tenant-public\
      	-- lsp-add public pub-ln\
      	-- lsp-set-type pub-ln localnet\
      	-- lsp-set-addresses pub-ln unknown\
      	-- lsp-set-options pub-ln network_name=phy
      ip link del vrf101
      ip link add vrf101 type vrf table 101
      ip link set vrf101 up
      ovn-nbctl lsp-add public ls1p1\
      	-- lsp-set-addresses ls1p1 "00:00:00:00:01:01 20.0.0.1 2002::1"\
      	-- lsp-add public ls1p2\
      	-- lsp-set-addresses ls1p2 "00:00:00:00:01:02 20.0.0.2 2002::2"
      ovn-nbctl lr-add lr2\
      	-- lrp-add lr2 lr2-pub 00:00:00:00:00:52 20.2.0.52/8 2202::52/64
      ovn-nbctl ls-add public2\
      	-- lsp-add public2 pub2-lr2\
      	-- set logical_switch_port pub2-lr2 type=router\
      	options:router-port=lr2-pub\
      	-- lrp-add lr-bgp lr-bgp-pub2 00:00:00:ff:00:02\
      	-- lsp-add public2 pub2-bgp\
      	-- set logical_switch_port pub2-bgp type=router\
      	options:router-port=lr-bgp-pub2
      ovn-nbctl lsp-add public2 ls2p1\
      	-- lsp-set-addresses ls2p1 "00:00:00:00:02:01 20.2.0.1 2202::1"\
      	-- lsp-add public2 ls2p2\
      	-- lsp-set-addresses ls2p2 "00:00:00:00:02:02 20.2.0.2 2202::2"
      ip link add br-101 type bridge
      ip link set br-101 master vrf101 addrgenmode none
      ip link set br-101 up
      ip link add vxlan-101 type vxlan id 101 dstport 60011 local 20.0.86.25 nolearning
      ip link set dev vxlan-101 up
      ip link set vxlan-101 master br-101
      ip link add name lo-101 type dummy
      ip link set lo-101 master br-101
      ip link set lo-101 up
      ip link del vrf102
      ip link add vrf102 type vrf table 102
      ip link set vrf102 up
      ip link del br-102
      ip link add br-102 type bridge
      ip link set br-102 master vrf102 addrgenmode none
      ip link set br-102 up
      ip link add vxlan-102 type vxlan id 102 dstport 60011 local 20.0.86.25 nolearning
      ip link set dev vxlan-102 up
      ip link set vxlan-102 master br-102
      ip link add name lo-102 type dummy
      ip link set lo-102 master br-102
      ip link set lo-102 up
      ovn-nbctl set logical_switch public other_config:dynamic-routing-vni=101\
      	-- set logical_switch public other_config:dynamic-routing-redistribute=fdb\
      	-- set logical_switch public2 other_config:dynamic-routing-vni=102\
      	-- set logical_switch public2 other_config:dynamic-routing-redistribute=fdb
      bridge fdb append 00:00:00:00:00:00 dev vxlan-101 dst 20.0.86.26 static permanent
      bridge fdb add 00:00:ff:ff:01:02 dev vxlan-101 dst 20.0.86.26 static extern_learn
      bridge fdb append 00:00:00:00:00:00 dev vxlan-102 dst 20.0.86.26 static permanent
      bridge fdb add 00:00:ff:ff:02:02 dev vxlan-102 dst 20.0.86.26 static extern_learn
      bridge fdb add 00:00:ff:ff:01:02 dev vxlan-102 dst 20.0.86.26 static extern_learn
      
      ip neigh add dev br-101 20.0.0.150 lladdr f0:00:0f:16:10:50 nud noarp extern_learn
      
      ovs-vsctl add-port br-int ls1p1 -- set interface ls1p1 type=internal external_ids:iface-id=ls1p1
      ip netns add ls1p1
      ip link set ls1p1 netns ls1p1
      ip netns exec ls1p1 ip link set ls1p1 address 00:00:00:00:01:01
      ip netns exec ls1p1 ip link set ls1p1 up
      ip netns exec ls1p1 ip addr add 20.0.0.1/24 dev ls1p1
      ip netns exec ls1p1 ip addr add 2002::1/64 dev ls1p1
      sleep 5
      ovn-appctl evpn/vtep-fdb-list
      ovn-appctl evpn/vtep-arp-list
      tail -n 10 /var/log/ovn/ovn-controller.log
      ovn-nbctl --wait=sb set logical_switch public other_config:dynamic-routing-redistribute=ip
      sleep 2
      ip neigh show dev br-101 nud noarp
      ovn-nbctl --wait=sb set logical_switch public other_config:dynamic-routing-redistribute=fdb,ip
      sleep 2
      ip neigh show dev br-101 nud noarp 

       Expected Behavior: Describe what should happen under normal circumstances.

      both ip and fdb would be advertised

       Observed Behavior: Explain what actually happens.

      neither ip nor fdb is advertised

       Troubleshooting Actions: Outline the steps taken to diagnose or resolve the issue so far.

       

       Logs: If you collected logs please provide them (e.g. sos report, /var/log/openvswitch/* , testpmd console)

       

      + ovn-nbctl --wait=sb set logical_switch public other_config:dynamic-routing-redistribute=ip
      + sleep 2
      + ip neigh show dev br-101 nud noarp
      20.0.0.150 lladdr f0:00:0f:16:10:50 extern_learn NOARP 
      20.0.0.2 lladdr 00:00:00:00:00:03 NOARP 
      20.0.0.1 lladdr 00:00:00:00:01:01 NOARP 
      2002::2 lladdr 00:00:00:00:00:03 NOARP 
      2002::1 lladdr 00:00:00:00:01:01 NOARP 
      + ovn-nbctl --wait=sb set logical_switch public other_config:dynamic-routing-redistribute=fdb,ip
      + sleep 2
      + ip neigh show dev br-101 nud noarp
      20.0.0.150 lladdr f0:00:0f:16:10:50 extern_learn NOARP 
      [root@wsfd-advnetlab18 evpn]# rpm -qa | grep -E "openvswitch|ovn"
      openvswitch-selinux-extra-policy-1.0-39.el9fdp.noarch
      openvswitch3.5-3.5.1-44.el9fdp.x86_64
      python3-openvswitch3.5-3.5.1-44.el9fdp.x86_64
      ovn26.03-26.03.0-alpha.134.el9fdp.x86_64
      ovn26.03-central-26.03.0-alpha.134.el9fdp.x86_64
      ovn26.03-host-26.03.0-alpha.134.el9fdp.x86_64 

              ovnteam@redhat.com OVN Team
              rhn-support-jishi Jianlin Shi
              OVN QE OVN QE
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: