Bug 1470498

Summary: gluster block provisioner fails to create block device
Product: Red Hat Gluster Storage Reporter: krishnaram Karthick <kramdoss>
Component: rhgs-gluster-block-prov-containerAssignee: Mohamed Ashiq <mliyazud>
Status: CLOSED NOTABUG QA Contact: krishnaram Karthick <kramdoss>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.3CC: hchiramm, madam, pprakash, rhs-bugs, sankarshan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-13 04:48:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 1445448    

Description krishnaram Karthick 2017-07-13 04:39:03 UTC
Description of problem:

When a claim request is submitted to create a gluster block device, provisioning fails.
Dynamic provisioning however works for a regular gluster volume.

  FirstSeen     LastSeen        Count   From                                                            SubObjectPath   Type            Reason                  Message
  ---------     --------        -----   ----                                                            -------------   --------        ------                  -------
  14m           3m              187     persistentvolume-controller                                                     Normal          ExternalProvisioning    cannot find provisioner "gluster.org/glusterblock", expecting that a volume for the claim is provisioned either manually or via external software
  14m           1m              13      gluster.org/glusterblock 9e694b9a-677c-11e7-a183-0a580a830034                   Normal          Provisioning            External provisioner is provisioning volume for claim "storage-project/claimheketi"
  13m           1m              13      gluster.org/glusterblock 9e694b9a-677c-11e7-a183-0a580a830034                   Warning         ProvisioningFailed      Failed to provision volume with StorageClass "glusterblock": glusterblock: failed to create volume: [heketi] error creating volume Post dial tcp getsockopt: no route to host

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
create a claim file & try to submit a claim request to create a block volume

Actual results:
gluster block volume creation failed

Expected results:
gluster block volume should be created

Additional info:
heketi logs shall be attached

Comment 2 krishnaram Karthick 2017-07-13 04:48:40 UTC
This issue is due to a mis-configuration of claim file. Resturl was not updated with latest svc details.

kind: StorageClass
apiVersion: storage.k8s.io/v1
  name: glusterblock
provisioner: gluster.org/glusterblock
    resturl: ""
    #restuser: "admin"
    #restsecretnamespace: "default"
    #restsecretname: "heketi-secret2"
    opmode: "heketi"
    #hacount: "1"
    chapauth: "true"
    #clusterids: "454811fcedbec6316bc10e591a57b472"