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

kube-up.sh sometimes doesn't complete #7272

Closed
erictune opened this issue Apr 23, 2015 · 7 comments
Closed

kube-up.sh sometimes doesn't complete #7272

erictune opened this issue Apr 23, 2015 · 7 comments

Comments

@erictune
Copy link
Member

This happened to me several times.
Kube-up got stuck at the "waiting for cluster initialization" step.
When I hit ctrl-c, the master was up and I could connect to it and get pods using a bearer token.
So, most likely, the KUBE_PASSWORD is incorrect.
Of course, it is lost when you press ctrl-c, so I can't verify this. Will update if I find a way to debug more.

@zmerlynn
Copy link
Member

That's confusing. If you ^C, it shouldn't even have a chance to create the .kube/config, should it? Unless it recycles a previous token? That sounds like a bad idea?

@roberthbailey
Copy link
Contributor

I'd nuke (or at least temporarily move) your ~/.kube directory and see if you can reproduce.

@roberthbailey
Copy link
Contributor

I did a ton of cluster up/down cycles with the bearer token change and never saw this. I also haven't seen it fail on Jenkins for GCE or GKE since the change went in.

@erictune erictune changed the title kube-up.sh sometimes doesn't create credentials kube-up.sh sometimes doesn't complete Apr 24, 2015
@erictune
Copy link
Member Author

it isn't creating the .kube/config.
And I had previously tried what Robby suggested.

@erictune
Copy link
Member Author

Okay, I had kube-up print the command it is using to try and reach the master.

  • when run directly on the command line, it fails with 401 unauthorized.
  • when I use the crypt function to compare the password value I'm passing with the hash in the htpasswd file, it matches.
  • when I try to access the master using several of the tokens, it works.

So, the problem seems to be on the server's handling of basic auth.

@erictune
Copy link
Member Author

Grr. I'm on a branch prior to #6618

@satnam6502
Copy link
Contributor

A config file is not being created for me -- .kubeconfig is still there and different from the output of kubectl config view @jlowdermilk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants