ContainerCreation" state due to multus IP allocation issue" ERRORED: error configuring pod [opc-xxx-xxxx/opc-xxx-xxxx-session-cluster-x] networking: [opc-data-udsf/opc-data-xxxxx-session-cluster-x/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxx:xxx-xxxxxxxxx-xxxx-replication]: error adding container to network "xxxx-xxxxxxx-volt-replication": error at storage engine: Could not allocate IP in range: ip: 10.xxx.xx.x / - 10.xxx.xx.x / range: 10.xxx.xx.x/27 / excludeRanges: []"
#kubectl get po -A | grep -v Running
NAMESPACE NAME READY STATUS RESTARTS AGE opc-data-xxxx opc-xxx-xxxx-session-cluster-x 0/1 ContainerCreating 0 13h
Workaround :
Manual IP Release Steps:
1.) Identify the Network Name :
# cat /etc/cni/net.d/*.conf
2.) Inspect Allocated IPs :
# ls /var/lib/cni/networks/<network-name>
3.) Delete the Stale IP(s) :
#sudo rm /var/lib/cni/networks/<network-name>/10.107.34.*
After completing above steps, the IP(s) should be available again for allocation, and your pod should be able to receive an IP successfully.