Open wenhuwang opened 2 years ago
Hi guys. Faced same issue with s3fs :
Warning | FailedMount | Unable to attach or mount volumes: unmounted volumes=[webroot], unattached volumes=[webroot default-token-s4cs9]: timed out waiting for the condition | a minute ago
Warning | FailedMount | MountVolume.SetUp failed for volume "pvc-287b3a57-4c6c-46e4-81e4-4dc651ee7a70" : kubernetes.io/csi: mounter.SetupAt failed: rpc error: code = Unknown desc = stat /var/lib/kubelet/pods/8f17a3e0-5a04-472e-ad65-c9f61a3c8f5e/volumes/kubernetes.io~csi/pvc-287b3a57-4c6c-46e4-81e4-4dc651ee7a70/mount: software caused connection abort | 2 minutes ago
Warning | FailedMount | Unable to attach or mount volumes: unmounted volumes=[webroot], unattached volumes=[default-token-s4cs9 webroot]: timed out waiting for the condition | 8 minutes ago
Normal | SuccessfulAttachVolume | AttachVolume.Attach succeeded for volume "pvc-287b3a57-4c6c-46e4-81e4-4dc651ee7a70"
RCLONE dont working too. Faced issue when i can't write or read the files from s3.
Can anybody help me with this ?
Hi guys. Faced same issue with s3fs :
Warning | FailedMount | Unable to attach or mount volumes: unmounted volumes=[webroot], unattached volumes=[webroot default-token-s4cs9]: timed out waiting for the condition | a minute ago Warning | FailedMount | MountVolume.SetUp failed for volume "pvc-287b3a57-4c6c-46e4-81e4-4dc651ee7a70" : kubernetes.io/csi: mounter.SetupAt failed: rpc error: code = Unknown desc = stat /var/lib/kubelet/pods/8f17a3e0-5a04-472e-ad65-c9f61a3c8f5e/volumes/kubernetes.io~csi/pvc-287b3a57-4c6c-46e4-81e4-4dc651ee7a70/mount: software caused connection abort | 2 minutes ago Warning | FailedMount | Unable to attach or mount volumes: unmounted volumes=[webroot], unattached volumes=[default-token-s4cs9 webroot]: timed out waiting for the condition | 8 minutes ago Normal | SuccessfulAttachVolume | AttachVolume.Attach succeeded for volume "pvc-287b3a57-4c6c-46e4-81e4-4dc651ee7a70"
RCLONE dont working too. Faced issue when i can't write or read the files from s3.
Can anybody help me with this ?
I change reclone to s3fs mode,this issues has been solved.
@wenhuwang as i told before I faced this issue with s3fs ;/
@wenhuwang as i told before I faced this issue with s3fs ;/
Check you yaml with the repo directory deploy/kubernetes,and use s3fs.
@wenhuwang as i told before I faced this issue with s3fs ;/
Have you solved it?
I'm using latest managed Kubernetes v1.25.4 Digital Ocean using their Spaces for the s3, with mounter rclone. I got the same error as OP. After a day trying an error, I managed to make it work and reproduce the error:
GRPC call: /csi.v1.Node/NodeStageVolume
GRPC error: The specified key does not exist.
The problem is using in StorageClass
with usePrefix: "true"
and prefix
contain /
path separator. Tested using rclone and it is working without having /
in prefix
.
Working: prefix: "parent-child"
Not working: prefix: "parent/child"
If contain /
, it create the parent and child subfolder correctly (can provision and attach) but at runtime it can't find the path.
# 1. usePrefix with path separator
metadata: parent/child/.metadata.json
mounted s3 path: (don't know, only the metadata file created)
# 2. usePrefix without path separator
metadata: parent-child/.metadata.json
mounted s3 path: parent-child/*
# 3. without usePrefix
metadata: pvc-xxx/.metadata.json
mounted s3 path: pvc-xxx/csi-fs/*
@ctrox
It is worth to note that if I usePrefix without path separator (no 2 above), from the mounted folder inside pod, I can see .metadata.json
!. The folder structure is not consistent. I already run this code but since go is no my everyday use, I can't debug it easily. I hope this info will help to fix this.
csi components description:
examples description:
Thanks for any help.