Skip to content
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

csi对接k8s无法使用 #18

Closed
mjhalxx opened this issue Dec 22, 2023 · 2 comments
Closed

csi对接k8s无法使用 #18

mjhalxx opened this issue Dec 22, 2023 · 2 comments

Comments

@mjhalxx
Copy link

mjhalxx commented Dec 22, 2023

使用 curve-operator 部署了 curvebs
参照部署指引,使用 helm chart 部署 curve-csi 使用的镜像是 curve-csi:v3.0.0
配置 storageclasss:

allowVolumeExpansion: true
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: curve
parameters:
  user: k8s
  cloneLazy: "true"
provisioner: curve.csi.netease.com
reclaimPolicy: Delete
volumeBindingMode: Immediate

创建 PVC :

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: curve-test-pvc
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 10Gi
  storageClassName: curve

csi-curveplugin 报错如下:

[controllerserver.go:91] "ID: 33 Req-ID: pvc-e27a23xxxxx failed to get volDetail" err="can not run curve [stat --user k8s --filename /k8s/csi-vol-pvc-e27a23xxxxx],err: exit status 1, output: stat fail, ret = -2 FAILED"
@mjhalxx
Copy link
Author

mjhalxx commented Dec 22, 2023

@Icedroid

@mjhalxx
Copy link
Author

mjhalxx commented Dec 22, 2023

已解决,snapshotserve配置不正确导致

@mjhalxx mjhalxx closed this as completed Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant