Bug 1475779

Summary: quota: directories doesn't get heal on newly added bricks when quota is full on sub-directory
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Anil Shah <ashah>
Component: quotaAssignee: Sanoj Unnikrishnan <sunnikri>
Status: CLOSED ERRATA QA Contact: Vinayak Papnoi <vpapnoi>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.3CC: amukherj, nchilaka, rhinduja, rhs-bugs, sheggodu, srmukher, storage-qa-internal, sunnikri
Target Milestone: ---   
Target Release: RHGS 3.4.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.12.2-8 Doc Type: Bug Fix
Doc Text:
Previously, a directory failed to get healed post an add brick operation if the directory's quota had already exceeded hard limit prior to add-brick. As a result, the directory structure remained incomplete on the newly added brick. With this fix, the directory heal is allowed to happen irrespective of quota limit resulting.
Story Points: ---
Clone Of:
: 1505355 (view as bug list) Environment:
Last Closed: 2018-09-04 06:34: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:
Bug Depends On: 1505355    
Bug Blocks: 1503134    

Description Anil Shah 2017-07-27 10:38:59 UTC
Description of problem:

When ever quota is full on sub-directory , adding new bricks on volume, 
quota doesn't allow new directory to be created on new added bricks.

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

glusterfs-3.8.4-35.el7rhgs.x86_64

How reproducible:

100%

Steps to Reproduce:
1. Create 2*2 dist-rep volume
2. Do fuse mount
3. Enable quota and set limit on sub-directory
4. Create data on sub-directory so that so quota is hit
5. add-brick on volume
6. do lookup on  client mount 


Actual results:

[root@dhcp46-239 fuse]# ll
ls: cannot access newnfs: No such file or directory
total 4
drwxr-xr-x. 2 root root 4096 Jul 24 16:21 newfuse
d?????????? ? ?    ?       ?            ? newnfs


Expected results:

lookup  on client should be successful

Additional info:

Comment 4 Sanoj Unnikrishnan 2017-10-24 06:44:42 UTC
upstream Patch for review 
https://review.gluster.org/#/c/18554/

Comment 8 Vinayak Papnoi 2018-05-03 09:08:53 UTC
Followed the steps in the description. After a complete add-brick and rebalance, the lookup from client mount was successful.

Hence, moving bug to Verified.

Comment 9 Vinayak Papnoi 2018-05-03 09:09:32 UTC
Build used to verify : glusterfs-3.12.2-8.el7rhgs.x86_64

Comment 10 Srijita Mukherjee 2018-09-03 14:55:10 UTC
updated the doc text. Kindly review and confirm

Comment 11 errata-xmlrpc 2018-09-04 06:34:19 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://access.redhat.com/errata/RHSA-2018:2607

Comment 12 Red Hat Bugzilla 2023-09-14 04:01:42 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days