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

Error getting primary cp: could not find master node #6943

Closed
nagoclpl opened this issue Mar 7, 2020 · 8 comments · Fixed by #6969
Closed

Error getting primary cp: could not find master node #6943

nagoclpl opened this issue Mar 7, 2020 · 8 comments · Fixed by #6969
Assignees
Labels
co/multinode Issues related to multinode clusters kind/bug Categorizes issue or PR as related to a bug. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.

Comments

@nagoclpl
Copy link

nagoclpl commented Mar 7, 2020

I am on this Mac ...

$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.15.2
BuildVersion:	19C57

I have installed minikube thus ...

$ brew install minikube

Here's the version of minikube installed ...

$ minikube version
minikube version: v1.8.1
commit: cbda04cf6bbe65e987ae52bb393c10099ab62014

I try to start minikube and face issue ...

$ minikube start
😄  minikube v1.8.1 on Darwin 10.15.2
✨  Automatically selected the hyperkit driver. Other choices: virtualbox, docker

💣  Error getting primary cp: could not find master node

😿  minikube is exiting due to an error. If the above message is not useful, open an issue:
👉  https://github.com/kubernetes/minikube/issues/new/choose
@BenHall
Copy link

BenHall commented Mar 7, 2020

We're also getting this on 18.04.

The environment to reproduce is https://katacoda.com/courses/kubernetes/launch-single-node-cluster

Run:

curl -Lo minikube https://storage.googleapis.com/minikube/releases/v1.8.1/minikube-linux-amd64 && chmod +x minikube && sudo cp minikube /usr/local/bin/ && rm minikube
minikube start

Update:

If we remove the minikube directory (created for 1.6) it starts to boot.

rm -rf .minikube/

@nagoclpl
Copy link
Author

nagoclpl commented Mar 7, 2020

Thanks for the workaround. I have verified that minikube starts fine after flushing the minikube directory (created for minikube 1.6).

@afbjorklund
Copy link
Collaborator

afbjorklund commented Mar 8, 2020

Seems to be an issue, when "upgrading" old machines (i.e. profiles) from 1.6 to 1.8 ?

The NodeType was changed from "Master" to "ControlPlane", without an upgrade path:
0b460e6

ping @sharifelgamal

BTW; You would think that the error message would be "could not find control plane node"

@afbjorklund afbjorklund added kind/bug Categorizes issue or PR as related to a bug. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. labels Mar 8, 2020
@sharifelgamal
Copy link
Collaborator

yeah this is fixable. I'll add some backwards compatibility and fix the error message.

@JavascriptMick
Copy link

I have same issue, on Mac, same build. Where would I find this .minikube directory?

@sharifelgamal
Copy link
Collaborator

sharifelgamal commented Mar 9, 2020

it should be in your home directory, usually under /Users/<username>

@JavascriptMick
Copy link

Ok so confirming the fix above however be cautious. your .minikube directory contains config for how you run minikube so only delete it if you remember how you set up minikube in the first place. In my case, I had set up minikube using virtual box and deleting the .minikube directory wiped out that setup config so I had to...

brew uninstall minikube
rm -rf ~/.minikube
brew install minikube
brew link minikube
minikube start --vm-driver=virtualbox

@tstromberg
Copy link
Contributor

Fixed in v1.8.2.

It's worth noting: minikube delete or minikube delete --purge is always preferable to removing files from minikube's directory, as the latter may cause state inconsistencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/multinode Issues related to multinode clusters kind/bug Categorizes issue or PR as related to a bug. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants