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:
@@ -63,7 +63,7 @@ func (nsu *nodeStatusUpdater) UpdateNodeStatuses() error {
|
|||||||
nodeObj, exists, err := nsu.nodeInformer.GetStore().GetByKey(nodeName)
|
nodeObj, exists, err := nsu.nodeInformer.GetStore().GetByKey(nodeName)
|
||||||
if nodeObj == nil || !exists || err != nil {
|
if nodeObj == nil || !exists || err != nil {
|
||||||
// If node does not exist, its status cannot be updated, log error and move on.
|
// 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",
|
"Could not update node status. Failed to find node %q in NodeInformer cache. %v",
|
||||||
nodeName,
|
nodeName,
|
||||||
err)
|
err)
|
||||||
|
Reference in New Issue
Block a user