-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Node status updater should SetNodeStatusUpdateNeeded if it fails to #34368
Node status updater should SetNodeStatusUpdateNeeded if it fails to #34368
Conversation
Jenkins Kubemark GCE e2e failed for commit 69b1b75. Full PR test history. The magic incantation to run this job again is |
Jenkins GCI GCE e2e failed for commit 69b1b75. Full PR test history. The magic incantation to run this job again is |
|
||
glog.V(3).Infof( | ||
"Updating status for node %q succeeded. patchBytes: %q", | ||
//updateNode, _ := nsu.kubeClient.Core().Nodes().Get(string(nodeName)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove debug comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -105,7 +108,7 @@ func (nsu *nodeStatusUpdater) UpdateNodeStatuses() error { | |||
err) | |||
} | |||
|
|||
_, err = nsu.kubeClient.Core().Nodes().PatchStatus(string(nodeName), patchBytes) | |||
node, err = nsu.kubeClient.Core().Nodes().PatchStatus(string(nodeName), patchBytes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is node
used anywhere? If not, replace with _
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
update status When volume controller tries to update the node status, if it fails to update the nodes status, it should call SetNodeStatusUpdateNeeded so that the volume list could be updated next time.
69b1b75
to
70efadc
Compare
@saad-ali PTAL |
LGTM |
Let's cherry pick this to v1.4 |
@saad-ali Could you please take a look of this PR? It shows reviewer request changes? |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
cherrypicked in #35653 |
#35158-#35321-origin-release-1.4 Automatic merge from submit-queue Automated cherry pick of #34368 #35158 #35321 Cherry pick of #34368 #35158 #35321 on release-1.4. #34368: Node status updater should SetNodeStatusUpdateNeeded if it #35158: Fixing flake caused by lack of polling during read. #35321: Adding rkt binary to GCI nodes via cloud-init. This is
…ck-of-#34368-kubernetes#35158-kubernetes#35321-origin-release-1.4 Automatic merge from submit-queue Automated cherry pick of kubernetes#34368 kubernetes#35158 kubernetes#35321 Cherry pick of kubernetes#34368 kubernetes#35158 kubernetes#35321 on release-1.4. kubernetes#34368: Node status updater should SetNodeStatusUpdateNeeded if it kubernetes#35158: Fixing flake caused by lack of polling during read. kubernetes#35321: Adding rkt binary to GCI nodes via cloud-init. This is
update status
When volume controller tries to update the node status, if it fails to
update the nodes status, it should call SetNodeStatusUpdateNeeded so
that the volume list could be updated next time.
This change is