Bug 1572466

Summary: heketi is creating more volumes than requested for PVC
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Nitin Goyal <nigoyal>
Component: heketiAssignee: Michael Adam <madam>
Status: CLOSED DUPLICATE QA Contact: Nitin Goyal <nigoyal>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.3CC: hchiramm, jmulligan, nigoyal, rhs-bugs, rtalur, sankarshan, storage-qa-internal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-21 07:50:21 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:

Description Nitin Goyal 2018-04-27 05:20:14 UTC
Description of problem: I gave request to create 10 pvc at once. But heketi is creating more than 10 volumes.


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


How reproducible:


Steps to Reproduce:
1. Create 10 pvc at once without any delay.

Actual results: more than 10 volumes are created.


Expected results: only 10 volumes should created.

Comment 3 Nitin Goyal 2018-04-27 05:53:51 UTC
versions of images:

[root@dhcp47-29 tmp]# docker images
REPOSITORY                                                                                 TAG                 IMAGE ID            CREATED             SIZE
brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhgs3/rhgs-server-rhel7               3.3.1-14            50b7fc82bf7b        7 days ago          263 MB
brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhgs3/rhgs-gluster-block-prov-rhel7   3.3.1-11            80bcd2848659        7 days ago          239 MB
brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhgs3/rhgs-volmanager-rhel7           3.3.1-11            b089a8016dfb        7 days ago          281 MB
registry.access.redhat.com/openshift3/ose-deployer                                         v3.9.14             ba9779c50c5b        4 weeks ago         1.26 GB
registry.access.redhat.com/openshift3/ose                                                  v3.9.14             078f595369ae        4 weeks ago         1.26 GB
registry.access.redhat.com/openshift3/registry-console                                     v3.9                c7c3a2d7a678        4 weeks ago         257 MB
registry.access.redhat.com/openshift3/ose-pod                                              v3.9.14             e598d93f5abe        4 weeks ago         209 MB

Comment 5 Nitin Goyal 2018-05-16 06:23:57 UTC
I am using one shell script to create many PVCs at once.

$ for i in {1..10}; do ./pvc_create.sh claim$i 4 ; done

This is shell script which i am using
----------------------------------------------------------------------------------
cat <<END > glusterfs-pvc-claim.yaml
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: $1
  annotations:
    volume.beta.kubernetes.io/storage-class: gluster-container
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: $2Gi
END

oc create -f glusterfs-pvc-claim.yaml
----------------------------------------------------------------------------------

Comment 6 Raghavendra Talur 2018-09-21 07:50:21 UTC

*** This bug has been marked as a duplicate of bug 1554467 ***