Skip to content
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

Support --force for overriding the ssh check #6237

Merged
merged 4 commits into from
Feb 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions cmd/minikube/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,10 @@ func validateNetwork(h *host.Host, r command.Runner) string {
}

func trySSH(h *host.Host, ip string) {
if viper.GetBool(force) {
return
}

sshAddr := net.JoinHostPort(ip, "22")

dial := func() (err error) {
Expand All @@ -1138,17 +1142,19 @@ func trySSH(h *host.Host, ip string) {
if err := retry.Expo(dial, time.Second, 13*time.Second); err != nil {
exit.WithCodeT(exit.IO, `minikube is unable to connect to the VM: {{.error}}

This is likely due to one of two reasons:
This is likely due to one of two reasons:

- VPN or firewall interference
- {{.hypervisor}} network configuration issue
- VPN or firewall interference
- {{.hypervisor}} network configuration issue

Suggested workarounds:
Suggested workarounds:

- Disable your local VPN or firewall software
- Configure your local VPN or firewall to allow access to {{.ip}}
- Restart or reinstall {{.hypervisor}}
- Use an alternative --vm-driver`, out.V{"error": err, "hypervisor": h.Driver.DriverName(), "ip": ip})
- Disable your local VPN or firewall software
- Configure your local VPN or firewall to allow access to {{.ip}}
- Restart or reinstall {{.hypervisor}}
- Use an alternative --vm-driver
- Use --force to override this connectivity check
`, out.V{"error": err, "hypervisor": h.Driver.DriverName(), "ip": ip})
}
}

Expand Down