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

ovn-northd IPAM incorrectly reports duplicate IP when part of excluded_ips

XMLWordPrintable

    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide

      Given an OVN logical switch with a port assigned a static IP and IPAM enabled, where the static IP is included in the exclude_ips list,

      When, the system administrator assigns the IP 10.128.2.2 statically to a port and configures the switch to exclude this IP from IPAM dynamic assignment,

      Then, ovn-northd should exclude the IP 10.128.2.2 from IPAM's dynamic allocation pool without logging any "Duplicate IP" warnings, as this IP is correctly configured and excluded from IPAM.

      Show
      Given an OVN logical switch with a port assigned a static IP and IPAM enabled, where the static IP is included in the exclude_ips list, When, the system administrator assigns the IP 10.128.2.2 statically to a port and configures the switch to exclude this IP from IPAM dynamic assignment, Then, ovn-northd should exclude the IP 10.128.2.2 from IPAM's dynamic allocation pool without logging any "Duplicate IP" warnings, as this IP is correctly configured and excluded from IPAM.
    • rhel-9
    • rhel-sst-network-fastdatapath
    • ssg_networking
    • Low
    • +

      Steps to reproduce the issue, in a sandbox:

      # Add a switch with a port with a static IP address.
      ovn-nbctl ls-add ls
      ovn-nbctl lsp-add ls lsp
      ovn-nbctl lsp-set-addresses lsp "a2:01:ea:3d:df:4a 10.128.2.2"
      # Enable IPAM for the switch but exclude the IP assigned to the existing LSP
      ovn-nbctl set logical_switch ls other_config:exclude_ips="10.128.2.2" other_config:subnet="10.128.2.0/24" 

      ovn-northd should exclude the IP from the ones that can be dynamically assigned through IPAM but shouldn't complain about duplicates (the IP is not really used anywhere else).  In reality, northd logs:

      2024-08-22T19:39:50.071Z|00012|ipam|WARN|b86ed8fe-061a-4366-9982-af84395872ba: Duplicate IP set: 10.128.2.2 

      This has no functional side effects but it does spam the log.

              lorenzobianconi lorenzo bianconi
              dceara@redhat.com Dumitru Ceara
              Ehsan Elahi Ehsan Elahi
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: