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

[whereabouts] No resources found for overlappingrangeipreservations.whereabouts.cni.cncf.io when set "enable_overlapping_ranges": false

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • 4.16
    • Networking / multus
    • None
    • Moderate
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      No resources found for overlappingrangeipreservations.whereabouts.cni.cncf.io when set "enable_overlapping_ranges": false
      

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

      4.16.0-0.nightly-2024-03-13-061822    

      How reproducible:

      Always

      Steps to Reproduce:

      $ oc get clusterversionNAME      VERSION                              AVAILABLE   PROGRESSING   SINCE   STATUSversion   4.16.0-0.nightly-2024-03-13-061822   True        False         5h28m   Cluster version is 4.16.0-0.nightly-2024-03-13-061822$ oc projectUsing project "test" on server "https://api.weliang-3193.qe.devcluster.openshift.com:6443".
      ## Set "enable_overlapping_ranges": true$ oc create -f ip-overlapping-true-net-NAD1.yamlnetworkattachmentdefinition.k8s.cni.cncf.io/ip-overlapping-true-1 created$ oc get net-attach-def ip-overlapping-true-1 -o yamlapiVersion: k8s.cni.cncf.io/v1kind: NetworkAttachmentDefinitionmetadata:  creationTimestamp: "2024-03-19T20:18:02Z"  generation: 1  name: ip-overlapping-true-1  namespace: test  resourceVersion: "139559"  uid: 95fd5056-e432-4b06-9cc1-bcf5c54134dcspec:  config: '{ "cniVersion": "0.3.1", "name": "ip-overlapping-true-1", "type": "macvlan",    "mode": "bridge", "ipam": { "type": "whereabouts", "range": "192.168.20.0/29",    "enable_overlapping_ranges": true, "network_name": "ip-overlapping-true-1" } }'$ $ oc create -f ip-overlapping-true-net-POD1.yamldeployment.apps/ip-overlapping-true-net-pod1 created$ oc get podNAME                                            READY   STATUS    RESTARTS   AGEip-overlapping-true-net-pod1-64f86c48d5-6w27c   1/1     Running   0          9sip-overlapping-true-net-pod1-64f86c48d5-cm9vh   1/1     Running   0          9sip-overlapping-true-net-pod1-64f86c48d5-d9qbz   1/1     Running   0          9sip-overlapping-true-net-pod1-64f86c48d5-fvkgg   1/1     Running   0          9sip-overlapping-true-net-pod1-64f86c48d5-pqlxg   1/1     Running   0          9sip-overlapping-true-net-pod1-64f86c48d5-rd2vr   1/1     Running   0          9s$ oc get overlappingrangeipreservations.whereabouts.cni.cncf.io -ANAMESPACE          NAME                                 AGEopenshift-multus   ip-overlapping-true-1-192.168.20.1   22sopenshift-multus   ip-overlapping-true-1-192.168.20.2   22sopenshift-multus   ip-overlapping-true-1-192.168.20.3   21sopenshift-multus   ip-overlapping-true-1-192.168.20.4   21sopenshift-multus   ip-overlapping-true-1-192.168.20.5   21sopenshift-multus   ip-overlapping-true-1-192.168.20.6   21s$ oc get ippools --all-namespacesNAMESPACE          NAME                                     AGEopenshift-multus   ip-overlapping-true-1-192.168.20.0-29    25s
      
      ## Set "enable_overlapping_ranges": false$ oc create -f ip-overlapping-false-net-NAD1.yamlnetworkattachmentdefinition.k8s.cni.cncf.io/ip-overlapping-false-1 created$ oc get net-attach-def ip-overlapping-false-1 -o yamlapiVersion: k8s.cni.cncf.io/v1kind: NetworkAttachmentDefinitionmetadata:  creationTimestamp: "2024-03-19T20:21:41Z"  generation: 1  name: ip-overlapping-false-1  namespace: test  resourceVersion: "140765"  uid: c56db427-5bbc-4f92-a2e7-70ff4b863a3dspec:  config: '{ "cniVersion": "0.3.1", "name": "ip-overlapping-false-1", "type": "macvlan",    "mode": "bridge", "ipam": { "type": "whereabouts", "range": "192.168.20.0/29",    "enable_overlapping_ranges": false, "network_name": "ip-overlapping-false-1" }    }'$ oc create -f ip-overlapping-false-net-POD1.yamldeployment.apps/ip-overlapping-false-net-pod1 created$ oc get podNAME                                             READY   STATUS    RESTARTS   AGEip-overlapping-false-net-pod1-84d7895c87-jcgj8   1/1     Running   0          6sip-overlapping-false-net-pod1-84d7895c87-jskjv   1/1     Running   0          6sip-overlapping-false-net-pod1-84d7895c87-nkc64   1/1     Running   0          6sip-overlapping-false-net-pod1-84d7895c87-pqzxm   1/1     Running   0          6sip-overlapping-false-net-pod1-84d7895c87-rdjfb   1/1     Running   0          6sip-overlapping-false-net-pod1-84d7895c87-sbjcv   1/1     Running   0          6s$ oc get overlappingrangeipreservations.whereabouts.cni.cncf.io -ANo resources found$ oc get ippools --all-namespacesNAMESPACE          NAME                                     AGEopenshift-multus   ip-overlapping-false-1-192.168.20.0-29   

      Actual results:

      $ oc get overlappingrangeipreservations.whereabouts.cni.cncf.io -ANo resources found  

      Expected results:

      Show the resources  

      Additional info:

          

      Attachments

        Activity

          People

            dosmith Douglas Smith
            weliang1@redhat.com Weibin Liang
            Weibin Liang Weibin Liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: