Bug 1807400

Summary: Ensure o-direct options are enabled on volume used as storage domain
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Gobinda Das <godas>
Component: rhhiAssignee: Ritesh Chikatwar <rchikatw>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bugs, pasik, rchikatw, rhs-bugs, sabose, sasundar
Target Milestone: ---   
Target Release: RHHI-V 1.8   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Red Hat Hyperconverged Infrastructure for Virtualization now ensures that the "performance.strict-o-direct" option in Red Hat Gluster Storage is enabled before creating a storage domain.
Story Points: ---
Clone Of: 1754781 Environment:
Last Closed: 2020-08-04 14:51:33 UTC Type: ---
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: 1754781    
Bug Blocks: 1779975    

Description Gobinda Das 2020-02-26 09:50:15 UTC
Description of problem:

While adding a gluster volume as storage domain, add a pre-check that the o-direct options are enabled on the gluster volume.

The following options need to be enabled on the gluster volume 
 performance.strict-o-direct on :Ensure that write-behind honours O_DIRECT flags.When this option is enabled and a file descriptor is opened using the O_DIRECT flag, write-back caching is disabled for writes that affect that file descriptor.
  * network.remote-dio off :filters _ O_DIRECT flags in open/create calls before sending those requests to server. Set to off to ensure all o-direct I/O is passed to brick


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


How reproducible:
NA

Comment 2 SATHEESARAN 2020-06-17 02:54:44 UTC
Tested with RHV Manager 4.4.1.2-0.10.el8ev 

When performance.strict-o-direct option is not enabled on the gluster volume, 
then the attempt to use that volume for gluster storage domain in RHV Manager fails,
with the proper error that o-direct option is not enabled for storage domain

Comment 7 errata-xmlrpc 2020-08-04 14:51:33 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 (RHHI for Virtualization 1.8 bug fix and enhancement update), 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/RHEA-2020:3314