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

ip-reconciler removes the overlappingrangeipreservations whether the pod is alive or not [backport 4.12]

XMLWordPrintable

    • Important
    • Rejected
    • False
    • Hide

      We believe this is an existing bug in prior versions.

      Show
      We believe this is an existing bug in prior versions.

      Description of problem:

      The reconciler removes the overlappingrangeipreservations.whereabouts.cni.cncf.io resources whether the pod is alive or not. 

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

       

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create pods and check the overlappingrangeipreservations.whereabouts.cni.cncf.io resources:

      $ oc get overlappingrangeipreservations.whereabouts.cni.cncf.io -A
      NAMESPACE          NAME                      AGE
      openshift-multus   2001-1b70-820d-4b04--13   4m53s
      openshift-multus   2001-1b70-820d-4b05--13   4m49s

      2.  Verify that when the ip-reconciler cronjob removes the overlappingrangeipreservations.whereabouts.cni.cncf.io resources when run:

      $ oc get cronjob -n openshift-multus
      NAME            SCHEDULE       SUSPEND   ACTIVE   LAST SCHEDULE   AGE
      ip-reconciler   */15 * * * *   False     0        14m             4d13h
      
      $ oc get overlappingrangeipreservations.whereabouts.cni.cncf.io -A
      No resources found
      
      $ oc get cronjob -n openshift-multus
      NAME            SCHEDULE       SUSPEND   ACTIVE   LAST SCHEDULE   AGE
      ip-reconciler   */15 * * * *   False     0        5s              4d13h

       

      Actual results:

      The overlappingrangeipreservations.whereabouts.cni.cncf.io resources are removed for each created pod by the ip-reconciler cronjob.
      The "overlapping ranges" are not used. 

      Expected results:

      The overlappingrangeipreservations.whereabouts.cni.cncf.io should not be removed regardless of if a pod has used an IP in the overlapping ranges.

      Additional info:

       

            nsimha@redhat.com Nikhil Simha (Inactive)
            rhn-support-ugiordan Ugo Giordano
            Weibin Liang Weibin Liang
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: