From fed61731f130185810b6f871f35def19cb009129 Mon Sep 17 00:00:00 2001 From: Random-Liu Date: Thu, 14 Jan 2016 13:35:30 -0800 Subject: [PATCH] Fix bug in needsReconcile --- pkg/kubelet/status/manager.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/kubelet/status/manager.go b/pkg/kubelet/status/manager.go index 34fd8b43c72..06e09ec1b2d 100644 --- a/pkg/kubelet/status/manager.go +++ b/pkg/kubelet/status/manager.go @@ -410,8 +410,7 @@ func (m *manager) needsReconcile(uid types.UID, status api.PodStatus) bool { // The pod could be a static pod, so we should translate first. pod, ok := m.podManager.GetPodByUID(uid) if !ok { - // Although we get uid from pod manager in syncBatch, it still could be deleted before here. - glog.V(4).Infof("Pod %q has been deleted, no need to reconcile", format.Pod(pod)) + glog.V(4).Infof("Pod %q has been deleted, no need to reconcile", string(uid)) return false } // If the pod is a static pod, we should check its mirror pod, because only status in mirror pod is meaningful to us.