Bug 1573520

Summary: Glusterfs BlockVolume dynamic provisioning error
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: hchen
Component: kubernetesAssignee: Humble Chirammal <hchiramm>
Status: CLOSED ERRATA QA Contact: Neha Berry <nberry>
Severity: high Docs Contact:
Priority: high    
Version: rhgs-3.0CC: aos-bugs, aos-storage-staff, hchiramm, hekumar, jhou, jsafrane, madam, piqin, rhs-bugs, sankarshan, wmeng
Target Milestone: ---Keywords: Reopened
Target Release: CNS 3.10   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1563512 Environment:
Last Closed: 2018-09-12 11:00:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1563512    
Bug Blocks: 1568861    

Comment 16 Qin Ping 2018-07-03 03:11:58 UTC
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

Comment 17 Humble Chirammal 2018-07-03 07:23:02 UTC
(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!

Comment 20 errata-xmlrpc 2018-09-12 11:00:54 UTC
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