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

Do not fail pod status update if failed to get host IP #6054

Merged
merged 1 commit into from
Mar 27, 2015

Conversation

fgrzadkowski
Copy link
Contributor

This is similar how it used work in pod_cache.

This fixes #6046

@dchen1107

@zmerlynn
Copy link
Member

LGTM

@zmerlynn zmerlynn added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 27, 2015
@@ -1924,9 +1924,10 @@ func (kl *Kubelet) generatePodStatusByPod(pod *api.Pod) (api.PodStatus, error) {
podStatus.Host = kl.GetHostname()
hostIP, err := kl.GetHostIP()
if err != nil {
return api.PodStatus{}, fmt.Errorf("Cannot get host IP: %v", err)
glog.Errorf("Cannot get host IP: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Can specify for what pod?

@vmarmol
Copy link
Contributor

vmarmol commented Mar 27, 2015

LGTM, build is green.

vmarmol added a commit that referenced this pull request Mar 27, 2015
Do not fail pod status update if failed to get host IP
@vmarmol vmarmol merged commit e4fc45c into kubernetes:master Mar 27, 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.

HEAD: regression on updating pod status by kubelet
4 participants