-
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
minikube hangs when starting local cluster using KVM driver after it was stopped. #1107
Comments
I'm pretty sure this issue is fixed with a PR that I just sent dhiltgen/docker-machine-kvm#33 The issue was that after stopping, minikube comes up with a different IP and now there are two entries in the leases file. The driver incorrectly picks the first one it finds, even though the leases file should be parsed in log format, i.e., the last entry is the correct one. I patched this issue in the vendored version of the driver at minikube HEAD. You should be able to start/stop after downloading the nightly build of minikube and running
You can grab a minikube build you need here https://storage.googleapis.com/minikube-builds/1050/minikube-linux-amd64 Alternatively, you can wait for a docker-machine-driver-kvm release with this fix Let me know if that fixes the issue for you. |
Damn, that's quite a timing for a bug report and a fix. Using the CI build 1050 and |
Yeah - thats part of the reason why we are starting to vendor in the drivers. This will allow us to patch or vendor in a fork, and more closely control the behavior of these drivers. If all goes well, eventually |
@r2d4 I can also confirm that your fix b9a115b resolves the issue of VM getting unreachable after stop- & starting the VM, as mentioned in #951 (comment). I had to set One question: why does libvirt assign a different IP address after each restart? AFAIK its "custom lease file" (*.status) sets a different client-id every time, which causes the IP address to change as well. But I couldn't figure out the reason. |
I still see this issue, using minikube v0.17.1 released 3 March. I assume it already includes the patch that fixes this issue? I also then tried with the build from @r2d4 and "set use-vendored-driver true", however with both methods I still get the hang on stop/start. |
Build 1050 does eventually work I found, it tries to ssh a few times and succeeds at some point. For the latest release version ssh fails indefinitely for me still. I would use 1050 for now, but it does not have the minikube mount command, which I require. Is there any chance you can build the latest release with the kvm vendor, in which case it'll fix my hanging issue and have minikube mount support? |
So the latest release of minikube removed built in kvm, but the latest release of docker-machine-kvm does have the patch merged, so in theory this issue should work with the latest release of both components, but does not. I still see this issue using both components latest releases. |
experienceing this issue now also. including the prolonged ssh retry cycle which does eventually work. |
@lukeab this issue is fixed in the latest KVM driver. I think this issue can be closed. Feel free to open a new issue if you're still getting this with the latest version |
What commit is meant to have fixed this? This one? I still had the issue with version 0.8.2, and cannot see what in 0.10.0 is supposed to have resolved it? I switched away from minikube, and just not going to go back to using it until the ssh and mounting works reliably. |
For me, upgrading docker-machine-driver-kvm from the tested 0.7.0 to 0.8.2 solved the issue. sudo curl -L https://github.com/dhiltgen/docker-machine-kvm/releases/download/v0.8.2/docker-machine-driver-kvm -o /usr/local/bin/docker-machine-driver-kvm |
It should be fixed by commit dhiltgen/docker-machine-kvm@e5724f2, which is included in both v0.8.2 and v0.10.0. |
Hello, Minikube v0.19.0 Still need to delete the minikube cluster between restarts |
I still having this issue. minikube v1.16.0 on Ubuntu 20.10 cat /etc/os* |
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
This is a bug.
Minikube version (use
minikube version
):Environment:
cat ~/.minikube/machines/minikube/config.json | grep DriverName
):cat ~/.minikube/machines/minikube/config.json | grep ISO
):What happened:
When using KVM driver minikube starts fine and works as expected, but it cannot be started again after it was stopped.
What you expected to happen:
I'd expect it to start back up. Same issue was tested with VirtualBox driver and it works as expected: starts -> stops -> starts back up again
How to reproduce it (as minimally and precisely as possible):
Up to this point everything works as expected, but starting it back up is a problem:
Attached also is the screenshot of the VM, just in case:
Anything else do we need to know:
The text was updated successfully, but these errors were encountered: