Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1238398 - Unable to examine file in metadata split-brain after setting `replica.split-brain-choice' attribute to a particular replica
Unable to examine file in metadata split-brain after setting `replica.split-b...
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: replicate (Show other bugs)
3.1
Unspecified Unspecified
unspecified Severity high
: ---
: RHGS 3.1.1
Assigned To: Anuradha
Shruti Sampat
: ZStream
Depends On:
Blocks: 1216951 1240244 1251815 1256909
  Show dependency treegraph
 
Reported: 2015-07-01 15:12 EDT by Shruti Sampat
Modified: 2016-09-19 22:00 EDT (History)
10 users (show)

See Also:
Fixed In Version: glusterfs-3.7.1-13
Doc Type: Bug Fix
Doc Text:
Previously, the split-brain-choice was not being considered when a file is only in the metadata split-brain. As a consequence, incorrect file metadata (with fops like ls, stat) was getting displayed for files in split-brain through the mount even after you set replica.split-brain-choice. With this fix, the correct metadata is displayed.
Story Points: ---
Clone Of:
: 1240244 (view as bug list)
Environment:
Last Closed: 2015-10-05 03:17:52 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1845 normal SHIPPED_LIVE Moderate: Red Hat Gluster Storage 3.1 update 2015-10-05 07:06:22 EDT

  None (edit)
Description Shruti Sampat 2015-07-01 15:12:10 EDT
Description of problem:
------------------------

After choosing a particular replica as `replica.split-brain-choice', `ls' or `stat' on a file/directory in metadata split-brain does not report correct results always.

For e.g., consider the case of mismatching permissions on both replicas. After choosing one of the replicas (say, client-0) as the choice to examine the file, `ls -l' gives the appropriate permissions. On choosing the other replica, (say client-1), `ls -l' does not show the permissions from client-1, instead shows the same permissions as those on client-0.

This behavior, however, is not seen in case of mismatching xattrs on both replicas. 

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
glusterfs-3.7.1-6.el7rhgs.x86_64

How reproducible:
-----------------
Always

Steps to Reproduce:
--------------------
1. Create a 1x2 volume, start it and fuse mount it.
2. Create a file or directory on the mount point.
3. Kill one replica and change the permissions of the file from the mount point.
4. Bring back the killed brick and kill the other replica.
5. Change permissions of the file from the mount point again.
6. Bring back killed brick and examine the permissions of the file using `ls -l' command after choosing a replica as the replica.split-brain-choice on the mount point -

# setfattr -n replica.split-brain-choice -v "new-client-1" testfile

Actual results:
----------------

Incorrect permissions are shown after selecting a replica as replica.split-brain-choice.

Expected results:
------------------
Correct permissions need to be shown on selecting a particular replica as replica.split-brain-choice.

Additional info:
Comment 2 Anuradha 2015-07-06 06:47:38 EDT
Patch posted upstream for review:

http://review.gluster.org/11551
Comment 5 monti lawrence 2015-07-23 10:52:14 EDT
Doc text is edited. Please sign off to be included in Known Issues.
Comment 9 Shruti Sampat 2015-09-07 13:41:50 EDT
Verified as fixed in glusterfs-3.7.1-14.el7rhgs.x86_64. Tested for a file in metadata split-brain in a distribute-replicate setup and found to be working. In case of a directory in metadata split-brain in a distribute-replicate setup, the `replica.split-brain-status' of the directory reports that it is not in split-brain (BZ #1260779). In case of a pure replica, verified that it is possible to examine the directory in metadata split-brain correctly after choosing appropriate choice as `replica.split-brain-choice'.
Comment 10 Divya 2015-09-23 03:02:16 EDT
Please review and sign-off the edited doc text.
Comment 11 Anuradha 2015-09-23 03:20:09 EDT
Looks good to me.
Comment 13 errata-xmlrpc 2015-10-05 03:17:52 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://rhn.redhat.com/errata/RHSA-2015-1845.html

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