Bug 1343549

Summary: libglusterfs: Negate all but O_DIRECT flag if present on anon fds
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Krutika Dhananjay <kdhananj>
Component: coreAssignee: Krutika Dhananjay <kdhananj>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: amukherj, rcyriac, rhinduja, rhs-bugs, storage-qa-internal
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.1.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.7.9-10 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-23 05:26:23 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: 1311817    

Description Krutika Dhananjay 2016-06-07 12:45:34 UTC
Description of problem:

This is to prevent any unforeseen problems that might arise due to writevs and readvs being wound with @flag parameter containing O_TRUNC or O_APPEND especially wrt translators like sharding and ec where O_TRUNC write or O_APPEND write on individual shards/fragments is not the same as O_TRUNC write or O_APPEND write as expected by the application.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Atin Mukherjee 2016-06-08 04:00:26 UTC
An upstream patch http://review.gluster.org/#/c/14665/ is posted for review.

Comment 6 Atin Mukherjee 2016-06-10 04:28:59 UTC
Downstream patch https://code.engineering.redhat.com/gerrit/#/c/76078/ is merged now.

Comment 8 SATHEESARAN 2016-06-13 10:14:06 UTC
Tested with RHGS 3.1.3 nightly build - glusterfs-3.7.9-10.elrhgs with the following test

1. Created replica 3 volume and optimized the volume for virt-store
2. Disabled remote-dio & enable strict-o-direct on the volume
3. Created the RHEV data domain with the above created volume
4. Created 30 Application VMs
5. Ran the 100% write workload ( random write ) on  all the VMs using FIO tool
6. Repeated the test twice and there are no issues found

Comment 10 errata-xmlrpc 2016-06-23 05:26:23 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/RHBA-2016:1240