Bug 1944312
Summary: | Upgrade to 4.6.20 causes pod to stop working due to permission denied | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Neil Girard <ngirard> |
Component: | Node | Assignee: | Peter Hunt <pehunt> |
Node sub component: | CRI-O | QA Contact: | MinLi <minmli> |
Status: | CLOSED DUPLICATE | Docs Contact: | |
Severity: | urgent | ||
Priority: | high | CC: | aos-bugs, bsmitley, nagrawal |
Version: | 4.6 | ||
Target Milestone: | --- | ||
Target Release: | 4.8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-04-06 17:54:59 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Neil Girard
2021-03-29 18:09:53 UTC
Hello, after trying different version of OCP, it seems this issue was introduced in 4.6.17. ah, It seems you've hit the same issue as https://bugzilla.redhat.com/show_bug.cgi?id=1915397 make sure the WORKDIR is accessible by the user the container runs as Here's what CNV did to fix it: ``` RUN chgrp -R 0 /home/nonroot && \ + chmod -R g=u /home/nonroot ``` for whatever group your container ends up running as the image itself doesn't have chgrp, but I was able to workaround by doing: ``` apiVersion: v1 kind: Pod metadata: name: foo spec: containers: - name: foo image: hasheddan/crossplane:nocreds workingDir: /tmp ``` Since the command is run from PATH anyway. Is this acceptable? Hi Peter, I was able to work around it by changing the runAsUser to mentioned here (https://bugzilla.redhat.com/show_bug.cgi?id=1934177#c9). I did not try changing the workingDir. I'll have to try that and ask the customer. Thanks! I am marking this as a dup of an older version of this bug, which I have reopened. I have also submitted a fix to this case to upstream runc. let's see how the maintainers feel about it *** This bug has been marked as a duplicate of bug 1934177 *** |