-
Notifications
You must be signed in to change notification settings - Fork 150
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
PD --multi-writer doesn't seem to work with GKE/K8S #848
Comments
/assign @mattcary Thanks Steven! I'll work on a repro. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/lifecycle frozen This is still in my queue |
Extremely gentle ping -- this would still be quite useful |
Thanks for the ping, still in my queue :-P |
I looked into this for a bit, but didn't make progress. I verified your repro (thanks for such a clear example!) and then simultaneously attached the same shared disk to bare vms, and verified that while the devices on the VM were seeing data immediately appear back and forth, those same writes were at the same time not visible from within the k8s pod. I thought it might have to do with the bind mount k8s is doing. See here for how the kubelet sets up block devices. But making bind mounts on the bare vm and writing through them didn't have any affect---the writes were immediately visible across different VMs (except the k8s ones). Hrm. |
Next layer to check could be the container runtime |
Yeah good point. Maybe something with mount propagation. |
TLDR: attaching a --multi-writer PD to 2 GCE VMs works as expected, but if using GKE & exposing the PD as a block device then each pod will not see the other's writes unless the disk is detached and re-attached (e.g. when the pod restarts).
Here's a git repo with reproduction steps: https://github.com/scanfield/mw-repro
I know this is probably on the bleeding edge since --multi-writer is in beta, but it seems like the K8S functionality must work with other types of multi writer volumes.
Here's a slack thread for some context:
https://kubernetes.slack.com/archives/C09QZFCE5/p1632980542168500
The text was updated successfully, but these errors were encountered: