GitHub user KuasarCloud added a comment to the discussion: StorageClass Missing 
with CSI Driver Enabled

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

```shell
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%
```

GitHub link: 
https://github.com/apache/cloudstack/discussions/12469#discussioncomment-16494665

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to