minikube: none: reusing node: detecting provisioner: Too many retries waiting for SSH to be available
Environment:
minikube version: v1.0.0
OS: Ubuntu 16.04 LTS (Xenial Xerus)
VM Driver: none
What happened: ``` Created a VM with none driver, stopped it, then started it again. The VM failed to start and minikube reported that it crashed.
What I expected to happen:
the VM created by the first minikube start command is started.
Output from the second minikube start command:
đ minikube v1.0.0 on linux (amd64)
𤚠Downloading Kubernetes v1.14.0 images in the background ...
đĄ Tip: Use 'minikube start -p <name>' to create a new cluster, or 'minikube delete' to delete this one.
đ Restarting existing none VM for "minikube" ...
â Waiting for SSH access ...
đŁ Unable to start VM: detecting provisioner: Too many retries waiting for SSH to be available. Last error: Maximum number of
retries (60) exceeded
đż Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
đ https://github.com/kubernetes/minikube/issues/new
Output from 'sudo minikube start --alsologtostderr -v=8 --vm-driver=none':
â Waiting for SSH access ...
Waiting for SSH to be available...
Getting to WaitForSSH function...
Error getting ssh command 'exit 0' : driver does not support ssh commands
To reproduce: sudo minikube start --vm-driver=none sudo minikube stop sudo minikube start --vm-driver=none
Starting a stopped VM was working in minikube v0.28.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 32 (8 by maintainers)
Commits related to this issue
- Fixing TestProxy Setup making sure minikube is deleted before setup to avoid https://github.com/kubernetes/minikube/issues/4132 — committed to medyagh/minikube by josedonizetti 5 years ago
- Fixing TestProxy Setup making sure minikube is deleted before setup to avoid https://github.com/kubernetes/minikube/issues/4132 — committed to medyagh/minikube by medyagh 5 years ago
Questioning: âWe test this sequenceâ func TestStartStop in test/integration/start_stop_delete_test.go has the code
if !strings.Contains(test.name, "docker") && usingNoneDriver(r) { t.Skipf("skipping %s - incompatible with none driver", test.name) }The test names in the func are: nocache_oldest, feature_gates_newest_cni, containerd_and_non_default_apiserver_port, crio_ignore_preflights. None contain âdockerâ. This seems to indicate that no startStop tests with noneDriver are performed.
Addressing: âwhy is it SSHing to itselfâ Sequence of code execution, as indicated by the output:
The pull request for #3387 added the DetectProvisioner invocation into startHost. DetectProvisioner runs SSH commands. The none driver doesnât support SSH commands.