Skip to content
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

rbd: dont attempt explicit permission mod change from the RBD driver #2697

Merged
merged 2 commits into from
Jan 25, 2022

Conversation

humblec
Copy link
Collaborator

@humblec humblec commented Dec 7, 2021

currently we are overriding the permission to 0o777 at time of node
stage which is not the correct action. That said, this permission
change causes an extra permission correction at time of nodestaging
by the CO while the FSGROUP change policy has been set to
OnRootMismatch.

Signed-off-by: Humble Chirammal [email protected]

@mergify mergify bot added the component/rbd Issues related to RBD label Dec 7, 2021
@mergify
Copy link
Contributor

mergify bot commented Dec 23, 2021

This pull request now has conflicts with the target branch. Could you please resolve conflicts and force push the corrected changes? 🙏

@humblec humblec force-pushed the fsgroup branch 2 times, most recently from dc9f43c to 6092601 Compare January 21, 2022 05:52
@humblec humblec changed the title [WIP] rbd: dont attempt explicit permission mod change from the RBD driver rbd: dont attempt explicit permission mod change from the RBD driver Jan 24, 2022
@humblec humblec requested review from nixpanic, Madhu-1 and a team and removed request for nixpanic January 24, 2022 07:50
@humblec
Copy link
Collaborator Author

humblec commented Jan 24, 2022

/retest ci/centos/mini-e2e-helm/k8s-1.21

@humblec
Copy link
Collaborator Author

humblec commented Jan 24, 2022

@ceph/ceph-csi-contributors requesting review as this is important one to be fixed.

@humblec
Copy link
Collaborator Author

humblec commented Jan 25, 2022

Cc @ceph/ceph-csi-maintainers ptal .

@Madhu-1
Copy link
Collaborator

Madhu-1 commented Jan 25, 2022

@humblec please update the PR description.

Copy link
Collaborator

@Madhu-1 Madhu-1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit

internal/rbd/nodeserver.go Outdated Show resolved Hide resolved
currently we are overriding the permission to `0o777` at time of node
stage which is not the correct action. That said, this permission
change causes an extra permission correction at time of nodestaging
by the CO while the FSGROUP change policy has been set to
`OnRootMismatch`.

Signed-off-by: Humble Chirammal <[email protected]>
considering the pod has run as normal user, the fsgroup has also
set to the same.

Signed-off-by: Humble Chirammal <[email protected]>
@humblec
Copy link
Collaborator Author

humblec commented Jan 25, 2022

/retest ci/centos/k8s-e2e-external-storage/1.23

@humblec humblec added the ci/retry/e2e Label to retry e2e retesting on approved PR's label Jan 25, 2022
@humblec
Copy link
Collaborator Author

humblec commented Jan 25, 2022

/retest ci/centos/k8s-e2e-external-storage/1.23

@humblec
Copy link
Collaborator Author

humblec commented Jan 25, 2022

@Mergifyio rebase

@mergify
Copy link
Contributor

mergify bot commented Jan 25, 2022

rebase

☑️ Nothing to do

  • -closed [:pushpin: rebase requirement]
  • #commits-behind>0 [:pushpin: rebase requirement]

@humblec
Copy link
Collaborator Author

humblec commented Jan 25, 2022

@Mergifyio refresh

@mergify
Copy link
Contributor

mergify bot commented Jan 25, 2022

refresh

✅ Pull request refreshed

@github-actions
Copy link

/retest ci/centos/k8s-e2e-external-storage/1.23

@github-actions
Copy link

@humblec "ci/centos/k8s-e2e-external-storage/1.23" test failed. Logs are available at location for debugging

@humblec
Copy link
Collaborator Author

humblec commented Jan 25, 2022

@Mergifyio refresh

@mergify
Copy link
Contributor

mergify bot commented Jan 25, 2022

refresh

✅ Pull request refreshed

@mergify mergify bot merged commit 7ff048b into ceph:devel Jan 25, 2022
akalenyu added a commit to akalenyu/kubevirt that referenced this pull request Nov 9, 2022
As non-root out of the box, most storage's won't give us a PVC that is world writeable.
Noticed this on OpenShift testing lanes where cephcsi is used instead of the "local" SC
that is used in kubevirtci.

Ceph stopping chmod 777 reference:
ceph/ceph-csi#2697

Signed-off-by: Alex Kalenyuk <[email protected]>
akalenyu added a commit to akalenyu/kubevirt that referenced this pull request Nov 9, 2022
As non-root out of the box, most storage's won't give us a PVC that is world writeable.
Noticed this on OpenShift testing lanes where cephcsi is used instead of the "local" SC
that is used in kubevirtci.

Ceph stopping chmod 777 reference:
ceph/ceph-csi#2697

Signed-off-by: Alex Kalenyuk <[email protected]>
akalenyu added a commit to akalenyu/kubevirt that referenced this pull request Nov 9, 2022
As non-root out of the box, most storage's won't give us a PVC that is world writeable.
Noticed this on OpenShift testing lanes where cephcsi is used instead of the "local" SC
that is used in kubevirtci.

Ceph stopping chmod 777 reference:
ceph/ceph-csi#2697

Signed-off-by: Alex Kalenyuk <[email protected]>
akalenyu added a commit to akalenyu/kubevirt that referenced this pull request Nov 13, 2022
As non-root out of the box, most storage's won't give us a PVC that is world writeable.
Noticed this on OpenShift testing lanes where cephcsi is used instead of the "local" SC
that is used in kubevirtci.

Ceph stopping chmod 777 reference:
ceph/ceph-csi#2697

Signed-off-by: Alex Kalenyuk <[email protected]>
akalenyu added a commit to akalenyu/kubevirt that referenced this pull request Nov 14, 2022
As non-root out of the box, most storage's won't give us a PVC that is world writeable.
Noticed this on OpenShift testing lanes where cephcsi is used instead of the "local" SC
that is used in kubevirtci.

Ceph stopping chmod 777 reference:
ceph/ceph-csi#2697

Signed-off-by: Alex Kalenyuk <[email protected]>
kubevirt-bot pushed a commit to kubevirt-bot/kubevirt that referenced this pull request Nov 15, 2022
As non-root out of the box, most storage's won't give us a PVC that is world writeable.
Noticed this on OpenShift testing lanes where cephcsi is used instead of the "local" SC
that is used in kubevirtci.

Ceph stopping chmod 777 reference:
ceph/ceph-csi#2697

Signed-off-by: Alex Kalenyuk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/retry/e2e Label to retry e2e retesting on approved PR's component/rbd Issues related to RBD priority-1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants