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

CLONE [ovn24.09 fast-datapath-rhel-9] - OVN ends up with an inconsistent SB database when static_mac_binding reference stale ports

XMLWordPrintable

    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Important

      Steps to reproduce:

      • Create a logical router, add a logical router port to it and create a static mac binding referencing that port by name
      • Delete the logical router

      ovn-northd continuously fails to commit to the SB database because it would violate referential integrity.

      E.g., in a sandbox:

      > ovn-nbctl lr-add lr -- lrp-add lr lrp 00:00:00:00:00:01 1.1.1.1/24
      > ovn-nbctl static-mac-binding-add lrp 1.1.1.2 00:00:00:00:00:02
      > ovn-nbctl lr-del lr
      
      > ovn-nbctl -t 5 --wait=sb sync
      2024-07-29T14:09:00Z|00001|fatal_signal|WARN|terminating with signal 14 (Alarm clock)
      Job 1, 'ovn-nbctl -t 5 --wait=sb sync' terminated by signal SIGALRM (Timer expired) 

      Northd logs show the referential integrity violation:

      2024-07-29T14:09:25.064Z|00017|ovsdb_idl|WARN|transaction error: {"details":"cannot delete Datapath_Binding row ba0b001b-7272-4886-ac83-913079c0b171 because of 1 remaining reference(s)","error":"referential integrity violation"}
      2024-07-29T14:09:25.064Z|00018|ovn_northd|INFO|OVNSB commit failed, force recompute next time. 

              roriorde@redhat.com Rosemarie O'Riorden
              ovnteam@redhat.com OVN Team
              Ehsan Elahi Ehsan Elahi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: