Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1581231 - quota crawler not working unless lookup is done from mount [NEEDINFO]
quota crawler not working unless lookup is done from mount
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: quota (Show other bugs)
3.4
Unspecified Unspecified
unspecified Severity medium
: ---
: RHGS 3.4.0
Assigned To: Sanoj Unnikrishnan
Vinayak Papnoi
:
Depends On: 1533000
Blocks: 1503137
  Show dependency treegraph
 
Reported: 2018-05-22 07:58 EDT by Vinayak Papnoi
Modified: 2018-09-20 03:32 EDT (History)
7 users (show)

See Also:
Fixed In Version: glusterfs-3.12.2-14
Doc Type: Bug Fix
Doc Text:
Previously, while quota was enabled on a volume, the quota used values were not updated to the list command until a lookup was done from the client mount point. Due to this, there was inaccuracy while reporting the file size even after performing the crawl operation. With this fix, it is ensured that the crawl operation looks up all files and reports the accurate quota used.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-09-04 02:48:11 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
srmukher: needinfo? (sunnikri)


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:2607 None None None 2018-09-04 02:49 EDT

  None (edit)
Description Vinayak Papnoi 2018-05-22 07:58:12 EDT
Description of problem:
=======================

With quota enabled on a volume, the quota used values are not updated to the list command until a lookup is done from the client mount point.

Before lookup :

# gluster v q alpha list /
                  Path                   Hard-limit  Soft-limit      Used  Available  Soft-limit exceeded? Hard-limit exceeded?
-------------------------------------------------------------------------------------------------------------------------------
/                                           N/A        N/A         0Bytes       N/A             N/A                N/A

# getfattr -d -m . /bricks/brick0/alpha-b1/d1/d2/foo10
getfattr: Removing leading '/' from absolute path names
# file: bricks/brick0/alpha-b1/d1/d2/foo10
security.selinux="system_u:object_r:glusterd_brick_t:s0"
trusted.afr.dirty=0sAAAAAAAAAAAAAAAA
trusted.gfid=0sgZRynIXvQFuWElsZo0Gd3g==
trusted.gfid2path.181b5fea80bd1afd="7171e5d4-8bef-45aa-83e8-f9e279f3977d/foo10"

After lookup :

# gluster v q alpha list /
                  Path                   Hard-limit  Soft-limit      Used  Available  Soft-limit exceeded? Hard-limit exceeded?
-------------------------------------------------------------------------------------------------------------------------------
/                                           N/A        N/A        100.0MB       N/A             N/A                N/A

# getfattr -d -m . /bricks/brick0/alpha-b1/d1/d2/foo10
getfattr: Removing leading '/' from absolute path names
# file: bricks/brick0/alpha-b1/d1/d2/foo10
security.selinux="system_u:object_r:glusterd_brick_t:s0"
trusted.afr.dirty=0sAAAAAAAAAAAAAAAA
trusted.gfid=0sgZRynIXvQFuWElsZo0Gd3g==
trusted.gfid2path.181b5fea80bd1afd="7171e5d4-8bef-45aa-83e8-f9e279f3977d/foo10"
trusted.glusterfs.quota.7171e5d4-8bef-45aa-83e8-f9e279f3977d.contri.4=0sAAAAAAAQAAAAAAAAAAAAAQ==



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

glusterfs-3.12.2-11.el7rhgs.x86_64


How reproducible:
=================

Always


Steps to Reproduce:
===================

1. Enable quota on volume
2. Mount the volume and create some directories an files from mount
3. Do "gluster volume quota volname list /"


Actual results:
===============

List shows 0Bytes as USED.


Expected results:
=================

List should show appropriate values wrt the USED value.


Additional info:
Comment 2 Sanoj Unnikrishnan 2018-05-22 08:23:19 EDT
Upstream patch link: https://review.gluster.org/20057
Comment 10 errata-xmlrpc 2018-09-04 02:48:11 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2607

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