Bug 1241150

Summary: quota: marker accounting can get miscalculated after upgrade to 3.7
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Vijaikumar Mallikarjuna <vmallika>
Component: quotaAssignee: Vijaikumar Mallikarjuna <vmallika>
Status: CLOSED ERRATA QA Contact: Anil Shah <ashah>
Severity: unspecified Docs Contact:
Priority: high    
Version: rhgs-3.1CC: annair, rcyriac, rhs-bugs, smohan, storage-qa-internal, vagarwal
Target Milestone: ---Keywords: Regression
Target Release: RHGS 3.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.7.1-9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1241153 (view as bug list) Environment:
Last Closed: 2015-07-29 05:10:46 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:    
Bug Blocks: 1202842, 1241153, 1241831    

Description Vijaikumar Mallikarjuna 2015-07-08 15:03:51 UTC
When glusterfs is upgraded from 3.6 to 3.7, quota usage can go wrong if inode-quota xattrs are missing

Comment 2 Vijaikumar Mallikarjuna 2015-07-08 15:05:55 UTC
regression test 'tests/bugs/quota/afr-quota-xattr-mdata-heal.t' is failing because of this issue

Comment 7 Anil Shah 2015-07-16 08:39:03 UTC
Did upgrade from 3.0.4 (glusterfs-3.6.0.53-1.el6.x86_64) to
glusterfs-3.7.1-10.el6rhs.x86_64

Created 10GB of data
Quota list before upgrade

[root@node1 yum.repos.d]# gluster v quota vol0 list
                  Path                   Hard-limit Soft-limit   Used  Available  Soft-limit exceeded? Hard-limit exceeded?
---------------------------------------------------------------------------------------------------------------------------
/                                         30.0GB       80%      10.0GB  20.0GB              No                   No


Create 5GB more data after upgrade

Quota list after upgrade to glusterfs-3.7.1-10.el6rhs.x86_64

[root@node2 yum.repos.d]# gluster v quota vol0 list
                  Path                   Hard-limit Soft-limit   Used  Available  Soft-limit exceeded? Hard-limit exceeded?
---------------------------------------------------------------------------------------------------------------------------
/                                         30.0GB       80%      15.0GB  15.0GB              No                   No


Bug verified on build  glusterfs-cli-3.7.1-10.el6rhs.x86_64

Comment 8 errata-xmlrpc 2015-07-29 05:10:46 UTC
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://rhn.redhat.com/errata/RHSA-2015-1495.html