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

Ignore detached nodes when doing validate cluster #11349

Merged

Conversation

rajatjindal
Copy link
Contributor

Ran into this issue while doing rolling-update on our cluster today. The rolling updated was cancelled (for unrelated reasons) before it could complete.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 28, 2021
@k8s-ci-robot
Copy link
Contributor

Hi @rajatjindal. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Apr 28, 2021
@k8s-ci-robot k8s-ci-robot requested review from rdrgmnzs and zetaab April 28, 2021 16:03
@hakman
Copy link
Member

hakman commented Apr 28, 2021

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 28, 2021
@rifelpet
Copy link
Member

I'm curious why a detached node should be ignored from validation? the node and underlying instance should still be healthy so why not consider it for validation?

@rajatjindal
Copy link
Contributor Author

those nodes had no pods running on them and we ended up deleting them manually from AWS console.

i do not understand detached nodes logic 100%, may be @johngmyers can shed some light here.

i think from AWS and kops perspective those nodes still existed, but from k8s perspective the nodes were gone?

@johngmyers
Copy link
Member

If a node is detached then it is on its way out of the cluster. A lack of being in the cluster is not a reason to hold up further disruption to the cluster.

/lgtm
Not approving due to employer proximity issues.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 28, 2021
@rajatjindal
Copy link
Contributor Author

/retest

@johngmyers
Copy link
Member

To add more color, since detached nodes don't contribute to satisfying the IG target size check, the joined-to-cluster check is not not necessary to ensure the IG has enough capacity.

@johngmyers
Copy link
Member

Thinking about this further, we'll probably want to also exempt detached nodes from the node readiness and system-node-critical unready pod checks, at least for purposes of rolling update.

@rajatjindal
Copy link
Contributor Author

Thinking about this further, we'll probably want to also exempt detached nodes from the node readiness and system-node-critical unready pod checks, at least for purposes of rolling update.

can that be a separate PR or should I make that change as part of this PR?

@johngmyers
Copy link
Member

It could be separate, but the intent here is "don't let extra sick nodes hold up a rolling update" and there is value in getting all of the "sick node" validation failures taken care of at once.

I have been thinking of a tighter integration between cluster validation and rolling update. There was previous work on ignoring "sick node" validation failures for nodes outside of the IG being updated. The next step would be to count sick nodes in the same IG against maxUnavailable, allowing maxUnavailable - sick drains to proceed in parallel.

@rajatjindal
Copy link
Contributor Author

Hi @rifelpet do you think its reasonable to move ahead with the PR. if so, could you please help with the next steps?

thanks
Rajat Jindal

Copy link
Member

@rifelpet rifelpet left a comment

Choose a reason for hiding this comment

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

yes, I agree with the proposed logic now.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rifelpet

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 30, 2021
@hakman
Copy link
Member

hakman commented Apr 30, 2021

/retest

@k8s-ci-robot k8s-ci-robot merged commit 6d23e31 into kubernetes:master Apr 30, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.21 milestone Apr 30, 2021
@rajatjindal
Copy link
Contributor Author

Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants