Bug 1822120

Summary: Filter /dev/mapper/x devices, when provided with blacklist_gluster_devices option enabled
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: rhhiAssignee: Gobinda Das <godas>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.5CC: 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:
: 1822121 (view as bug list) Environment:
Last Closed: 2020-08-04 14:52:07 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: 1822121    
Bug Blocks: 1779977    

Description SATHEESARAN 2020-04-08 10:11:38 UTC
Description of problem:
-----------------------
Technically, when the user enables 'blacklist gluster devices' option, the devices should be of format /dev/sdx. But there are chances, users could provide insane values or provide LUKS devices ( /dev/mapper/luks_sdb ) those were created via executing ansible playbook

In this case, when 'blacklist gluster devices' is enabled and user provides device values as /dev/mapper/x, do not add those devices under 'blacklist_mpath_devices' in the generated inventory file

Version-Release number of selected component (if applicable):
--------------------------------------------------------------
cockpit-ovirt-dashboard-0.14.3

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

Steps to Reproduce:
--------------------
1. Start RHHI-V/HC deployment from web console
2. On the 'bricks' tab, enable the option 'Blacklist Gluster Devices', which is selected by default
3. Provide disk values as /dev/mapper/luks_sdb

Actual results:
----------------
Generated inventory file contains luks_sdb


Expected results:
-----------------
Generated inventory file should not contain luks_sdb



Additional info:

Comment 2 SATHEESARAN 2020-05-06 17:07:39 UTC
Tested with cockpit-ovirt-dashboard-0.14.5

When the device name is provided as /dev/mapper/luks_sdb, and that device is not
added to the 'blacklist_mpath_devices' in the generated inventory file.

There is one known issue in this context.
When there are less than 3 bricks devices are to be blacklisted, an empty ''
is added to the list of devices to blacklisted, but just gets skipped and doesn't
impact the deployment. So this issue is ignored

Comment 4 errata-xmlrpc 2020-08-04 14:52:07 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