RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1356824 - glusterfs-3.7.1-16 problem with size difference in listing dir and file
Summary: glusterfs-3.7.1-16 problem with size difference in listing dir and file
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: glusterfs
Version: 7.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: pre-dev-freeze
: ---
Assignee: Yaniv Kaul
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-15 06:44 UTC by Mike Hulsman
Modified: 2019-11-19 08:57 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-19 08:57:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CentOS 11169 0 None None None 2016-07-15 06:44:58 UTC

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


Note You need to log in before you can comment on or make changes to this bug.