Closed bitoku closed 1 week ago
Hi @bitoku. 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 /ok-to-test
on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test
label.
I understand the commands that are listed here.
/ok-to-test
/lgtm
/assign @SergeyKanzhelev @haircommander
@haircommander I didn’t know we need the same label for the image store as we need for graph root. I wonder if this is intentional..
/approve
this makes sense to me as we'll need to do similar things to both paths. I'd imagine image store could get away with a slightly different profile but functionally having the same is secure enough i think
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: bitoku, haircommander
The full list of commands accepted by this bot can be found here.
The pull request process is described here
This PR adds a unit file to change the selinux label of imageStore in order to fix the test failures in https://github.com/kubernetes/kubernetes/pull/125417 https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/125417/pull-crio-cgroupv2-splitfs-splitdisk/1800694672788557824 Also it modifies the graphroot and runroot to the default.
In the test, all containers failed with exitCode 127, which normally succeed without any errors. Having tested on the remote e2e, I found that the containers failed with the error like
It turned out to be caused by selinux label mismatch. Since we split imageStore and graphRoot path, imageStore also must have the same selinux label as graphRoot.
cf. https://github.com/containers/podman/blob/main/troubleshooting.md#11-changing-the-location-of-the-graphroot-leads-to-permission-denied.
I tested this ignition file by running remote e2e with https://github.com/kubernetes/kubernetes/pull/125417 this change, and it passed the tests.