Skip to content
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

Merged
merged 1 commit into from
Oct 26, 2016

Conversation

jingxu97
Copy link
Contributor

@jingxu97 jingxu97 commented Oct 7, 2016

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.

Node status updater should SetNodeStatusUpdateNeeded if it fails to update status

This change is Reviewable

@k8s-github-robot k8s-github-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. release-note-label-needed labels Oct 7, 2016
@k8s-ci-robot
Copy link
Contributor

Jenkins Kubemark GCE e2e failed for commit 69b1b75. Full PR test history.

The magic incantation to run this job again is @k8s-bot kubemark e2e test this. Please help us cut down flakes by linking to an open flake issue when you hit one in your PR.

@k8s-ci-robot
Copy link
Contributor

Jenkins GCI GCE e2e failed for commit 69b1b75. Full PR test history.

The magic incantation to run this job again is @k8s-bot gci gce e2e test this. Please help us cut down flakes by linking to an open flake issue when you hit one in your PR.

@jingxu97
Copy link
Contributor Author

@k8s-bot gci gce e2e test this

@saad-ali PTAL


glog.V(3).Infof(
"Updating status for node %q succeeded. patchBytes: %q",
//updateNode, _ := nsu.kubeClient.Core().Nodes().Get(string(nodeName))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove debug comment

Copy link
Contributor Author

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)
Copy link
Member

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 _.

Copy link
Contributor Author

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.
@jingxu97 jingxu97 force-pushed the Oct/statusupdate-10-7 branch from 69b1b75 to 70efadc Compare October 24, 2016 20:59
@jingxu97
Copy link
Contributor Author

@saad-ali PTAL

@saad-ali
Copy link
Member

LGTM

@saad-ali saad-ali added release-note-none Denotes a PR that doesn't merit a release note. and removed release-note-label-needed labels Oct 25, 2016
@saad-ali
Copy link
Member

Let's cherry pick this to v1.4

@saad-ali saad-ali added this to the v1.4 milestone Oct 25, 2016
@jessfraz jessfraz added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Oct 25, 2016
@jingxu97 jingxu97 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 26, 2016
@jingxu97
Copy link
Contributor Author

@saad-ali Could you please take a look of this PR? It shows reviewer request changes?

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 453bfa1 into kubernetes:master Oct 26, 2016
@jessfraz
Copy link
Contributor

cherrypicked in #35653

@jessfraz jessfraz added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-none Denotes a PR that doesn't merit a release note. labels Oct 26, 2016
k8s-github-robot pushed a commit that referenced this pull request Oct 28, 2016
#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
shyamjvs pushed a commit to shyamjvs/kubernetes that referenced this pull request Dec 1, 2016
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants