-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
crio_cgroupv2_imagefs.ign: run SELinux relabeling service before crio #33963
crio_cgroupv2_imagefs.ign: run SELinux relabeling service before crio #33963
Conversation
@bart0sh: GitHub didn't allow me to request PR reviews from the following users: elieser1101. 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. |
81f6047
to
342220a
Compare
great find! |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bart0sh, kannon92 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 |
This is yet another attempt to fix "sh: error while loading shared libraries: /lib/libc.so.6: cannot apply additional memory protection after relocation: Permission denied" error.
It turned out that running label-graphroot service (
semanage fcontext -a -e /var/lib/containers /var/lib/imagefs && restorecon -R -v /var/lib/imagefs
) may race with crio service that uses this filesystem. Here is a quote from a typical serial log of thepull-kubernetes-node-crio-cgrpv2-imagefs-e2e-kubetest2
job illustrating that crio and label-graphroot are running in parallel:There is potential for file system inconsistency or SELinux label mismatches, especially if restorecon is actively relabeling /var/lib/imagefs while cri-o is trying to access or use the directory.
Ensuring that label-graphroot service finishes before any cri-o operations start can potentilly fix the issue.
Ref: ##32567 (comment) kubernetes/kubernetes#127831
Note: this is a test PR, it doesn't guarantee the expected effect as I can't reproduce the issue in my setup.
/sig node
/cc @elieser1101 @kannon92 @haircommander