Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1223738 - Allow only lookup and delete operation on file that is in split-brain
Allow only lookup and delete operation on file that is in split-brain
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: replicate (Show other bugs)
3.1
Unspecified Unspecified
medium Severity medium
: ---
: RHGS 3.1.0
Assigned To: Ravishankar N
Shruti Sampat
:
Depends On:
Blocks: 1202842 1223636 1235007 1235934
  Show dependency treegraph
 
Reported: 2015-05-21 07:21 EDT by Shruti Sampat
Modified: 2016-09-17 08:20 EDT (History)
4 users (show)

See Also:
Fixed In Version: glusterfs-3.7.1-6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1235007 (view as bug list)
Environment:
Last Closed: 2015-07-29 00:44:31 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:1495 normal SHIPPED_LIVE Important: Red Hat Gluster Storage 3.1 update 2015-07-29 04:26:26 EDT

  None (edit)
Description Shruti Sampat 2015-05-21 07:21:20 EDT
Description of problem:
------------------------

Any operations on a file that is in data or meta-data split-brain should not be allowed, with the exception of lookups and deletes. 

Version-Release number of selected component (if applicable):
--------------------------------------------------------------
glusterfs-3.7.0-2.el6rhs.x86_64

How reproducible:
------------------
N/A

Steps to Reproduce:
--------------------
N/A

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

Operations other than lookup and delete (like stat, truncate etc.) are allowed on files in split-brain.

Expected results:
------------------

Allow only lookup and delete on a file that is in split-brain.

Additional info:
Comment 7 Shruti Sampat 2015-07-08 03:13:27 EDT
Verified as fixed in glusterfs-3.7.1-6

See details of test case below -

1. File in data and metadata split-brain - expected behavior is that all data and metadata operations with the exception of lookup and delete should *not* be allowed. Observations -

stat and readlink - these should be disallowed, but with performance translators turned on these are allowed as the call does not reach afr. With performance translators disabled, these are correctly blocked.

Data operations like cat, truncate, fallocate are disallowed as expected.

Metadata operations like getxattr and setxattr are disallowed as expected.

2. Directory in entry split-brain - expected behavior is that all data, metadata and entry operations are allowed. Observations -

All data and metadata operations like readdir, getxattr, setxattr are allowed as expected. All entry operations like mkdir, link, mknod, create, symlink, rename, unlink, rmdir are allowed as expected.

3. Directory in metadata split-brain - Expected is that all entry operations are allowed and that all metadata operations are disallowed. Observations -

All data and entry operations like readdir, mkdir, link, mkdnod, create, symlink, rename, unlink and rmdir are allowed as expected.

Metadata operations like getxattr and setxattr are disallowed as expected.
Comment 8 errata-xmlrpc 2015-07-29 00:44:31 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-1495.html

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