Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-7875

OVN: addLogicalPort failed unable to parse node L3 gw annotation: bad 'next-hops' value "<nil>"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • None
    • 4.13
    • None
    • Moderate
    • No
    • SDN Sprint 235, SDN Sprint 236, SDN Sprint 237, SDN Sprint 238, SDN Sprint 239, SDN Sprint 240
    • 6
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Baremetal IPI dual-stack DHCP with bonding.

      Testing NodeIP change due to DHCP lease change and then upgrade.

      Somehow I broke the node and get this error. I don't know where the <nil> came from.

        Warning  ErrorUpdatingResource   15m (x3 over 15m)  controlplane       addLogicalPort failed for openshift-dns/dns-default-qh8bx: unable to parse node L3 gw annotation: failed to unmarshal l3 gateway config annotation {"default":{"mode":"shared","interface-id":"br-ex_master-0-2","mac-address":"52:54:00:be:b0:de","ip-addresses":["192.168.123.143/24","fd2e:6f44:5dd8::4d/64"],"next-hops":["\u003cnil\u003e","fe80::5054:ff:fedf:631e"],"node-port-enable":"true","vlan-id":"0"}} for node "master-0-2": bad 'next-hops' value "<nil>
      
       

      Version-Release number of selected component (if applicable):

      4.13.0-0.nightly-2023-02-21-014524
       

      How reproducible:

      Once

      Steps to Reproduce:

      1. Force NodeIP to change by changing DHCP lease, modify dnsmasq DHCP leases with new IP
      2. Attempt to fix bad lease by removing DHCP address and setting static IP

      ip addr del 192.168.128.144/24 dev br-ex
      ip addr add 192.168.123.143/24 dev br-ex
      

      Actual results:

      DNS pod in CrashLoopBack due to invaild annotation.

        Warning  ErrorUpdatingResource   15m (x3 over 15m)  controlplane       addLogicalPort failed for openshift-dns/dns-default-qh8bx: unable to parse node L3 gw annotation: failed to unmarshal l3 gateway config annotation {"default":{"mode":"shared","interface-id":"br-ex_master-0-2","mac-address":"52:54:00:be:b0:de","ip-addresses":["192.168.123.143/24","fd2e:6f44:5dd8::4d/64"],"next-hops":["\u003cnil\u003e","fe80::5054:ff:fedf:631e"],"node-port-enable":"true","vlan-id":"0"}} for node "master-0-2": bad 'next-hops' value "<nil>
       

      Expected results:

      No invalid JSON in annotation. OVN should fix itself.

      Additional info:

              pdiak@redhat.com Patryk Diak
              rbrattai@redhat.com Ross Brattain
              Ross Brattain Ross Brattain
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: