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

HyperV Hung at "Starting cluster components..."- connectex: Connection Denied #2976

Closed
DarkGhostHunter opened this issue Jul 13, 2018 · 10 comments
Assignees
Labels
cause/firewall-or-proxy When firewalls or proxies seem to be interfering co/hyperv HyperV related issues kind/bug Categorizes issue or PR as related to a bug. os/windows priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.

Comments

@DarkGhostHunter
Copy link

BUG REPORT

Minikube version: v0.28.0

  • OS: Windows 10 Pro x64 1803
  • VM Driver: Hyper-V
  • ISO version: v0.28.0

What happened:

Created an Internal Network Switch on HyperV. minikube executed using:

minikube start --vm-driver hyperv --hyperv-virtual-switch "NetworkSwitch"

After completing all the steps, it hangs on:

Starting cluster components...

Hyper-V shows the VM with 0% usage after a while. Issuing a shutdown signal hangs up the VM for several minutes, blocking even a disconnect (Windows says It cannot disconnect the machine).

minikube commands also become unresponsive. minikube logs hangs up or takes several minutes to display log messages. Even using -f. The only way to kill the machine is to connect directly via Hyper-V, login as root, and issue a shutdown -P.

What you expected to happen:

To NOT hang up. To keep being responsive.

How to reproduce it:

  1. Fresh install minikube an kubectl from chocolatey.
  2. Enable Hyper-V if necessary.
  3. Create an Internal Network Switch in Hyper-V.
  4. Disable IPv6 on the Internal Switch.
  5. Run minikube start --vm-driver hyperv --hyperv-virtual-switch "NetworkSwitch", being the NetworkSwitch the real name of the latter.
  6. Look how it hangs.

Output of minikube logs

Only this:

Error getting cluster bootstrapper: getting kubeadm bootstrapper: getting api client: Error loading host from store: open C:\Users\DevOps2\.minikube\machines\minikube\config.json: The system cannot locate the resource specified.

And this when using -v 5

I0713 00:41:01.649216    6844 kubernetes.go:119] error getting Pods with label selector "k8s-app=kube-proxy" [Get https://[fe80::215:5dff:fe01:173]:8443/api/v1/namespaces/kube-system/pods?labelSelector=k8s-app%3Dkube-proxy: dial tcp [fe80::215:5dff:fe01:173]:8443: connectex: Connection Denied]

Anything else do we need to know

  • Using --bootstrapper=localkube works, but using minikube stop hangs out the power off processes (sames a above).
@DarkGhostHunter DarkGhostHunter changed the title Minikube hangs out on startup Minikube hangs out on startup, cannot reach himself? Jul 13, 2018
@InbarRose
Copy link

I have the same issue, I was following instructions here: minikube-on-windows-10-with-hyper-v

I even performed the extra fixes (removed dynamic memory, and removed IPv6)

get this, (hundreds of this line):
I0717 13:08:20.394237 9652 kubernetes.go:119] error getting Pods with label selector "k8s-app=kube-proxy" [Get https://192.168.0.13:8443/api/v1/namespaces/kube-system/pods?labelSelector=k8s-app%3Dkube-proxy: dial tcp 192.168.0.13:8443: connectex: No connection could be made because the target machine actively refused it.]

And then at the end I get this:
E0717 13:08:20.394237 9652 start.go:299] Error restarting cluster: restarting kube-proxy: waiting for kube-proxy to be up for configmap update: timed out waiting for the condition

@InbarRose
Copy link

InbarRose commented Jul 17, 2018

@DarkGhostHunter Using --bootstrapper=localkube does work. Thanks for this tip, where did you figure this out?

@tpischke-bedag
Copy link

I have the same issue with Windows 7 and VirtualBox with chocolately installed minikube

@tstromberg tstromberg changed the title Minikube hangs out on startup, cannot reach himself? HyperV Hung at "Starting cluster components..."- connectex: Connection Denied Sep 18, 2018
@tstromberg tstromberg added os/windows co/hyperv HyperV related issues failed/local-networking startup failures due to networking issues kind/bug Categorizes issue or PR as related to a bug. labels Sep 18, 2018
@tstromberg
Copy link
Contributor

For what it's worth, I'm pretty sure this is representative of a HyperV virtual switch issue, but also possibly a firewall issue. Do you mind attaching the output of:

minikube --v=7 start --vm-driver hyperv --hyperv-virtual-switch "NetworkSwitch"

NOTE: This will likely be a large logfile.

@gbraad
Copy link
Contributor

gbraad commented Sep 20, 2018

No connection could be made because the target machine actively refused it.

This is likely related to a firewall (or antivirus) software

@tstromberg tstromberg added the cause/firewall-or-proxy When firewalls or proxies seem to be interfering label Sep 20, 2018
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 20, 2018
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 19, 2019
@tstromberg tstromberg added priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. and removed more-info-needed failed/local-networking startup failures due to networking issues lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. labels Jan 22, 2019
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: You can't close an active issue/PR unless you authored it or you are a collaborator.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

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.

@tstromberg
Copy link
Contributor

I'm closing this issue as it hasn't seen activity in awhile, and it's unclear if this issue still exists. If this issue does continue to exist in the most recent release of minikube, please feel free to re-open it.

Thank you for opening the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cause/firewall-or-proxy When firewalls or proxies seem to be interfering co/hyperv HyperV related issues kind/bug Categorizes issue or PR as related to a bug. os/windows priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.
Projects
None yet
Development

No branches or pull requests

7 participants