-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Enabling bidirectional mounts on pod kills docker #4072
Comments
I'm not yet familiar with bi-directional mounts. Any chance you could post instructions to reproduce this bug? |
https://github.com/rook/rook/blob/master/cluster/examples/kubernetes/ceph/csi/template/cephfs/csi-cephfsplugin.yaml#L71 this is the |
I'm seeing something similar maybe. I fired up minikube 1.1.1 and tried to load in a csi driver of my own and odd things start happening immediately after the driver registers. containers fail to start complaining /etc/resolv.conf doesn't exist anymore. logging onto the host, and catting it, says it doesn't exist either. very strange. I confirmed it doesn't do this outside of minikube. Should I file this as a separate issue, or keep it as part of this one? |
@Madhu-1 Have you enabled the mount propagation?
@tstromberg , Is there any way to pass |
Still seeing this with minikube 1.2.0. kubectl get pods #shows the pod never fully starting. You start to get weird errors like: |
|
Ah.... I found this: opencontainers/runc#1961
|
I can confirm it with cri-o too:
|
Is there any way to switch the root filesystem away from rootfs? |
I faced the same problem (csi driver not working) with kubernetes-sigs/secrets-store-csi-driver#49 . |
Is there anything we can do to help with this issue? Provide more context / ... Basically CSI is not working for minikube which seems like a big deal (given minikube tries to be a complete kubernetes setup)? |
More debugging in #3512 Its very odd. Its like mounts intended for the containers are leaking back out to the host. |
Comparing mounts before and after, it looks like its duplicating a lot of mounts... something really odd is happening. |
So, I tried looking at a box with working propagation:
It has two private mounts. Tried this on minikube:
No joy. Container mounts are still leaking out to the host:
|
Ok. I got it to work! Next I need to unwind a bit and see which of the things above are really required and which are not. |
@kfox1111 how do you override Thanks. |
I shutdown the vm. I then manually started it in libvirt, attached to the console, logged in. I edited /usr/lib/systemd/system/docker.service. Then systemctl daemon-reload; systemctl restart docker; Then you: minikube start |
Hi, I am experiencing the same issue, but I am afraid I am abit confused by the thread ^ . Is there any chance someone could summarize the workaround? |
Its fairly complicated to get the fix in place. You need to extract the iso, extract the initrd from it, update the init script, then rebuild the initrd, and then rebuild the iso from it. overwrite the iso from a previously created minikube, boot the vm not from minikube start but manually, login through the console, update docker.service to remove the environment variable, systemctl daemon-reload and restart the docker service, then minikube start. The fix should be making it into minikube 1.4.0 so it may be easier to wait unless you really need it now. |
Any ETA on Minikube 1.4.0? How do you know the fix is making it into 1.4.0 @kfox1111 ? |
There will be a beta ISO out soon |
@madhu-1I believe this issue is now addressed by minikube v1.4, as it the necessary fixes have been merged. If you still see this issue with minikube v1.4 or higher, please reopen this issue by commenting with Thank you for reporting this issue! |
/reopen |
@Lanayx: You can't reopen an issue/PR unless you authored it or you are a collaborator. 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. |
Hi, I'm getting the same symptoms with minikube 1.5.2 on windows+hyperv, when trying to install rook cluster |
With minikube-v1.6.0-beta.1 it works for me |
Enabling bidirectional mounts on pods kills docker.
deployed kubernetes using minikube with VirtualBox driver with
(CPUs=4, Memory=5000MB, Disk=80000MB)
The text was updated successfully, but these errors were encountered: