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 a flag to disable force detach behavior in kube-controller-manager #120344
Add a flag to disable force detach behavior in kube-controller-manager #120344
Conversation
Hi @rohitssingh. 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 Once the patch is verified, the new status will be reflected by the 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. |
/remove-sig api-machinery |
/kind feature |
cmd/kube-controller-manager/app/options/attachdetachcontroller.go
Outdated
Show resolved
Hide resolved
2a7eba8
to
ae0e2a5
Compare
LGTM label has been added. Git tree hash: 10e35089f92ad5267d73ba3a9c4ce3f520fa3773
|
/assign @jpbetz |
/lgtm |
staging/src/k8s.io/kube-controller-manager/config/v1alpha1/types.go
Outdated
Show resolved
Hide resolved
7bd2b44
to
13dddca
Compare
/approve |
/lgtm |
LGTM label has been added. Git tree hash: a069353479a4fdd71897bdb60a40777182ba61c2
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jpbetz, msau42, rohitssingh 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 |
Hi @YuikoTakada, I think we've encountered a number of different scenarios with force detach:
I don't think in any case we would have been able to unmount within any given time window. IMHO, We would very much prefer shutdown to hang indefinitely so that we can easily find & fix these problems (as opposed to discovering data corruption days or weeks later). |
This is an abbreviated version of kubernetes#120344 It changes the boolean plumbing to use a global package variable to avoid conflicts. The unit test is added in an isolated file, named starting with z_ so it runs after other OSS unit tests which are not resilient to metrics starting at any value other than 0. Bug: b/272460654 Change-Id: I5437f3d2dc73f4f1a3782ba3afe5fdc8f93287e4
BTW, we can use Markdown in the changelog, including actual hyperlinks. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR adds a flag to allow the 6-minute force detach window to be disabled.
With this flag enabled,
ControllerUnpublishVolume
RPCs will not be dispatched if a given pod is stuck unmounting for 6-minutes and the node is deemed to be Unhealthy in that window.Which issue(s) this PR fixes:
Fixes #120328
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: