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

Retry kube-addons creation if kube-addons creation fails. #6200

Merged
merged 1 commit into from Mar 31, 2015

Conversation

ArtfulCoder
Copy link
Contributor

etcd/kube-apiserver might not be up when kube-addons are being created.
added retry logic for kube-addons creation to give time for kube-apiserver & etcd to come up.

@ArtfulCoder
Copy link
Contributor Author

@thockin PTAL

@zmerlynn
Copy link
Member

The apiserver is supposed to be "up" by init.d ordering (see line 5). It may not be listening yet, though, so I agree there's a possible race here. We haven't had any real problems with the other add-on pods, though, except for one reported Salt race in #4357 that I couldn't reproduce. Any thoughts on why this one is special?

@ArtfulCoder
Copy link
Contributor Author

APIServer depends on etcd, and even though APIserver maybe up, etcd may not have come up by then.
This happens more frequently, if etcd is defined as a pod and has to wait for kubelet to start it(etcd) and etcd is not a service anymore.

I think the init.d ordering doesnt help much in general, because just be cause a service is started, does not mean that it is operational. So we should use the ordering, but we cant completely rely on it.

@zmerlynn
Copy link
Member

Got it. FWIW, the code LGTM and could use some more robustity. :)
On Mar 30, 2015 10:14 PM, "Abhi Shah" notifications@github.com wrote:

APIServer depends on etcd, and even though APIserver maybe up, etcd may
not have come up by then.
This happens, if etcd is defined as a pod and has to wait for kubelet to
start it.


Reply to this email directly or view it on GitHub
#6200 (comment)
.

@zmerlynn zmerlynn added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 31, 2015
vmarmol added a commit that referenced this pull request Mar 31, 2015
Retry kube-addons creation if kube-addons creation fails.
@vmarmol vmarmol merged commit a68f4fa into kubernetes:master Mar 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants