Skip to content

Conversation

aojea
Copy link
Contributor

@aojea aojea commented Jul 31, 2025

Do not fail on CNI del if namespace no longer exists

Failing on CNI Del can cause multiple issues and depends on the special logic on the container runtime, so it is not consistent across implementations like containerd or crio.

If the network namespace of a Pod no longer exist, CNI DEL can not fail because there is nothing else to do for the CNI.
If it fails can cause different issues, make the Kubelet or the runtime keep retrying the deletion or impact plugins on the CNI chain.

@aojea aojea requested a review from a team as a code owner July 31, 2025 10:44
@aojea aojea requested a review from marseel July 31, 2025 10:44
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jul 31, 2025
@aojea
Copy link
Contributor Author

aojea commented Jul 31, 2025

/assign @squeed @joestringer

@joestringer joestringer added the release-note/bug This PR fixes an issue in a previous release of Cilium. label Jul 31, 2025
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jul 31, 2025
If the network namespace does not exist during the CNI DEL command, it
is not possible for the interface exist inside the namespace.
However, this should not happen in common situations so we log the
problem despite not erroring to avoid unnecesary retries from the
kubelet.

Change-Id: I355fb3ea0a1bfb5662792345675cfb3e8f7962b2
Signed-off-by: Antonio Ojea <aojea@google.com>
@joestringer
Copy link
Member

/test

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Aug 1, 2025
@joestringer joestringer added this pull request to the merge queue Aug 1, 2025
Merged via the queue into cilium:main with commit 2532c0b Aug 1, 2025
67 of 68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/bug This PR fixes an issue in a previous release of Cilium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants