foundation-model-stack / multi-nic-cni

https://foundation-model-stack.github.io/multi-nic-cni/
Apache License 2.0
33 stars 5 forks source link

failed to add IP addr <IP> to "net1-0": address already in use #20

Closed sunya-ch closed 1 year ago

sunya-ch commented 1 year ago

Multi-NIC IPAM CNI allocates the address that is already in use to Pod.

Expected Behavior

The IP address should be successfully add to the interface.

Current Behavior

error adding pod <pod name> to CNI network "multus-cni-network": 
plugin type="multus" name="multus-cni-network" 
failed (add): [default/..:multinic-ipvlanl3]: error adding container to network "multinic-ipvlanl3": 
failed to add IP addr <IP> to "net1-0": address already in use

Troubleshooting Steps

Steps to Reproduce

(not trivial)

Context (Environment)

Possible Implementation

  1. Check IP in-use before allocation --> Is there any way we can check without try assigning to network device?
  2. Detect anomaly request by daemon (request from same pod for multiple times)
  3. Report failure by CNI

Considering current practicality, I will work on the second choice. However, if we can find a way to do the first choice, it will be more straightforward.