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
pkg/kubelet/cm: cgroup-related cleanups #102218
Conversation
This was added by commit a9772b2. In the current codebase, the cgroup being updated was created using runc/opencontainers' manager.Apply(), which already does controllers propagation, so there is no need to repeat that on every update. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Hi @kolyshkin. Thanks for your PR. I'm waiting for a kubernetes 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. |
6dea836
to
ccf1eac
Compare
@kolyshkin: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
As far as I understand, there are two issues here.
This is presumably caused by the first commit (removing Looking at it. |
Ahh, sorry, thought you knew about these test failures... They are expected, I should probably have stated that explicitly. The failures in
Overall I think this PR is ok. There are some issues with controller propagation on v2 in general (some WIP stuff here: #102250), but you know more about the runc part than me. |
So, this PR can be merged then I guess? |
Overall I think it is ok. I just need to think about why the We don't have any testing of using cgroupfs on cgroup v2, and I am pretty sure running that while using systemd will break, no matter what... :/ /cc @giuseppe |
my 2c: I had a review as well and I fully agree with @odinuge , from my POV all the changes in this PR make sense, with the caveat above about |
I forgot what tests was failing but there are two fixes in cAdvisor that AFAICS are not yet propagated into a release and into Kubernetes: google/cadvisor#2837 Especially the first one, solves an issue when reading memory stats |
at the time I've added that code, runc didn't work with cgroupfs on cgroup v2. Now that this functionality is in libcontainer, I agree it is better to remove it |
Thanks, opened google/cadvisor#2878 and google/cadvisor#2879 (it might need a consent from you @giuseppe to make a google-cla bot happy). |
/uncc |
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
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, kolyshkin, mrunalp, odinuge The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
While working on #102147, I noticed a few odd things in the code that can be straightened out.
This PR does some of that. Please see detailed description in commits.
Which issue(s) this PR fixes:
none
Special notes for your reviewer:
Please review on commit by commit basis.
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
none