Hi,
I am sure I am doing something wrong, but can't figure it out. I create everything is up from a operator and cluster perspective(double confirmed the cluster is OK) but when I am creating PVC using mysql example, and I am not able to. I am just get Pending in pvc get:
mysql-pv-claim Pending collectiveblock 19s
When I describe it I get the following:
Normal Provisioning 6s (x5 over 1m) rook.io/block rook-operator-7cf8b7b766-tgm58 ae7b64f6-21da-11e8-b0f7-9ad3f40997ae External provisioner is provisioning volume for claim "default/mysql-pv-claim"
Warning ProvisioningFailed 6s (x5 over 1m) rook.io/block rook-operator-7cf8b7b766-tgm58 ae7b64f6-21da-11e8-b0f7-9ad3f40997ae Failed to provision volume with StorageClass "collectiveblock": invalid option "clusterNamespace" for volume plugin rookVolumeProvisioner
Normal ExternalProvisioning 4s (x11 over 1m) persistentvolume-controller waiting for a volume to be created, either by external provisioner "rook.io/block" or manually created by system administrator
I am checking the kubelet logs of where the pod is being create I see the following error:
2815 desired_state_of_world_populator.go:273] Error processing volume "mysql-persistent-storage" for pod "wordpress-mysql-557ffc4f69-8t74c_default(3d13715d-21e0-11e8-8276-0cc47ade9b1e)": error processing PVC "default"/"mysql-pv-claim": PVC default/mysql-pv-claim has non-bound phase ("Pending") or empty pvc.Spec.VolumeName ("")
The following is the Pool and Storageclass configurion:
apiVersion: rook.io/v1alpha1
kind: Pool
metadata:
name: collectivepool
namespace: warehouse
spec:
replicated:
size: 2
erasureCoded:
dataChunks: 2
codingChunks: 1
crushRoot: default
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: collectiveblock
provisioner: rook.io/block
parameters:
pool: collectivepool
clusterName: warehouse
clusterNamespace: warehouse
And this PVC config I am using same as the example just renamed the storageclassname:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mysql-pv-claim
labels:
app: wordpress
spec:
storageClassName: collectiveblock
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
Thanks
@shamalco Could you please fill out the other fields from the issue template, see https://github.com/rook/rook/issues/new
Thanks I am going to go ahead and close the case. I think I figured out what is happening, I will reopen with the correct format if I can't resolve it.
Excellent Project huge fan!
Hi @shamalco can you please let us know what was your issue - I'm experiencing the same.
Most helpful comment
Hi @shamalco can you please let us know what was your issue - I'm experiencing the same.