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
cephfs: go with default permissions while creating subvolumes #3204
Conversation
ec5deb0
to
6dc5d12
Compare
known one. |
|
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
|
/retest ci/centos/mini-e2e/k8s-1.22 |
|
@Madhu-1ptal.. thanks |
| @@ -9,3 +9,4 @@ metadata: | |||
| spec: | |||
| attachRequired: false | |||
| podInfoOnMount: false | |||
| fsGroupPolicy: File | |||
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.
@humblec can you provide details on why it should be File here, we have set fsGroupPolicy to ReadWriteOnceWithFSType in Rook for cephfs.
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.
@Madhu-1 dropping the PR for Rook to change that.. pretty much ready .. I will link the same here.
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.
@Madhu-1 rook/rook#10503 address the same
At present the CephFS CSI driver works with default mode ie, `ReadWriteOncewithFsType`. However `File` type is more apt for the CephFS CSI driver and this commit bring that change. The similar change is also introduced in ceph csi driver here: ceph/ceph-csi#3204 considering the `File` mode has been GAd in 1.23 kubernetes version and also we are lifting one of the problematic code path in this area via Ceph CSI driver changes, it is good to move the fsgrouppolicy to `File`. Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
|
/retest ci/centos/mini-e2e-helm/k8s-1.23 |
|
/retest ci/centos/mini-e2e/k8s-1.22 |
|
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
|
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
1 similar comment
|
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
|
@Mergifyio refresh |
|
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
✅ Pull request refreshed |
6dc5d12
to
7b03eb9
Compare
|
/retest ci/centos/mini-e2e/k8s-1.22 |
|
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
|
/retest ci/centos/mini-e2e-helm/k8s-1.23 |
11c2150
to
e4e93af
Compare
|
@Mergifyio rebase |
✅ Branch has been successfully rebased |
e4e93af
to
d7d64ca
Compare
|
/retest ci/centos/k8s-e2e-external-storage/1.23 |
|
/retest ci/centos/k8s-e2e-external-storage/1.22 |
|
2 weeks to get the CI pass with merge commit !!! still not the PR in.. |
|
|
/retest ci/centos/mini-e2e/k8s-1.21 |
|
/retest ci/centos/mini-e2e-helm/k8s-1.23 |
|
/retest ci/centos/mini-e2e-helm/k8s-1.22 |
|
/retest ci/centos/k8s-e2e-external-storage/1.23 |
|
/retest ci/centos/mini-e2e-helm/k8s-1.22 |
While creating subvolumes, CephFS driver set the mode to `777` and pass it along to go ceph apis which cause the subvolume permission to be on 777, however if we create a subvolume directly in the ceph cluster, the default permission bits are set which is 755 for the subvolume. This commit try to stick to the default behaviour even while creating the subvolume. This also means that we can work with fsgrouppolicy set to `File` in csiDriver object which is also addressed in this commit. Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
d7d64ca
to
720dbf6
Compare
|
/retest ci/centos/mini-e2e-helm/k8s-1.22 |
|
/retest ci/centos/k8s-e2e-external-storage/1.22 |
|
/retest ci/centos/k8s-e2e-external-storage/1.21 |
|
@Mergifyio requeue |
✅ The queue state of this pull request has been cleaned. It can be re-embarked automatically |
|
@Mergifyio requeue |
☑️ This pull request is already queued |
|
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
At present the CephFS CSI driver works with default mode ie, `ReadWriteOncewithFsType`. However `File` type is more apt for the CephFS CSI driver and this commit bring that change. The similar change is also introduced in ceph csi driver here: ceph/ceph-csi#3204 considering the `File` mode has been GAd in 1.23 kubernetes version and also we are lifting one of the problematic code path in this area via Ceph CSI driver changes, it is good to move the fsgrouppolicy to `File`. Signed-off-by: Humble Chirammal <hchiramm@redhat.com> (cherry picked from commit 58a2f66)
While creating subvolumes, CephFS driver set the mode to
777and pass it along to go ceph apis which cause the subvolume
permission to be on 777, however if we create a subvolume
directly in the ceph cluster, the default permission bits are
set which is 755 for the subvolume. This commit try to stick
to the default behaviour even while creating the subvolume.
This also means that we can work with fsgrouppolicy set to
Filein csiDriver object which is also addressed in this commit.Additional Note for reviewer:
Rook Changes: rook/rook#10503
Signed-off-by: Humble Chirammal hchiramm@redhat.com