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

[ovn-northd] Ambiguous "no path" next-hop related warning logs.

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • FDP-25.C
    • None
    • OVN
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • rhel-9
    • None
    • rhel-net-ovn
    • ssg_networking
    • OVN FDP 25.C
    • 1
    • Moderate
    • +

      Consider a topology with multiple logical routers, e.g.:

      ovn-nbctl lr-add lr1
      ovn-nbctl lrp-add lr1 lrp1 00:00:00:00:00:01 1.1.1.1/24
      
      ovn-nbctl lr-add lr2
      ovn-nbctl lrp-add lr2 lrp2 00:00:00:00:00:02 2.2.2.2/24
      

      If the user needs to configure a route to the same prefix on both routers but makes a mistake when specifying the next hop IP the logs ovn-northd generates are ambiguous and not that helpful:

      ovn-nbctl lr-route-add lr1 42.42.42.42/32 1.1.1.1
      ovn-nbctl lr-route-add lr2 42.42.42.42/32 1.1.1.1

      The second route is incorrect because lr2 doesn't have an IP in any subnet that includes 1.1.1.1.  In this case ovn-northd.log contains:

      2024-09-09T15:23:57.149Z|00014|northd|WARN|No path for static route 42.42.42.42; next hop 1.1.1.1

      The log is incomplete because it's not clear to the user if the problem is on lr1 or lr2.

      A similar thing happens when (mis)configuring routing policies:

      ovn-nbctl lr-policy-add lr1 1 "ip" reroute 1.1.1.1
      ovn-nbctl lr-policy-add lr2 1 "ip" reroute 1.1.1.1

      The log is:

      2024-09-09T15:25:35.719Z|00017|northd|WARN|No path for routing policy priority 1; next hop 1.1.1.1

      Ideally the two logs should be changed to include the router name.  That simplifies troubleshooting on the user side.

              roriorde@redhat.com Rosemarie O'Riorden
              dceara@redhat.com Dumitru Ceara
              Ehsan Elahi Ehsan Elahi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: