Closed ap1969 closed 5 years ago
Thank you for creating the issue! One of our team members will get back to you shortly with additional information.
How do I share the gist with you, please?
I tried again with a clean cluster not using Rancher, and therefore using v1.0.0 of the plugin, and it could connect OK. So I think this is an issue with v0.2.0.
I'm having the same issue. I use the DigitalOcean managed kubernetes. After I recycled i kubernetes node, the csi driver is unable to attach the volume.
doctl compute volume list
output:
D Name Size Region Filesystem Type Filesystem Label Droplet IDs
0badc4dd-459f-11e9-985e-0a58ac14d087 pvc-08ff212a-459f-11e9-9a02-def1f971d450 8 GiB fra1 ext4
355986e7-3522-11e9-862a-0a58ac14d0bb pvc-2c6ceb84-3522-11e9-9a02-def1f971d450 250 GiB fra1 ext4
6ab8e875-3510-11e9-985e-0a58ac14d087 pvc-41a4c31b-350e-11e9-9a02-def1f971d450 8 GiB fra1 ext4 [133696412]
52abc650-350d-11e9-985e-0a58ac14d087 pvc-4959f67f-350d-11e9-9a02-def1f971d450 12 GiB fra1 ext4
51206c7d-351c-11e9-985e-0a58ac14d087 pvc-50094c5b-351c-11e9-9a02-def1f971d450 12 GiB fra1 ext4 [133696412]
61dfbf21-463b-11e9-985e-0a58ac14d087 pvc-ca0c5b40-463a-11e9-9a02-def1f971d450 2 GiB fra1 ext4 [133696411]
df5e953c-463a-11e9-985e-0a58ac14d087 pvc-ca0e515f-463a-11e9-9a02-def1f971d450 8 GiB fra1 ext4 [133696411]
e0611c39-459f-11e9-985e-0a58ac14d087 pvc-df9decfd-459f-11e9-9a02-def1f971d450 10 GiB fra1 ext4 [133696412]
And here the events from the pod:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 2m default-scheduler Successfully assigned ioneaccess/pros-79694f95db-d9zsk to charming-pasteur-uof4
Warning FailedAttachVolume 1m attachdetach-controller AttachVolume.Attach failed for volume "pvc-2c6ceb84-3522-11e9-9a02-def1f971d450" : rpc error: code = DeadlineExceeded desc = context deadline exceeded
Warning FailedMount 13s kubelet, charming-pasteur-uof4 Unable to mount volumes for pod "pros-79694f95db-d9zsk_ioneaccess(61e79900-4830-11e9-a261-229fa05727f2)": timeout expired waiting for volumes to attach or mount for pod "ioneaccess"/"pros-79694f95db-d9zsk". list of unmounted volumes=[pros]. list of unattached volumes=[pros default-token-vd2cf]
Any ideas?
@ChSch3000 it sounds like your issue is a different one since you're running into problems after recycling nodes, which is not what the OP reported AFAIU.
Anything but the latest version of the external-attacher side car that we provide had a bug which caused volumes to not reattach successfully under certain conditions, most notably involving recycles. If this is still a problem, please try on a more recent DOKS patch version for your release.
I'll be closing the issue in order to avoid conflating presumably non-related problems. Feel free to file a new bug report if the matter persists.
Thanks!
What did you do? (required. The issue will be closed when not provided.)
Tried to replicate the example to attach an existing volume to a deployment.
doctl compute volume list
The volume is detached from any droplets
pv.yml:
kubectl apply -f pv.yml
kubectl get pv
pvc.yml:
kubectl apply -f pvc.yml
kubectl get pvc
deployment.yml:
kubectl apply -f deployment.yml
kubectl get deployment
kubectl describe deployment my-csi-app
kubectl get pods
kubectl describe pod my-csi-app-74dc5d9cdc-4sjfh
The volume is still detached from any droplets
What did you expect to happen?
The deployment would launch successfully and the volume would be mounted onto the pod's filesystem
Configuration (MUST fill this out):
system logs: I'll share via a private gist
manifests, such as pvc, deployments, etc.. you used to reproduce:
As above
CSI Version: 0.2.0. Need version because I'm running kubernetes under Rancher, so the K8s version is out of my control.
Kubernetes Version:
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.1", GitCommit:"eec55b9ba98609a46fee712359c7b5b365bdd920", GitTreeState:"clean", BuildDate:"2018-12-13T10:39:04Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.6", GitCommit:"b1d75deca493a24a2f87eb1efde1a569e52fc8d9", GitTreeState:"clean", BuildDate:"2018-12-16T04:30:10Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}