-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
What is the basis for forbidding volume multi-attach ? #67936
Comments
@NickrenREN Did you test this on a multi-node cluster? Keep in mind that Access Modes work on node level, so multiple pods on the same node can access an RWO volume: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes BTW, I don't understand why |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
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. |
We expect the AccessModes in PV spec to be the
all ways
the volume supports,kubernetes/pkg/apis/core/types.go
Lines 278 to 280 in 029bb4e
and AccessModes in PVC spec is what user wants.
kubernetes/pkg/apis/core/types.go
Lines 393 to 395 in 029bb4e
then which one should we take into account to forbid multi-attach ?
For example: RBD for now support
RWO
andROX
(we can create a PV with AccessModes setting toRWO
andROX
), if a user create a PVC withRWO
, should we forbid multi-attach ?What happened:
Depending on AccessModes in PV spec. Will not forbid multi-attach in the situation described above.
What you expected to happen:
Depending on AccessModes in PVC spec (what user wants)
/assign
/sig storage
/cc @jsafrane @msau42 @jingxu97
The text was updated successfully, but these errors were encountered: