Verified in OCP: oc v3.10.10 openshift v3.10.10 kubernetes v1.10.0+b81c8f8 # uname -a Linux ip-172-18-15-217.ec2.internal 3.10.0-862.6.3.el7.x86_64 #1 SMP Fri Jun 15 17:57:37 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux # cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.5 (Maipo) # cat pvc.yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: name: block-pvc spec: accessModes: - ReadWriteOnce storageClassName: glusterfs volumeMode: Block resources: requests: storage: 1Gi # oc describe pvc block-pvc Name: block-pvc Namespace: blockvolume StorageClass: glusterfs Status: Pending Volume: Labels: <none> Annotations: volume.beta.kubernetes.io/storage-provisioner=kubernetes.io/glusterfs Finalizers: [kubernetes.io/pvc-protection] Capacity: Access Modes: VolumeMode: Block Events: Type Reason Age From Message ---- ------ ---- ---- ------- Warning ProvisioningFailed 5s (x8 over 1m) persistentvolume-controller Failed to provision volume with StorageClass "glusterfs": kubernetes.io/glusterfs does not support block volume provisioning
(In reply to Qin Ping from comment #16) > Verified in OCP: > oc v3.10.10 > openshift v3.10.10 > kubernetes v1.10.0+b81c8f8 > > # uname -a > Linux ip-172-18-15-217.ec2.internal 3.10.0-862.6.3.el7.x86_64 #1 SMP Fri Jun > 15 17:57:37 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux > > # cat /etc/redhat-release > Red Hat Enterprise Linux Server release 7.5 (Maipo) > > # cat pvc.yaml > apiVersion: v1 > kind: PersistentVolumeClaim > metadata: > name: block-pvc > spec: > accessModes: > - ReadWriteOnce > storageClassName: glusterfs > volumeMode: Block > resources: > requests: > storage: 1Gi > > # oc describe pvc block-pvc > Name: block-pvc > Namespace: blockvolume > StorageClass: glusterfs > Status: Pending > Volume: > Labels: <none> > Annotations: > volume.beta.kubernetes.io/storage-provisioner=kubernetes.io/glusterfs > Finalizers: [kubernetes.io/pvc-protection] > Capacity: > Access Modes: > VolumeMode: Block > Events: > Type Reason Age From > Message > ---- ------ ---- ---- > ------- > Warning ProvisioningFailed 5s (x8 over 1m) persistentvolume-controller > Failed to provision volume with StorageClass "glusterfs": > kubernetes.io/glusterfs does not support block volume provisioning Awesome! Thanks a lot Qin Ping for verifying this bug!
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:2689