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

add additional options to avoid node drain or delete getting stuck #10926

Merged
merged 1 commit into from
Mar 26, 2021

Conversation

prezha
Copy link
Contributor

@prezha prezha commented Mar 25, 2021

fixes: #10925

an example error condition is given in the issue's description

add additional options to avoid kubectl node drain or api node delete processes getting stuck

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 25, 2021
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Mar 25, 2021
@medyagh
Copy link
Member

medyagh commented Mar 25, 2021

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Mar 25, 2021
Copy link
Member

@medyagh medyagh left a comment

Choose a reason for hiding this comment

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

@prezha do u mind link to the documentation of these flags and evaluate what they exaclty do and what are the possible side effects of these ?

@minikube-pr-bot
Copy link

kvm2 Driver
error collecting results for kvm2 driver: timing run 0 with Minikube (PR 10926): timing cmd: [/home/performance-monitor/.minikube/minikube-binaries/10926/minikube start --driver=kvm2]: starting cmd: fork/exec /home/performance-monitor/.minikube/minikube-binaries/10926/minikube: exec format error
docker Driver
error collecting results for docker driver: timing run 0 with Minikube (PR 10926): timing cmd: [/home/performance-monitor/.minikube/minikube-binaries/10926/minikube start --driver=docker]: starting cmd: fork/exec /home/performance-monitor/.minikube/minikube-binaries/10926/minikube: exec format error

@prezha
Copy link
Contributor Author

prezha commented Mar 25, 2021

@prezha do u mind link to the documentation of these flags and evaluate what they exaclty do and what are the possible side effects of these ?

@medyagh in the comments just above those changed/added lines there are references to the docs and an explanation of what are they're for: ie, the old lines 107-108 and new line 124:

// kubectl drain with extra options to prevent ending up stuck in the process
// ref: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#drain

// set 'GracePeriodSeconds: 0' option to delete node immediately (ie, w/o waiting)

do you think more details should be added?

@medyagh medyagh merged commit 02bd568 into kubernetes:master Mar 26, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: medyagh, prezha

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 Mar 26, 2021
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flake TestMultiNode/serial/RestartMultiNode test times out due to drain node process got stuck
4 participants