-
Notifications
You must be signed in to change notification settings - Fork 787
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
ebs CSI volume detach failure #431
Comments
This should be fixed by #375 Have you tested the driver in the latest image tag? |
just compare your change with the private change I made to pass the failure. Just want to confirm with you, for ErrNotFound return value, it will NOT be treated as failure case, right? here was the change you made in DetachDisk function of Cloud.go: @@ -401,6 +401,11 @@ func (c *cloud) DetachDisk(ctx context.Context, volumeID, nodeID string) error {
here was the private change I made in the same function:
|
My project checkout the branch 0.4.0 instead of master branch. what's the difference between 0.4.0 and master? Should i use the master branch for image build? |
any schedule for new branch release? |
Here is a list of changes: v0.4.0...master
Are you using it for testing purpose or production use? If production use, I would recommend wait for the v0.5.0 release |
ok, I will wait for 0.5.0. Do you have the schedule for it? |
Yep. With the change, the driver will return success when detaching a NotFound volume. Could you test the container image with latest tag and see if this fixes your issue? |
I am also interested, if there is a planned time for the release of 0.5.0? This is blocking us from migrating to kubernetes v1.15, since there we need v0.4.0 and with this bug all deployments with persistent volumes will break (until manual fix) every time their node is dying ... If 0.5.0 release still takes time, is there the possibility to cherry-pick the fix for this and release a 0.4.1 release? |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/close as v0.5.0 is released |
@leakingtapan: Closing this issue. In response to this:
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. |
/kind bug
What happened?
default app-ebs-1 0/1 ContainerCreating 0 21h
Events:
Type Reason Age From Message
Warning FailedMount 35m (x122 over 21h) kubelet, ip-10-0-3-28.us-east-2.compute.internal Unable to attach or mount volumes: unmounted volumes=[ebspvc], unattached volumes=[default-token-4fdt8 ebspvc]: timed out waiting for the condition
Warning FailedMount 3m31s (x448 over 21h) kubelet, ip-10-0-3-28.us-east-2.compute.internal Unable to attach or mount volumes: unmounted volumes=[ebspvc], unattached volumes=[ebspvc default-token-4fdt8]: timed out waiting for the condition
Warning FailedAttachVolume 75s (x646 over 21h) attachdetach-controller AttachVolume.Attach failed for volume "pvc-fad1c767-22cf-11ea-9a1d-0661b881b6f6" : volume attachment is being deleted
3. checked attacher log as below message:
{"log":"I1224 05:49:56.456376 1 connection.go:184] GRPC error: rpc error: code = Internal desc = Could not detach volume "vol-0678c4ebfb20d577b" from node "i-00c71bf216a632245": could not detach volume "vol-0678c4ebfb20d577b" from node "i-00c71bf216a632245": IncorrectState: Volume 'vol-0678c4ebfb20d577b'is in the 'available' state.\n","stream":"stderr","time":"2019-12-24T05:49:56.456465393Z"}
What you expected to happen?
if the volume is available, why need perform detaching operation? even if detaching, it should return success for available volume instead of current failure, right?
How to reproduce it (as minimally and precisely as possible)?
a. apply statefulset with 3, and use aws-ebs-csi storageclass
b. reboot the node
Anything else we need to know?:
Environment
kubectl version
):v1.16.4
v0.4.0
The text was updated successfully, but these errors were encountered: