Merge pull request #30903 from jingxu97/cherrypick-8-19

Automatic merge from submit-queue

Avoid failure message flush log when node no longer exist

When node is deleted, attach-detach controller cache may contain stale
information of this node, and update node status fails in reconciler
loop. This message easily flush the log file. This PR is just a quick
fix of this issue. More complete fix including make controller cache
up to date will be addressed in another PR.
This commit is contained in:
Kubernetes Submit Queue
2016-08-19 15:45:58 -07:00
committed by GitHub

View File

@@ -63,7 +63,7 @@ func (nsu *nodeStatusUpdater) UpdateNodeStatuses() error {
nodeObj, exists, err := nsu.nodeInformer.GetStore().GetByKey(nodeName)
if nodeObj == nil || !exists || err != nil {
// If node does not exist, its status cannot be updated, log error and move on.
glog.Warningf(
glog.V(5).Infof(
"Could not update node status. Failed to find node %q in NodeInformer cache. %v",
nodeName,
err)