Merge pull request #34779 from yujuhong/status_logging

Automatic merge from submit-queue

Log more information on pod status updates

Also bump the logging level to V2 so that we can see them in a non-test
cluster.
This commit is contained in:
Kubernetes Submit Queue 2016-10-14 04:22:32 -07:00 committed by GitHub
commit f73afdc5c2

View File

@ -414,7 +414,7 @@ func (m *manager) syncPod(uid types.UID, status versionedPodStatus) {
if err == nil { if err == nil {
translatedUID := m.podManager.TranslatePodUID(pod.UID) translatedUID := m.podManager.TranslatePodUID(pod.UID)
if len(translatedUID) > 0 && translatedUID != uid { if len(translatedUID) > 0 && translatedUID != uid {
glog.V(3).Infof("Pod %q was deleted and then recreated, skipping status update", format.Pod(pod)) glog.V(2).Infof("Pod %q was deleted and then recreated, skipping status update; old UID %q, new UID %q", format.Pod(pod), uid, translatedUID)
m.deletePodStatus(uid) m.deletePodStatus(uid)
return return
} }