juicedata / juicefs-csi-driver

JuiceFS CSI Driver
https://github.com/juicedata/juicefs
Apache License 2.0
222 stars 84 forks source link

No such file or directory error #1117

Closed Haivilo closed 1 month ago

Haivilo commented 2 months ago

Error occurred in the mount pod:

mkdir: cannot create directory '/mnt/jfs//org-status-ci--gcp-us-central-1/iris_sklearn/4s2gjhtqxo7jhoi2': No such file or directory

There is a double slash //. It feels like a part of the path in the PVC is ignored.

PVC information:

➜  ~ k get pvc -n org-status-ci--gcp-us-central-1 | grep d805f7a2-b9ca
model-leecher-cac2d0fe88ebb8231e08414882f75a20   Bound    pvc-d805f7a2-b9ca-4135-917a-588cd7e8607f   1Gi          ROX            juicefs-sc1    <unset>                 14h
➜  ~ k get pvc model-leecher-cac2d0fe88ebb8231e08414882f75a20 -n org-status-ci--gcp-us-central-1 -o yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  annotations:
    path: models/org-status-ci--gcp-us-central-1/iris_sklearn/4s2gjhtqxo7jhoi2
    pv.kubernetes.io/bind-completed: "yes"
    pv.kubernetes.io/bound-by-controller: "yes"
    volume.beta.kubernetes.io/storage-provisioner: csi.juicefs.com
    volume.kubernetes.io/storage-provisioner: csi.juicefs.com
  creationTimestamp: "2024-09-12T04:04:04Z"
  finalizers:
  - kubernetes.io/pvc-protection
  name: model-leecher-cac2d0fe88ebb8231e08414882f75a20
  namespace: org-status-ci--gcp-us-central-1
  resourceVersion: "396642514"
  uid: d805f7a2-b9ca-4135-917a-588cd7e8607f
spec:
  accessModes:
  - ReadOnlyMany
  resources:
    requests:
      storage: 1Gi
  storageClassName: juicefs-sc1
  volumeMode: Filesystem
  volumeName: pvc-d805f7a2-b9ca-4135-917a-588cd7e8607f
status:
  accessModes:
  - ReadOnlyMany
  capacity:
    storage: 1Gi
  phase: Bound

Version: Helm Chart version: 0.19.4 (juicefs-csi-driver) Juicefs version: v1.1.0

zxh326 commented 1 month ago

please provide csi-node log and full mountpod log, better tell us how to reproduce it

Haivilo commented 1 month ago

Hi, the issue is resolved after upgrading to v0.24.7