k8snetworkplumbingwg / whereabouts

A CNI IPAM plugin that assigns IP addresses cluster-wide
Apache License 2.0
291 stars 126 forks source link

Error in deallocating IP/Error in assigning IP using Multus networking #275

Open nomansland1 opened 2 years ago

nomansland1 commented 2 years ago

I have an issue when I delete a pod and cluster recreates it back it is having a process of hanging-up. The pod stays init state. Logs on the node shows:( whereabouts.log) Please help me on how I can resolve this issue. 2022-10-27T20:37:28Z [error] Error deallocating IP: did not find reserved IP for container ceba7e73aca9c41cc72703446cd72fe93305e295c5d294e9910e046494c6d512 2022-10-27T20:37:30Z [error] Error assigning IP: Could not allocate IP in range: ip: 10.20.0.151 / - 10.20.0.154 / range: net.IPNet{IP:net.IP{0xa, 0x14, 0x0, 0x80}, Mask:net.IPMask{0xff, 0xff, 0xff,0xe0}} 2022-10-27T20:37:30Z [error] Error at storage engine: Could not allocate IP in range: ip: 10.20.0.151 / - 10.20.0.154 / range: net.IPNet{IP:net.IP{0xa, 0x14, 0x0, 0x80}, Mask:net.IPMask{0xff, 0xff, 0xff, 0xe0}} 2022-10-27T20:37:30Z [error] Error deallocating IP: did not find reserved IP for container 1db721cc67e051bf5f31bdfe7d8cc47e1c598445ae44e4771abd8f4282e0592f 2022-10-27T20:37:31Z [error] Error deallocating IP: did not find reserved IP for container 1db721cc67e051bf5f31bdfe7d8cc47e1c598445ae44e4771abd8f4282e0592f 2022-10-27T20:37:33Z [error] Error deallocating IP: did not find reserved IP for container 1db721cc67e051bf5f31bdfe7d8cc47e1c598445ae44e4771abd8f4282e0592f 2022-10-27T20:37:38Z [error] Error assigning IP: Could not allocate IP in range: ip: 10.20.0.151 / - 10.20.0.154 / range: net.IPNet{IP:net.IP{0xa, 0x14, 0x0, 0x80}, Mask:net.IPMask{0xff, 0xff, 0xff,0xe0}} 2022-10-27T20:37:38Z [error] Error at storage engine: Could not allocate IP in range: ip: 10.20.0.151 / - 10.20.0.154 / range: net.IPNet{IP:net.IP{0xa, 0x14, 0x0, 0x80}, Mask:net.IPMask{0xff, 0xff, 0xff, 0xe0}} 2022-10-27T20:37:39Z [error] Error deallocating IP: did not find reserved IP for container aa56ca4c815684d854151620a5f4985e535c8f64fc5baf5729d2645c7db5c438 2022-10-27T20:37:39Z [error] Error deallocating IP: did not find reserved IP for container aa56ca4c815684d854151620a5f4985e535c8f64fc5baf5729d2645c7db5c438

Warning FailedCreatePodSandBox 6m20s (x184 over 15m) kubelet (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "1337ec4d47f8191c4f2271cdf63b29bbb6d4eb56076b482d5481a302a86c189d" network for pod "reg-helm-charts-udmueau-7b7fbdc4dd-xd2vm": networkPlugin cni failed to set up pod "reg-helm-charts-udmueauXXX" network: [XXXudm01/reg-helm-charts-udmueau-7b7fbdc4dd-xd2vm:ldap-lan]: error adding container to network "ldap-lan": error at storage engine: Could not allocate IP in range: ip: 10.20.0.151 / - 10.20.0.154 / range: net.IPNet{IP:net.IP{0xa, 0x14, 0x0, 0x80}, Mask:net.IPMask{0xff, 0xff, 0xff, 0xe0}}

amaheshwari21 commented 1 year ago

I am seeing the same issue, can someone provide a fix for this?