<p>I have a gluster node and i did test heketi and it is creating volumes using it's cli.</p>
<p>This is my storage class:</p>
<pre><code>kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: myglusterfs
  annotations:  
    storageclass.kubernetes.io/is-default-class: &quot;true&quot;
provisioner: kubernetes.io/glusterfs
allowVolumeExpansion: true
reclaimPolicy: Retain
parameters:
  resturl: &quot;http://x.x.x:8080&quot;
  restuser: &quot;admin&quot;
  secretName: &quot;heketi-secret&quot;
  secretNamespace: &quot;default&quot;
  volumetype: &quot;replicate:0&quot;
  volumenameprefix: &quot;k8s-dev&quot;
  clusterid: &quot;4d9a77f712zb12x57dd42477b993e9af&quot;
</code></pre>
<p>When i create a sample PVC it will stuck on pending state:</p>
<pre><code>apiVersion: v1
kind: PersistentVolumeClaim
metadata:
 name: mypvc
spec:
 accessModes:
   - ReadWriteOnce
 resources:
  requests:
   storage: 1Gi
</code></pre>
<pre><code># kubectl get pvc
NAME    STATUS    VOLUME   CAPACITY   ACCESS MODES   STORAGECLASS   AGE
mypvc   Pending                                      myglusterfs    5m11s
</code></pre>
<pre><code># kubectl describe pvc mypvc 
Name:          mypvc
Namespace:     default
StorageClass:  myglusterfs
Status:        Pending
Volume:        
Labels:        &lt;none&gt;
Annotations:   volume.beta.kubernetes.io/storage-provisioner: kubernetes.io/glusterfs
Finalizers:    [kubernetes.io/pvc-protection]
Capacity:      
Access Modes:  
VolumeMode:    Filesystem
Mounted By:    &lt;none&gt;
Events:
  Type     Reason              Age                  From                         Message
  ----     ------              ----                 ----                         -------
  Warning  ProvisioningFailed  14s (x10 over 6m9s)  persistentvolume-controller  Failed to provision volume with StorageClass &quot;myglusterfs&quot;: failed to create volume: failed to create volume: see kube-controller-manager.log for details
</code></pre>
<p>When i see <code>kube-controller-manager</code> pod logs it's looks like this:</p>
<pre><code>1 event.go:291] &quot;Event occurred&quot; object=&quot;default/mypvc&quot; kind=&quot;PersistentVolumeClaim&quot; apiVersion=&quot;v1&quot; type=&quot;Warning&quot; reason=&quot;ProvisioningFailed&quot; message=&quot;Failed to provision volume with StorageClass \&quot;myglusterfs\&quot;: failed to create volume: failed to create volume: see kube-controller-manager.log for details&quot;
</code></pre>
<p>The question is: How i can find out why the pvc is in pending mode for ever? where is detailed logs?</p>

Vahid Alimohamadi
<p>When there is only one node on gluster cluster the volume type must be none.</p>
<pre><code>volumetype: &quot;none&quot;
</code></pre>
