Skip to content

fix: bring back updated containerd gvisor patch#1235

Merged
talos-bot merged 1 commit intosiderolabs:mainfrom
smira:fix/containerd-2.1-gvisor-fix
May 19, 2025
Merged

fix: bring back updated containerd gvisor patch#1235
talos-bot merged 1 commit intosiderolabs:mainfrom
smira:fix/containerd-2.1-gvisor-fix

Conversation

@smira
Copy link
Copy Markdown
Member

@smira smira commented May 19, 2025

When updating for containerd 2.1, I assumed the patch is no longer needed, as it was included into containerd, but it turns out it got reverted upstream: containerd/containerd#11793

So bring back the patch in updated form, as otherwise gvisor leaves running processes behind on container stop.

When updating for containerd 2.1, I assumed the patch is no longer
needed, as it was included into containerd, but it turns out it got
reverted upstream: containerd/containerd#11793

So bring back the patch in updated form, as otherwise `gvisor` leaves
running processes behind on container stop.

Signed-off-by: Andrey Smirnov <[email protected]>
@github-project-automation github-project-automation Bot moved this from In Review to Approved in Planning May 19, 2025
@samuelkarp
Copy link
Copy Markdown

containerd/containerd#11793 is a new fix for the same issue, so the previous patch should no longer be needed. If you are still running into problems with gVisor and containerd, please open an issue with the containerd project.

@smira
Copy link
Copy Markdown
Member Author

smira commented May 19, 2025

containerd/containerd#11793 is a new fix for the same issue, so the previous patch should no longer be needed. If you are still running into problems with gVisor and containerd, please open an issue with the containerd project.

thanks, will do this after I confirm that it indeed fixes the issue. I could only observe that some process is left over in the host after gvisor-backed is terminated (previously it was stuck on termination), but now the pod is terminated, but something is left running (need to check more).

@smira
Copy link
Copy Markdown
Member Author

smira commented May 19, 2025

/m

@talos-bot talos-bot merged commit 9f1ba1f into siderolabs:main May 19, 2025
14 checks passed
@github-project-automation github-project-automation Bot moved this from Approved to Done in Planning May 19, 2025
@smira
Copy link
Copy Markdown
Member Author

smira commented May 20, 2025

containerd/containerd#11793 is a new fix for the same issue, so the previous patch should no longer be needed. If you are still running into problems with gVisor and containerd, please open an issue with the containerd project.

@samuelkarp created an issue containerd/containerd#11871

hugomoran159 added a commit to hugomoran159/containerd that referenced this pull request Mar 11, 2026
Don't set sandbox ID on containers when using the internal podsandbox
sandboxer. gVisor's shim doesn't implement the Sandbox Manager API,
so linking containers to it causes kubelet to detect SandboxChanged
and restart pods every ~2 minutes.

Cherry-picked from containerd PR containerd#11741 / Talos siderolabs/pkgs#1235.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants