Bug 1235244

Summary: Missing trusted.ec.config xattr for files after heal process
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Ashish Pandey <aspandey>
Component: disperseAssignee: Ashish Pandey <aspandey>
Status: CLOSED ERRATA QA Contact: Bhaskarakiran <byarlaga>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: annair, aspandey, asrivast, mzywusko, pkarampu, rhs-bugs, storage-qa-internal, vagarwal
Target Milestone: ---   
Target Release: RHGS 3.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.7.1-6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1235246 (view as bug list) Environment:
Last Closed: 2015-07-29 05:07:29 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, 1235246, 1235629    

Description Ashish Pandey 2015-06-24 11:48:32 UTC
Description of problem:

When a brick is down and we create a file on fuse mount, even after start of brick and heal process, on that brick the config xattr is missing for the file 

[root@rhs3 ~]#  getfattr  -d -e hex -m. /brick/dist/A3/file_141
getfattr: Removing leading '/' from absolute path names
# file: brick/dist/A3/file_141
trusted.bit-rot.version=0x0200000000000000558a8f3d0007b32e
trusted.ec.config=0x0000080c04000200
trusted.ec.dirty=0x00000000000000000000000000000000
trusted.ec.size=0x0000000000400000
trusted.ec.version=0x00000000000002670000000000000000
trusted.gfid=0xafa57f4ce7384e4999d659911b2eb88a

[root@rhs3 ~]#  getfattr  -d -e hex -m. /brick/dist/A2/file_141
getfattr: Removing leading '/' from absolute path names
# file: brick/dist/A2/file_141
trusted.bit-rot.version=0x0200000000000000558a900b000130ac
trusted.ec.config=0x0000080c04000200
trusted.ec.dirty=0x00000000000000000000000000000000
trusted.ec.size=0x0000000000400000
trusted.ec.version=0x00000000000002670000000000000000
trusted.gfid=0xafa57f4ce7384e4999d659911b2eb88a

[root@rhs3 ~]#  getfattr  -d -e hex -m. /brick/dist/A1/file_141
getfattr: Removing leading '/' from absolute path names
# file: brick/dist/A1/file_141
trusted.bit-rot.version=0x0200000000000000558a934b000403e6
trusted.ec.size=0x0000000000400000
trusted.ec.version=0x00000000000002670000000000000000
trusted.gfid=0xafa57f4ce7384e4999d659911b2eb88a



Version-Release number of selected component (if applicable):
[root@rhs3 ~]# gluster --version
glusterfs 3.7.1 built on Jun 23 2015 22:08:58
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GlusterFS under the terms of the GNU General Public License.


How reproducible:
100%

Steps to Reproduce:
1. Bring a brick down
2. Create a file on fuse mount
3. Bring the brick up and run heal process
   "gluster v heal testvol full"

4 - Check the xattr of the file on all the bricks
5 - On the brick which was down, config xattr is missing, however, on all the other bricks config xattr is present for the file. 


Actual results:

config xattr is missing for the file on bad brick

Expected results:

After bringing the brick up and after heal process, config xattr should be present for this brick too

Additional info:

Comment 4 Ashish Pandey 2015-06-30 09:10:16 UTC
Tested it on 3.7.1-6. Heal process is setting trusted.ec.config xattr properly. Marking this as fixed.

Comment 5 errata-xmlrpc 2015-07-29 05:07:29 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