-
Notifications
You must be signed in to change notification settings - Fork 66
Description
Describe the bug
When installing curvine-csi and enabling the csi-plugin in standalone mode using Helm, an index out-of-bounds error will occur when a pod is mounted to the cluster.
I1229 06:55:58.861197 1 node_standalone.go:96] RequestID: req-633a0671, [Standalone] NodeStageVolume called with request: volume_id:"4a4c5bff@/lance-volumes@pvc-3b707337-9277-44c6-8465-dbc212d5e54f" staging_target_path:"/var/lib/kubelet/plugins/kubernetes.io/csi/curvine/c0a7bd4cedac3f9ce5f2e54885ff4298d8d7fd3bb4abdab73a786dc5b0dc06d6/globalmount" volume_capability:<mount:<fs_type:"ext4" > access_mode:<mode:SINGLE_NODE_WRITER > > volume_context:<key:"author" value:"curvine.io" > volume_context:<key:"curvine-path" value:"/lance-volumes/pvc-3b707337-9277-44c6-8465-dbc212d5e54f" > volume_context:<key:"fs-path" value:"/lance-volumes" > volume_context:<key:"io-threads" value:"4" > volume_context:<key:"master-addrs" value:"cv-curvine-master-0.cv-curvine-master.default.svc.cluster.local:8995" > volume_context:<key:"path-type" value:"DirectoryOrCreate" > volume_context:<key:"storage.kubernetes.io/csiProvisionerIdentity" value:"1766990530496-8081-curvine" > volume_context:<key:"worker-threads" value:"8" >
panic: runtime error: slice bounds out of range [:8] with length 7
goroutine 178 [running]:
github.com/curvineio/curvine-csi/pkg/csi.(*standaloneMountManagerImpl).getStandaloneName(0x40006cf1d8?, {0x4000368840, 0x8})
/workspace/curvine-csi/pkg/csi/standalone_manager.go:193 +0x188
github.com/curvineio/curvine-csi/pkg/csi.(*standaloneMountManagerImpl).EnsureStandalone(0x40001932d0, {0x1849028, 0x400048ac90}, 0x400013d9e0)
/workspace/curvine-csi/pkg/csi/standalone_manager.go:209 +0x44
github.com/curvineio/curvine-csi/pkg/csi.(*nodeServiceStandalone).NodeStageVolume(0x4000612740, {0x1849028, 0x400048ac90}, 0x40001ac5a0)
/workspace/curvine-csi/pkg/csi/node_standalone.go:135 +0x3ac
github.com/curvineio/curvine-csi/pkg/csi.(*Driver).NodeStageVolume(0x25