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

ovn-controller is not always deleting patch ports when localnet port is deleted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • OVN FDP 24.C
    • ovn24.03, ovn24.09
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Moderate

      This issue is seen intermittently and goes away when recompute is triggered.

       

      Steps to reproduce

      ---------------

      ovs-vsctl set Open_vSwitch . external_ids:ovn-bridge-mappings=physnet1:br-eth0
      ovs-vsctl add-br br-eth0
      ovn-nbctl ls-add sw0
      ovn-nbctl lsp-add sw0 sw0p1
      ovn-nbctl --wait=hv sync
      ovn-nbctl lsp-add sw0 ln-sw0
      ovn-nbctl lsp-set-type ln-sw0 localnet
      ovn-nbctl lsp-set-addresses ln-sw0 unknown
      ovn-nbctl --wait=hv lsp-set-options ln-sw0 network_name=physnet1
      ovs-vsctl -- add-port br-int vif1 -- set Interface vif1 external_ids:iface-id=sw0p1
      
      
      ovs-vsctl show
      524c067c-b61a-4704-b32c-d273231e1670
          Bridge br-eth0
              Port patch-ln-sw0-to-br-int
                  Interface patch-ln-sw0-to-br-int
                      type: patch
                      options: {peer=patch-br-int-to-ln-sw0}
              Port br-eth0
                  Interface br-eth0
                      type: internal
          Bridge br-int
              fail_mode: secure
              datapath_type: system
              Port vif1
                  Interface vif1
              Port br-int
                  Interface br-int
                      type: internal
              Port patch-br-int-to-ln-sw0
                  Interface patch-br-int-to-ln-sw0
                      type: patch
                      options: {peer=patch-ln-sw0-to-br-int}
      
      
      

       

       

      Now delete lport - ln-sw0

       

      ovn-nbctl --wait=hv lsp-del ln-sw0
      
      $ ovs-vsctl show
      524c067c-b61a-4704-b32c-d273231e1670
          Bridge br-eth0
              Port patch-ln-sw0-to-br-int
                  Interface patch-ln-sw0-to-br-int
                      type: patch
                      options: {peer=patch-br-int-to-ln-sw0}
              Port br-eth0
                  Interface br-eth0
                      type: internal
          Bridge br-int
              fail_mode: secure
              datapath_type: system
              Port vif1
                  Interface vif1
              Port br-int
                  Interface br-int
                      type: internal
              Port patch-br-int-to-ln-sw0
                  Interface patch-br-int-to-ln-sw0
                      type: patch
                      options: {peer=patch-ln-sw0-to-br-int}
      
      # Trigger recompute 
      
      $ ovn-appctl -t ovn-controller inc-engine/recompute
      $ ovs-vsctl show
      524c067c-b61a-4704-b32c-d273231e1670
          Bridge br-eth0
              Port br-eth0
                  Interface br-eth0
                      type: internal
          Bridge br-int
              fail_mode: secure
              datapath_type: system
              Port vif1
                  Interface vif1
              Port br-int
                  Interface br-int
                      type: internal
       

       

       

      Same issue is seen when the localnet port type is changed instead of deleting it

      ovn-nbctl --wait=hv lsp-set-type ln-sw0 ""

       

              ovnteam@redhat.com OVN Team
              nusiddiq@redhat.com Siddique Numan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: