Bug 1636842

Summary: df shows Volume size as zero if Volume created and mounted using Glusterd2
Product: [Community] GlusterFS Reporter: Aravinda VK <avishwan>
Component: posixAssignee: Aravinda VK <avishwan>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5CC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-5.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-23 15:20:19 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 Aravinda VK 2018-10-08 05:35:28 UTC
Description of problem:

Missing default value for "export-statfs-size" in posix option table. When Volumes are mounted using Glusterd2, it treats this value as "off" since no default value is available in options table.

How reproducible:

100% with Glusterd2

Steps to Reproduce:
1. Create and Start the Volume using Glusterd2 and glustercli
2. Mount the Volume using mount command
3. Check the Volume size using `df` command.

Actual results:

df shows size of Volume as zero when mounted using Glusterd2


Expected results:

df should show actual size of Volume when mounted using Glusterd2

Comment 1 Worker Ant 2018-10-08 05:40:31 UTC
REVIEW: https://review.gluster.org/21362 (posix: Fix exporting default value for `export-statfs-size`) posted (#1) for review on release-5 by Aravinda VK

Comment 2 Worker Ant 2018-10-10 14:09:13 UTC
COMMIT: https://review.gluster.org/21362 committed in release-5 by "Aravinda VK" <avishwan> with a commit message- posix: Fix exporting default value for `export-statfs-size`

No default value was specified for `export-statfs-size` in posix
option table. Glusterd2 sets default value as `off` since the
option type is `bool`. Posix treats `export-statfs-size=on` if
not specified in volfile(That means default value is `on`)

This patch sets default value as `on`

> Change-Id: I5c6341183be9b62a78fdbc94621220f9284e1382
> updates: #302
> Signed-off-by: Aravinda VK <avishwan>

(cherry picked from commit 07088d95e450f847722e5decbfa5da18a0dbd9de)

Change-Id: Ib6b3accdb9921376c16040bd2312b99b0226a26f
Fixes: bz#1636842
Signed-off-by: Aravinda VK <avishwan>

Comment 3 Shyamsundar 2018-10-23 15:20:19 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-5.0, please open a new bug report.

glusterfs-5.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] https://lists.gluster.org/pipermail/announce/2018-October/000115.html
[2] https://www.gluster.org/pipermail/gluster-users/