StorageClass Missing with CSI Driver Enabled #12469
Replies: 5 comments 5 replies
-
|
Hi @KuasarCloud, you will need to explicitly create the resources like StorageClass, PVC, etc as one would need to specify the disk offering they'd want to use when when creating the storage class. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks! after creating the StorageClass and I try to create a pvc I'm getting these errors. Not sure why it's attempting with these users ids |
Beta Was this translation helpful? Give feedback.
-
|
@Pearl1594 any comments? thanks! |
Beta Was this translation helpful? Give feedback.
-
|
@KuasarCloud Unfortunately Im not hitting this issue. I created a domain, and created an account/ user with User role in that domain. I then logged in as that user, created a project and in that project, created a CKS cluster with csi enabled, and was able to do so successfully.
Just to help invstigate what's happening, can you check what role does the user have, and does that role have the necessary permissions? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @Pearl1594 for responding I created the CKS with k8s version 1.33, using the same way you mentioned above and then created the StorageClass cat 0-storageclass.yaml
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: cloudstack-custom
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: csi.cloudstack.apache.org
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: false
parameters:
csi.cloudstack.apache.org/disk-offering-id: ea0a115a-0781-4230-bb4f-7b8c67fb9f36
➜ ~ kubectl apply -f 0-storageclass.yaml
storageclass.storage.k8s.io/cloudstack-custom created
➜ ~ kubectl get sc
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
cloudstack-custom (default) csi.cloudstack.apache.org Delete WaitForFirstConsumer false 10s
➜ ~ kubectl apply -f pvc.yaml
persistentvolumeclaim/example-pvc created
➜ ~ kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS VOLUMEATTRIBUTESCLASS AGE
example-pvc Pending cloudstack-custom <unset> 6s
➜ ~ kubectl apply -f pod.yaml
pod/example-pod created
E0408 21:57:23.031870 1 driver.go:96] "GRPC method failed" err="rpc error: code = Internal desc = CloudStack error: CloudStack API error 432 (CSExceptionErrorCode: 9999): The API [listVolumes] does not exist or is not available for the account for user id [26b7ae4d-6279-4932-aa7e-fd7c27b246c1]." method="/csi.v1.Controller/CreateVolume"
I0408 21:57:27.034407 1 volumes.go:80] "CloudStack API call" command="ListVolumes" params={"name":"pvc-1bfe1ea0-8ab0-4edd-b4d3-3b0891499c7e"}
E0408 21:57:27.041125 1 driver.go:96] "GRPC method failed" err="rpc error: code = Internal desc = CloudStack error: CloudStack API error 432 (CSExceptionErrorCode: 9999): The API [listVolumes] does not exist or is not available for the account for user id [1acb3d55-8f0c-4fa8-a8eb-a3302c40e27c]." method="/csi.v1.Controller/CreateVolume"
I0408 21:57:35.044025 1 volumes.go:80] "CloudStack API call" command="ListVolumes" params={"name":"pvc-1bfe1ea0-8ab0-4edd-b4d3-3b0891499c7e"}
E0408 21:57:35.050280 1 driver.go:96] "GRPC method failed" err="rpc error: code = Internal desc = CloudStack error: CloudStack API error 432 (CSExceptionErrorCode: 9999): The API [listVolumes] does not exist or is not available for the account for user id [be722077-cdbc-4a56-8286-52a9268dcb40]." method="/csi.v1.Controller/CreateVolume"
^C% |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hey team,
I'm deploying a Kubernetes 1.33.1 on ACS 4.22 with KVM. The cluster works but there is not StorageClass associated
When checking on the CSI pods, everything looks good except for this one in this containers - external-provisioner, external-attacher, external-resizer, csi-snapshotter
Beta Was this translation helpful? Give feedback.
All reactions