Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cinder Storageclass not working in Kubernetes, how to debug?

I have set up a Kubernetes Cluster with RKE and cloud provider = openstack, with my OS_AUTH credentials. When I create a storageclass for Cinder creating PersistentVolumes with it doesn't work, giving me an error message of wrong parameters, although I don't even give any in the StorageClass definition file. Any help of how to find the errror would be appreciated, all the examples on the web only give code I used and it seems to work for others.

Cinder Storageclass not working in Kubernetes, how to debug?

I have set up a Kubernetes Cluster with RKE and cloud provider = openstack, with my OS_AUTH credentials. When I create a storageclass for Cinder creating PersistentVolumes with it doesn't work, giving me an error message of wrong parameters, although I don't even give any in the StorageClass definition file. Any help of how to find the errror would be appreciated, all the examples on the web only give code I used and it seems to work for others.

I set up the storageclass like this:

apiVersion: storage.k8s.io/v1 
kind: StorageClass 
metadata:   
  name: standard 
provisioner: kubernetes.io/cinder

and create the PersistentVolumeClaim like this:

 kind: PersistentVolumeClaim
 apiVersion: v1 
 metadata:   
   name: claim
   namespace: default
 spec:   
   accessModes:
   - ReadWriteOnce   
   resources:
     requests:
       storage: 10Gi   
   storageClassName: standard

and then I get the error message from kubectl describe pvc claim: Failed to provision volume with StorageClass "standard": failed to create a 10 GB volume: Invalid request due to incorrect syntax or missing required parameters.