Bug 1591185

Summary: Gluster Block PVC fails to mount on Jenkins pod
Product: [Community] GlusterFS Reporter: Pranith Kumar K <pkarampu>
Component: posixAssignee: bugs <bugs>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.1CC: atumball, bugs, kramdoss, pkarampu, prasanna.kalever, rgeorge, rhs-bugs, sankarshan, vbellur, xiubli
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-4.1.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1590710 Environment:
Last Closed: 2019-05-11 00:23:11 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: 1590710, 1591187    
Bug Blocks:    

Comment 1 Pranith Kumar K 2018-06-14 08:39:17 UTC
On a gluster volume with 100GB if we try to create a gluster-block of size 100GB with pre-allocation, block creation succeeds but it silently fails to allocate the correct sizes for the shards on the posix xlator.

sh-4.2# du -sh .shard/* | awk '{print $1}' | sort | uniq -c
      1 18M
      1 26M
   1597 64M

Because of this when writes happen on a pre-allocated block device, writes fail with ENOSPC which shouldn't happen for preallocated files.

Comment 2 Worker Ant 2018-06-14 14:16:16 UTC
COMMIT: https://review.gluster.org/20269 committed in release-4.1 by "Pranith Kumar Karampuri" <pkarampu> with a commit message- storage/posix: Handle ENOSPC correctly in zero_fill

Change-Id: Icc521d86cc510f88b67d334b346095713899087a
fixes: bz#1591185
Signed-off-by: Pranith Kumar K <pkarampu>
(cherry picked from commit 6ef91480f9e75f63100585bfd19694deb0c2457b)