-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
Fix volume detach while mount in progress #71145
Conversation
edfb39d
to
30e45fd
Compare
/kind bug |
30e45fd
to
fc2f8e8
Compare
fc2f8e8
to
0a6c028
Compare
@saad-ali waiting on LGTM ^^ |
|
||
// GetAttachedVolumes returns a list of volumes that is known to be attached | ||
// to the node. This list can be used to determine volumes that are either in-use | ||
// or have an operation pending. |
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.
// or might have a mount/unmount operation pending
0a6c028
to
43d1225
Compare
00b2bba
to
2b0cc24
Compare
/test pull-kubernetes-local-e2e-containerized |
Add test for verifying volume detach
2b0cc24
to
d2b6e30
Compare
@AishSundar as soon as @gnufied and @jingxu97 give me a thumbs up, I'll take a look and approve. |
/test pull-kubernetes-integration |
1 similar comment
/test pull-kubernetes-integration |
@@ -0,0 +1,145 @@ | |||
#!/bin/sh |
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.
how about name it to attachable-with-long-mount?
Also each time we want to modify the volume plugin behavior, we have to create a new file with almost the same code?
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.
We can rename in a follow up PR, since this is very close to 1.13. I will follow up this in - #71243
What kind of behaviour modification to volume plugin you are talking about? are you thinking of using flex to simulate some other edge cases in attach/detach flow?
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.
yes, it would be nice if we could simulate different cases on this volume plugin.
/lgtm just a small question about the test |
/test pull-kubernetes-integration |
@AishSundar The PR looks good for me. |
I think @saad-ali want to give a final check whether to merge it or not. |
/lgtm This would be good to get in to 1.13. It's a small enough change, has e2e test to verify it, and it fixes a pretty bad race. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gnufied, saad-ali 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 |
Let's cherry pick this back to k8s v1.12, v1.11, v1.10 |
@saad-ali yeah I will. with fix that fixes e2e as well. |
Fix volume getting detach while being mounted or formatted.
Fixes #70319