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

overlappingrangeipreservations did not be released when worker reboot

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • 4.15.z, 4.16
    • Networking / multus
    • None
    • Critical
    • Yes
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Create pod with whereabouts net-attach-def. and pod ip is 10.30.1.2. The pod is deleted after worker reboot. However the ip still in overlappingrangeipreservations
      
      # oc get overlappingrangeipreservations -A
      NAMESPACE          NAME        AGE
      openshift-multus   10.30.1.2   17m
      
      
      
      # oc get net-attach-def -n z1 sriovnetwork2 -o yaml
      apiVersion: k8s.cni.cncf.io/v1
      kind: NetworkAttachmentDefinition
      metadata:
        annotations:
          k8s.v1.cni.cncf.io/resourceName: openshift.io/e810c
        creationTimestamp: "2024-06-17T02:16:25Z"
        generation: 1
        name: sriovnetwork2
        namespace: z1
        resourceVersion: "382329"
        uid: 46fe9877-f13f-4619-a118-213b1de644ff
      spec:
        config: |-
          {
              "cniVersion": "1.0.0",
              "name": "sriovnetwork2",
              "plugins": [
                  {
                      "type": "sriov",
                      "vlan": 0,
                      "spoofchk": "off",
                      "trust": "on",
                      "vlanQoS": 0,
                      "capabilities": {
                          "mac": true,
                          "ips": true
                      },
                      "logLevel": "info",
                      "ipam": {
                          "type": "whereabouts",
                          "range": "10.30.1.0/30"
                      }
                  },
                  {
                      "type": "tuning",
                      "sysctl": {
                          "net.ipv4.conf.IFNAME.arp_accept": "0"
                      }
                  }
              ]
          }
      

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

      4.16.0-0.nightly-2024-06-14-130320

      How reproducible:

      always

      Steps to Reproduce:

      1. Create net-attach-def as above description 
      2. Create test pod and ip 10.30.1.2 will be used
      3. Check one ip is reserve in overlappingrangeipreservations
      4. reboot the worker of pod located
      5. Check the pod is deleted.
      6. Check the  overlappingrangeipreservations again. 

      Actual results:

      The deleted ip still be reserved.
      
      # oc get overlappingrangeipreservations -A NAMESPACE          NAME        AGE openshift-multus   10.30.1.2   17m

      Expected results:

      The delete ip should be removed. 

      Additional info:

       

              dosmith Douglas Smith
              zzhao1@redhat.com Zhanqi Zhao
              Weibin Liang Weibin Liang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: