-
Notifications
You must be signed in to change notification settings - Fork 27
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
add CONFIG_CGROUP_BPF to required kernel config #41
add CONFIG_CGROUP_BPF to required kernel config #41
Conversation
@pacoxu: GitHub didn't allow me to request PR reviews from the following users: KentaTada. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
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-sigs/prow repository. |
As cgroup v1 is in maintenance mode but not removed, we should not remove the cgroup v1 related kernel config out. However, should we show different message for |
5f9c5bb
to
c4cf635
Compare
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.
in #36 @KentaTada mentioned that we need to read another file to verify cgroupv2.
Unlike in v1, the kernel config alone cannot determine whether the required v2 features are enabled.
It seems that we need to check in different ways for cgroup v1 and cgroup v2. For instance,
/hold |
|
system-validators/validators/cgroup_validator_linux.go Lines 141 to 156 in c4cf635
We currently use the similar logic here and add system-validators/validators/types_unix.go Lines 69 to 70 in c4cf635
This checks the cgroup sub controllers. |
aligning with RUNC seems good to me. what about these comments about freeze vs freezer? |
c4cf635
to
e50ca40
Compare
e50ca40
to
51eb654
Compare
/unhold
Updated. |
51eb654
to
5843314
Compare
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
/approve
/hold
@KentaTada could you please have a look too?
could you explain why? |
Basically two reasons IMO:
|
ok, got it. you mean that we should not cleanup cgroups v1 because they are still widely used. i tried finding @KentaTada 's slack to give him a ping but couldn't. |
I'll take a look at this pr by the first half of the next week. |
I updated the PR accordingly and the only unresolved comment is https://github.com/kubernetes/system-validators/pull/41/files#r1800338762.
|
95629f0
to
b8d518a
Compare
4ea6136
to
26b2c98
Compare
c34f1f4
to
0e215f9
Compare
@pacoxu |
Thanks for your detailed review and comments. |
0e215f9
to
8bf7873
Compare
I refactor the logic to just parse
BTW, the |
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.
this is much better @pacoxu !
mostly requesting minor fixes for text / comments in multiple places.
and only one Q about the file parser.
if len(cgroupV1MountPoint) == 0 { | ||
cgroupV1MountPoint = fields[1] | ||
} |
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.
is it ok to just do this?
if len(cgroupV1MountPoint) == 0 { | |
cgroupV1MountPoint = fields[1] | |
} | |
cgroupV1MountPoint = fields[1] |
i.e. always update the var if more cgroups v1 mount points are found or should we only catch the first one?
(i don't know the format)
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.
[root@10-29-14-249 ~]# cat /proc/mounts | grep cgroup
tmpfs /sys/fs/cgroup tmpfs ro,seclabel,nosuid,nodev,noexec,mode=755 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,seclabel,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,seclabel,nosuid,nodev,noexec,relatime,blkio 0 0
cgroup /sys/fs/cgroup/hugetlb cgroup rw,seclabel,nosuid,nodev,noexec,relatime,hugetlb 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,seclabel,nosuid,nodev,noexec,relatime,perf_event 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,seclabel,nosuid,nodev,noexec,relatime,memory 0 0
cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,seclabel,nosuid,nodev,noexec,relatime,net_prio,net_cls 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,seclabel,nosuid,nodev,noexec,relatime,cpuacct,cpu 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,seclabel,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/pids cgroup rw,seclabel,nosuid,nodev,noexec,relatime,pids 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,seclabel,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,seclabel,nosuid,nodev,noexec,relatime,freezer 0 0
For cgroup v1, this is an example. I prefer to get the first one.
8bf7873
to
4a1c1a3
Compare
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
/approve
should i create a new release after this?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: neolit123, pacoxu 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 |
Yes, as we have no todo items for v1.32. |
unrelated fix, please LGTM will cut a release after it merges and send PR for k/k. |
/unhold |
i will also rename the branch of this repo to main |
References:
Fixes #36
/cc @KentaTada @neolit123