Bug 1356824

Summary: glusterfs-3.7.1-16 problem with size difference in listing dir and file
Product: Red Hat Enterprise Linux 7 Reporter: Mike Hulsman <mike>
Component: glusterfsAssignee: Yaniv Kaul <ykaul>
Status: CLOSED WORKSFORME QA Contact: storage-qa-internal <storage-qa-internal>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: amukherj, bugs, mike, ndevos
Target Milestone: pre-dev-freezeKeywords: Rebase
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: 2019-11-19 08:57:09 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 Mike Hulsman 2016-07-15 06:44:58 UTC
Description of problem:
When listing a file on a mounted gluster directory, you get another size than listing the directory where the file is in.

See this example:
mount -t glusterfs p1h2c04-str.infra.proxy.nl:/vol01 /test/mike/
[root@localhost pending]# ls -la /test/mike/a0513b98-5161-492c-b9b2-4a27694bcf81/images/8eceec5b-769c-42b1-b5f1-b715b5ad3c3c/7d0e0cf8-429f-46d4-87ae-a670766a11c2
-rw-rw----. 1 36 36 1923022848 Jul 14 15:22 /test/mike/a0513b98-5161-492c-b9b2-4a27694bcf81/images/8eceec5b-769c-42b1-b5f1-b715b5ad3c3c/7d0e0cf8-429f-46d4-87ae-a670766a11c2

[root@localhost pending]# ls -la /mnt/a0513b98-5161-492c-b9b2-4a27694bcf81/images/8eceec5b-769c-42b1-b5f1-b715b5ad3c3c/7d0e0cf8-429f-46d4-87ae-a670766a11c2
-rw-rw----. 1 36 36 268435456 Jul 14 15:22 /mnt/a0513b98-5161-492c-b9b2-4a27694bcf81/images/8eceec5b-769c-42b1-b5f1-b715b5ad3c3c/7d0e0cf8-429f-46d4-87ae-a670766a11c2

Version-Release number of selected component (if applicable):
The default gluster pkgs in CentOS 7.2.15.11 are:
glusterfs-libs-3.7.1-16.0.1.el7.centos.x86_64
glusterfs-3.7.1-16.0.1.el7.centos.x86_64
glusterfs-client-xlators-3.7.1-16.0.1.el7.centos.x86_64
glusterfs-fuse-3.7.1-16.0.1.el7.centos.x86_64

How reproducible:
All the time

Steps to Reproduce:
1. Install CentOS 7.2.15.11 
2. Mount a gluster volume
3. ls the directory, ls a file in that directory

Actual results:
See above example

Expected results:
The same size all the time.

Additional info:
See:https://bugs.centos.org/view.php?id=11169
In recent gluster versions the problem does not exist.
But CentOS 7.2.15.11 is using the 3.7.1-16 version.

Comment 1 Niels de Vos 2016-07-19 12:48:18 UTC
Hi Mike, because CentOS is a clone of RHEL, the glusterfs package (client side only) needs to be updated there. I'm moving this bug from the Gluster community to RHEL now.

Customers that use Red Hat Gluster Storage have access to additional child channels with more recent glusterfs packages (unlimited subscriptions to the client-side).
  https://access.redhat.com/documentation/en-US/Red_Hat_Storage/3/html/Administration_Guide/sect-Native_Client.html#Installing_Native_Client

For CentOS, you already found out that the CentOS Storage SIG provides updated versions. Just for completeness, on CentOS one would take these steps:

  # yum install centos-release-gluster
  # yum install glusterfs-fuse

I agree that it would be nice for Gluster users to be able to use the standard packages, and not need to install updates from different channels/repositories.

Comment 2 Mike Hulsman 2016-07-19 14:12:52 UTC
Hi NIels,

Thanks for moving this to RHEL.
Had this problem because of the MIQ Darga appliance was using the 3.7.1-16 version.
And therefore SmartState Analysis on VM's was failing.
Took us a couple of weeks to find out the problem was on the 3.7.1-16 version
and not in the MIQ code.

Comment 4 Atin Mukherjee 2016-09-18 06:55:15 UTC
Is this issue seen with the latest rhgs client bits (from the channel)?

Comment 5 Mike Hulsman 2016-09-20 07:34:16 UTC
Hi Atin,

When using the latest rhgs clients, we don't have this problem.

Can the glusterfs* 3.7.1-16 removed or at least updated to a newer version in CentOS. Even now in the CentOS 7 update directory the 3.7.1-16 is the newest version.

Comment 7 Yaniv Kaul 2019-10-24 12:23:36 UTC
(In reply to Mike Hulsman from comment #5)
> Hi Atin,
> 
> When using the latest rhgs clients, we don't have this problem.
> 
> Can the glusterfs* 3.7.1-16 removed or at least updated to a newer version
> in CentOS. Even now in the CentOS 7 update directory the 3.7.1-16 is the
> newest version.

Niels - ^^^^ ?

Comment 8 Niels de Vos 2019-11-05 08:17:22 UTC
(In reply to Mike Hulsman from comment #5)
> When using the latest rhgs clients, we don't have this problem.
> 
> Can the glusterfs* 3.7.1-16 removed or at least updated to a newer version
> in CentOS. Even now in the CentOS 7 update directory the 3.7.1-16 is the
> newest version.

It is not possible to remove packages from the base CentOS repositories. These packages are rebuilds of the RHEL base packages and are expected to be available in the same versions.

However, you can install centos-release-gluster from CentOS Extras to enable an additional repository and get the latest maintained GlusterFS version and tools.

Please let me know if this works for you.

Comment 9 Mike Hulsman 2019-11-14 07:20:01 UTC
(In reply to Niels de Vos from comment #8)
> (In reply to Mike Hulsman from comment #5)
> > When using the latest rhgs clients, we don't have this problem.
> > 
> > Can the glusterfs* 3.7.1-16 removed or at least updated to a newer version
> > in CentOS. Even now in the CentOS 7 update directory the 3.7.1-16 is the
> > newest version.
> 
> It is not possible to remove packages from the base CentOS repositories.
> These packages are rebuilds of the RHEL base packages and are expected to be
> available in the same versions.
> 
> However, you can install centos-release-gluster from CentOS Extras to enable
> an additional repository and get the latest maintained GlusterFS version and
> tools.
> 
> Please let me know if this works for you.

Hi Niels,

This solution will work for me.
Thanks for the update.
This case can be closed, the centos-release-gluster repo will work for me.

Regards.
Mike

Comment 10 Mike Hulsman 2019-11-19 08:16:57 UTC
Case can be closed 
We will use the centos-release-gluster repo