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

error IPPools don't release ip address

XMLWordPrintable

    • Critical
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      When attempting to apply an IP address to a secondary interface using Whereabouts the IP address is depleted of ip addresses. 

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

       

      How reproducible:

      Easily

      Steps to Reproduce:

      1. Deploy OCP 4.14
      2. Create multiple containers with additional interfaces and IP allocation using Whereabouts
      3. IP addresses are not released from whereabout ippool. 
      

      Actual results:

      gkopels@gkopels ~ $ oc get ippools.whereabouts.cni.cncf.io -n openshift-multus
      NAME                   AGE
      1.1.1.0-24             20h
      10.255.255.0-24        18h
      192.168.100.0-24       21h
      192.168.100.0-30       14h
      192.168.110.0-24       21h
      192.168.200.0-24       21h
      192.168.210.0-24       21h
      2.2.2.0-24             20h
      2001-100---64          21h
      2001-101---64          21h
      2001-110---64          21h
      2001-1db8-85a3---126   17h
      2001-210---64          21h
      

      Expected results:

      IP addresses will be released from the ippool.

      Additional info:

      NAME            READY   STATUS     RESTARTS   AGE
      testpod-5mj5s   0/1     Init:0/1   0          148m
      testpod-b5k4g   1/1     Running    0          149mEvents:
        Type     Reason                  Age   From               Message
        ----     ------                  ----  ----               -------
        Normal   Scheduled               58s   default-scheduler  Successfully assigned sriov-operator-tests/testpod-jlvnj to worker-0
        Warning  FailedCreatePodSandBox  30s   kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to create pod network sandbox k8s_testpod-jlvnj_sriov-operator-tests_42301d1c-8d3e-4337-b099-5c16e4b0eefc_0(baa48df91e2fbb1544a88cebbb674ae8bf4d01c110314d5430b371d4b92ec6af): error adding pod sriov-operator-tests_testpod-jlvnj to CNI network "multus-cni-network": plugin type="multus-shim" name="multus-cni-network" failed (add): CmdAdd (shim): CNI request failed with status 400: '&{ContainerID:baa48df91e2fbb1544a88cebbb674ae8bf4d01c110314d5430b371d4b92ec6af Netns:/var/run/netns/d3bae72f-bedc-4089-9649-705fb75bbe8c IfName:eth0 Args:IgnoreUnknown=1;K8S_POD_NAMESPACE=sriov-operator-tests;K8S_POD_NAME=testpod-jlvnj;K8S_POD_INFRA_CONTAINER_ID=baa48df91e2fbb1544a88cebbb674ae8bf4d01c110314d5430b371d4b92ec6af;K8S_POD_UID=42301d1c-8d3e-4337-b099-5c16e4b0eefc Path: StdinData:[123 34 98 105 110 68 105 114 34 58 34 47 118 97 114 47 108 105 98 47 99 110 105 47 98 105 110 34 44 34 99 108 117 115 116 101 114 78 101 116 119 111 114 107 34 58 34 47 104 111 115 116 47 114 117 110 47 109 117 108 116 117 115 47 99 110 105 47 110 101 116 46 100 47 49 48 45 111 118 110 45 107 117 98 101 114 110 101 116 101 115 46 99 111 110 102 34 44 34 99 110 105 86 101 114 115 105 111 110 34 58 34 48 46 51 46 49 34 44 34 100 97 101 109 111 110 83 111 99 107 101 116 68 105 114 34 58 34 47 114 117 110 47 109 117 108 116 117 115 47 115 111 99 107 101 116 34 44 34 103 108 111 98 97 108 78 97 109 101 115 112 97 99 101 115 34 58 34 100 101 102 97 117 108 116 44 111 112 101 110 115 104 105 102 116 45 109 117 108 116 117 115 44 111 112 101 110 115 104 105 102 116 45 115 114 105 111 118 45 110 101 116 119 111 114 107 45 111 112 101 114 97 116 111 114 34 44 34 108 111 103 76 101 118 101 108 34 58 34 118 101 114 98 111 115 101 34 44 34 108 111 103 84 111 83 116 100 101 114 114 34 58 116 114 117 101 44 34 110 97 109 101 34 58 34 109 117 108 116 117 115 45 99 110 105 45 110 101 116 119 111 114 107 34 44 34 110 97 109 101 115 112 97 99 101 73 115 111 108 97 116 105 111 110 34 58 116 114 117 101 44 34 114 101 97 100 105 110 101 115 115 105 110 100 105 99 97 116 111 114 102 105 108 101 34 58 34 47 104 111 115 116 47 114 117 110 47 109 117 108 116 117 115 47 99 110 105 47 110 101 116 46 100 47 49 48 45 111 118 110 45 107 117 98 101 114 110 101 116 101 115 46 99 111 110 102 34 44 34 116 121 112 101 34 58 34 109 117 108 116 117 115 45 115 104 105 109 34 44 10 32 32 32 32 34 99 110 105 86 101 114 115 105 111 110 34 58 32 34 48 46 51 46 49 34 44 10 32 32 32 32 34 99 104 114 111 111 116 68 105 114 34 58 32 34 47 104 111 115 116 114 111 111 116 34 44 10 32 32 32 32 34 108 111 103 84 111 83 116 100 101 114 114 34 58 32 116 114 117 101 44 10 32 32 32 32 34 108 111 103 76 101 118 101 108 34 58 32 34 118 101 114 98 111 115 101 34 44 10 32 32 32 32 34 98 105 110 68 105 114 34 58 32 34 47 118 97 114 47 108 105 98 47 99 110 105 47 98 105 110 34 44 10 32 32 32 32 34 99 110 105 67 111 110 102 105 103 68 105 114 34 58 32 34 47 104 111 115 116 47 101 116 99 47 99 110 105 47 110 101 116 46 100 34 44 10 32 32 32 32 34 109 117 108 116 117 115 67 111 110 102 105 103 70 105 108 101 34 58 32 34 97 117 116 111 34 44 10 32 32 32 32 34 109 117 108 116 117 115 65 117 116 111 99 111 110 102 105 103 68 105 114 34 58 32 34 47 104 111 115 116 47 114 117 110 47 109 117 108 116 117 115 47 99 110 105 47 110 101 116 46 100 34 44 10 32 32 32 32 34 110 97 109 101 115 112 97 99 101 73 115 111 108 97 116 105 111 110 34 58 32 116 114 117 101 44 10 32 32 32 32 34 103 108 111 98 97 108 78 97 109 101 115 112 97 99 101 115 34 58 32 34 100 101 102 97 117 108 116 44 111 112 101 110 115 104 105 102 116 45 109 117 108 116 117 115 44 111 112 101 110 115 104 105 102 116 45 115 114 105 111 118 45 110 101 116 119 111 114 107 45 111 112 101 114 97 116 111 114 34 44 10 32 32 32 32 34 114 101 97 100 105 110 101 115 115 105 110 100 105 99 97 116 111 114 102 105 108 101 34 58 32 34 47 104 111 115 116 47 114 117 110 47 109 117 108 116 117 115 47 99 110 105 47 110 101 116 46 100 47 49 48 45 111 118 110 45 107 117 98 101 114 110 101 116 101 115 46 99 111 110 102 34 44 10 32 32 32 32 34 100 97 101 109 111 110 83 111 99 107 101 116 68 105 114 34 58 32 34 47 114 117 110 47 109 117 108 116 117 115 47 115 111 99 107 101 116 34 44 10 32 32 32 32 34 115 111 99 107 101 116 68 105 114 34 58 32 34 47 104 111 115 116 47 114 117 110 47 109 117 108 116 117 115 47 115 111 99 107 101 116 34 10 125 10]} ContainerID:"baa48df91e2fbb1544a88cebbb674ae8bf4d01c110314d5430b371d4b92ec6af" Netns:"/var/run/netns/d3bae72f-bedc-4089-9649-705fb75bbe8c" IfName:"eth0" Args:"IgnoreUnknown=1;K8S_POD_NAMESPACE=sriov-operator-tests;K8S_POD_NAME=testpod-jlvnj;K8S_POD_INFRA_CONTAINER_ID=baa48df91e2fbb1544a88cebbb674ae8bf4d01c110314d5430b371d4b92ec6af;K8S_POD_UID=42301d1c-8d3e-4337-b099-5c16e4b0eefc" Path:"" ERRORED: error configuring pod [sriov-operator-tests/testpod-jlvnj] networking: [sriov-operator-tests/testpod-jlvnj/42301d1c-8d3e-4337-b099-5c16e4b0eefc:test-sriov-static-usual]: error adding container to network "test-sriov-static-usual": SRIOV-CNI failed to load netconf: LoadConf(): the VF 0000:3b:02.0 does not have a interface name or a dpdk driverSep 02 11:13:04 worker60.ocp4-dc.ccn.com kubenswrapper[4610]: E0902 11:13:04.702440    4610 remote_runtime.go:269] "StopPodSandbox from runtime service failed" err="rpc error: code = Unknown desc = failed to destroy network for pod sandbox k8s_sc-cudr-dst-0-0-1-0_uspp-ft-4_9f320764-294a-4be7-8f08-690e5e811ff7_0(b2259054970e3a5e938ad956be48f90cb9d95482dd33ab35e617f5f9b48fc5d5): error removing pod uspp-ft-4_sc-cudr-dst-0-0-1-0 from CNI network \"multus-cni-network\": plugin type=\"multus\" name=\"multus-cni-network\" failed (delete): netplugin failed: \"2023-09-02T11:12:04+08:00 [verbose] Del: uspp-ft-4:sc-cudr-dst-0-0-1-0:9f320764-294a-4be7-8f08-690e5e811ff7:uspp-ft-4-bond-net-sig-kernel:svc-sigk-l {\\\"args\\\":{\\\"cni\\\":{\\\"dpdk\\\":false}}, \\\"cniVersion\\\":\\\"0.3.1\\\", \\\"failOverMac\\\":1, \\\"ipam\\\":{\\\"gateway\\\":\\\"193.21.8.1\\\", \\\"range\\\":\\\"193.21.8.0/24\\\", \\\"range_end\\\":\\\"193.21.8.253\\\", \\\"range_start\\\":\\\"193.21.8.101\\\", \\\"type\\\":\\\"whereabouts\\\"}, \\\"links\\\":[{\\\"name\\\":\\\"svc-sigk-left0\\\"}, {\\\"name\\\":\\\"svc-sigk-left1\\\"}], \\\"linksInContainer\\\":true, \\\"miimon\\\":\\\"100\\\", \\\"mode\\\":\\\"active-backup\\\", \\\"mtu\\\":1800, \\\"name\\\":\\\"uspp-ft-4-bond-net-sig-kernel\\\", \\\"type\\\":\\\"bond\\\"}\\n\"" podSandboxID="b2259054970e3a5e938ad956be48f90cb9d95482dd33ab35e617f5f9b48fc5d5"
      Sep 02 11:13:04 worker60.ocp4-dc.ccn.com kubenswrapper[4610]: E0902 11:13:04.702506    4610 kuberuntime_manager.go:954] "Failed to stop sandbox" podSandboxID={Type:cri-o ID:b2259054970e3a5e938ad956be48f90cb9d95482dd33ab35e617f5f9b48fc5d5}

            nsimha@redhat.com Nikhil Simha (Inactive)
            gkopels@redhat.com Gregory Kopels
            Weibin Liang Weibin Liang
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: