-
Notifications
You must be signed in to change notification settings - Fork 182
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
Use k8s mount util for bind volume #2861
Use k8s mount util for bind volume #2861
Conversation
Hi @nikhilbarge. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Started vanilla Block pipeline... Build Number: 2568 |
|
Started vanilla Block pipeline... Build Number: 2569 |
|
Started vanilla Block pipeline... Build Number: 2570 |
|
Started vanilla Block pipeline... Build Number: 2571 |
|
Started Vanilla block pre-checkin pipeline... Build Number: 2745 |
|
Started Vanilla block pre-checkin pipeline... Build Number: 2746 |
Started Vanilla block pre-checkin pipeline... Build Number: 2747 |
|
a4216ce
to
db0e566
Compare
Started vanilla Block pipeline... Build Number: 2572 |
Started vanilla Block pipeline... Build Number: 2573 |
|
|
Started Vanilla block pre-checkin pipeline... Build Number: 2748 |
|
Started Vanilla block pre-checkin pipeline... Build Number: 2749 |
|
Started vanilla Block pipeline... Build Number: 2580 |
|
Started vanilla file pipeline... Build Number: 1142 |
|
/ok-to-test |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: divyenpatel, nikhilbarge The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@nikhilbarge can you confirm there is no regression for file volume after this change? |
tested change with file volume RWX and RWO and verified volume mount is successful. added testing logs |
/lgtm |
Will this backport to old csi versions? @nikhilbarge ? |
What this PR does / why we need it:
Bug fix: PVC mount become ReadOnly on same node when a volume ReadOnly is mounted
Used k8s mount utils instead of gofsutil and used Mount with bind mount parameter.
Testing done:
Running e2e tests
Manually tested the scenario:
As shown in attached log file, I have Created two pods with the same volume one with Readwrite then other one with read only mount permissions.
Verified that i am able to write to volume from pod with RW access even after new pod is created with Readonly
test_read_only_mount.log
tested file pvc RWX and verified if volume mount is successful
test_pvc_RWX.log
tested File pvc RWO and verified if volume mount is successful
test_pvc_file_rwo.log
Here we are using same volume for two Pods. but actually we do not support using same volume for two Pods unless it is
RWM volume.
In terms of k8s RWO is for node and not pod, but we treated it as RWO for pod.
Special notes for your reviewer:
Release note: