New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cri: memory.memsw.limit_in_bytes: no such file or directory #8857
Conversation
If kubelet passes the swap limit (default memory limit = swap limit ), it is configured for container irrespective if the node supports swap. Signed-off-by: Qasim Sarfraz <qasimsarfraz@microsoft.com>
Hi @mqasimsarfraz. Thanks for your PR. I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
I am currently trying to validate the fix with Kubernetes env. I will post an update once I have done that! |
I am able to validate this on Ubuntu 20.04 with ( w/o fix
with fix
cc @pacoxu |
Do we need this in 1.6 LTS? I assume we will support 1.6 with K8s 1.28, and if so, I assume this fix is needed there as well? Marked them for backport/cherry-pick; someone can unset if that isn't the case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I just realized that https://github.com/containerd/containerd/pull/7838/files has fixed it before. @mqasimsarfraz so, this patch will fix it? |
@fuweid https://github.com/containerd/containerd/pull/7838/files fixed the case when |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@mqasimsarfraz thanks |
I see we are target new stable releases. I opened the cherry-picks for release/1.6 and release/1.7 . I think it would make sense to include this fix? @fuweid @dcantah |
If kubelet passes the swap limit (default memory limit = swap limit ), it is configured for container irrespective if the node supports swap. This results in following error:
The reason this is coming to surface now is kubelet (recently) by default sets memory limit = swap limit even without
NodeSwap=true
feature gate is enabled. [1] [2] [3]Fixes: #8855
Related: kubernetes/kubernetes#119486