Bug 1823386

Summary: Ensure that meaningful messages are logged, when gluster volumes doesn not have o-direct enabled
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: rhhiAssignee: Ritesh Chikatwar <rchikatw>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rhhiv-1.8CC: godas, rhs-bugs
Target Milestone: ---   
Target Release: RHHI-V 1.8   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1823388 (view as bug list) Environment:
Last Closed: 2020-08-04 14:52:09 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: 1823388    
Bug Blocks: 1779977    

Description SATHEESARAN 2020-04-13 14:31:40 UTC
Description
-------------
When gluster volume does not have o-direct enabled, creating the glusterfs
storage domain fails for error message - 
ACTION_TYPE_FAILED_STORAGE_DOMAIN_PERFORMANCE_O_DIRECT_DISABLE
This message can be more meaningful for users to understand

Version
-------
RHHI-V 1.8
RHVH 4.4
vdsm-4.40.13-1.el8ev.x86_64
glusterfs-6.0-32.el8rhgs.x86_64

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

Steps to reproduce
-------------------
1. Create the gluster replica 3 volume
2. Optimize the gluster volume for virt store usecase
3. Do not enabe performance.strict-o-direct on the volume
4. Create a glusterfs storage domain from RHV manager UI

Actual results
---------------
Creation of storage domain fails with not so meaning message

Expected results
-----------------
Glusterfs storage domain should fail with more meaningful error message

Comment 4 SATHEESARAN 2020-06-17 02:57:10 UTC
Tested with RHV Manager 4.4.1.2-0.10.el8ev and RHVH 4.4.1

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 6 errata-xmlrpc 2020-08-04 14:52:09 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