Bug 1564976
Summary: | No write permission in a directory mounted as a PVC with Azure File | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Takayoshi Tanaka <tatanaka> |
Component: | Storage | Assignee: | hchen |
Status: | CLOSED ERRATA | QA Contact: | Wenqi He <wehe> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.7.1 | CC: | ansverma, aos-bugs, aos-storage-staff, bchilds, bleanhar, joe.madden, jupierce |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
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: | 2018-05-18 20:53:49 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
Takayoshi Tanaka
2018-04-09 05:26:23 UTC
I have reported similar bug before, pls check my comment in https://bugzilla.redhat.com/show_bug.cgi?id=1543229#c4 @Wenqi Thank you for a comment. However, I have two concerns. - The issue is fixed only at OpenShift 3.9. Do you have an idea to work around at OpenShift 3.7.42? I'm afraid we should fix the issue for v3.7.42. - The issue is fixed by introducing fsGroup. Since it seems the user operation is required when upgrading 3.7 to 3.9, do we need a document? https://github.com/openshift/origin/pull/18526 Also, I'm writing a KCS for permission issue of Azure File. (In reply to Takayoshi Tanaka from comment #3) > @Wenqi > > Thank you for a comment. However, I have two concerns. > > - The issue is fixed only at OpenShift 3.9. Do you have an idea to work > around at OpenShift 3.7.42? > I'm afraid we should fix the issue for v3.7.42. Could you please try my solution in your 3.7 env to check whether it works or not? If not, I think we need to backport some PRs to resolve this issue. Thanks. "mountOptions" is not available at 3.7 because it's introduced at kubernetes 1.9 (and OpenShift 3.9). The regression was caused by [1] and the file/dir mode is (partially) reverted to 0755 [2], both fixes are back in 3.7.42. However, there is no upstream consensus to go back to 0777. 1. https://github.com/kubernetes/kubernetes/pull/48460 2. https://github.com/kubernetes/kubernetes/pull/56551 @Anshul, 3.6 doesn't have this issue. The file and dir modes are 0777 The file/dir mode regression happens if the pod uid/gid are not the same as those in azure file. Customer can either upgrade to 3.9 to use mount option, or stay at 3.7.23 (before the regression issue) 3.7 fix is at https://github.com/openshift/ose/pull/1244 backport merged I have manually successful installed OCP with latest 3.7 with below version: openshift v3.7.48 kubernetes v1.7.6+a08f5eeb62 This bug is fixed in 3.7 $ oc get pods NAME READY STATUS RESTARTS AGE azfpod 1/1 Running 0 9m $ oc exec -it azfpod sh / $ ls /mnt/azure/ / $ touch /mnt/azure/wehe / $ ls /mnt/azure/ wehe / $ exit BTW, because of the image tag issue, make so much effort on installation with update local packages, update image tag, and finally deploy OCP 3.7 latest successfully. Hi All, We have updated to Openshift 3.7.46 and are now able to write to azure file. Can someone confirm this was backported to 3.7.46 as the change logs does not have this Bugzilla listed. Thanks. I can confirm that https://github.com/openshift/ose/pull/1244 is merged to all versions after v3.7.45-1. |