Closed vinay50muddu closed 1 year ago
Hello @vinay50muddu, thanks for reporting this. I have drafted a fix under https://github.com/k8snetworkplumbingwg/ovs-cni/pull/259
@phoracek thanks for fixing this. One query i have w.r.t the fix. If cmdDel of any IPAM fails, will the fix also takes care of deleting the created OVS ports? I think the issue to be fixed is any IPAM failure should be handled gracefully instead of terminating abruptly and returning.
I think it cleans up after any IPAM problem. Is it not?
When using ovs-cni with host-local IPAM, if there is any invalid configuration specific to IPAM in the NAD, ovs port is created but IPAM rejects the configuration and throws an error. The ovs port is not cleared. This results in multiple stale ports over a period of time. How to reproduce:
Create a NAD with the following content.
create a sample deployment that uses this NAD.
We see error messages in the pod log and ports are created which are never removed.