Bug 1680609

Summary: SELinux labels are missing on the gluster bricks created using gluster-ansible-roles
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: rhhiAssignee: Sahina Bose <sabose>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhhiv-1.6CC: godas, pasik, rhs-bugs, sabose, sankarshan, sasundar, surs
Target Milestone: ---   
Target Release: RHHI-V 1.6   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: cockpit-ovirt-0.12.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1680608
: 1683200 (view as bug list) Environment:
Last Closed: 2019-05-09 06:09: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: 1683200    
Bug Blocks: 1672932    

Description SATHEESARAN 2019-02-25 12:14:27 UTC
Description of problem:
-----------------------
Gluster bricks ( XFS ) created using gluster ansible roles are missing the selinux labels.

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
gluster-ansible-role-1.0.4-3

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

Steps to Reproduce:
-------------------
1. Create bricks using gluster ansible roles

Actual results:
---------------
SELinux labels are missing on the gluster bricks

Expected results:
-----------------
SELinux labels should be available on the gluster bricks

Additional info:
----------------
This bug was already showed up earlier and fixed with gluster-ansible-roles-1.0.3.( https://bugzilla.redhat.com/show_bug.cgi?id=1638940 ) Marking this bug as 'Regression' for that reason

Comment 1 SATHEESARAN 2019-02-26 12:50:03 UTC
This is not the regression. The issue is caused due to the omission particular param in the ansible-playbook.
'gluster_set_selinux_labels: true' which helps the brick paths to have the proper selinux labels

Comment 2 SATHEESARAN 2019-03-07 11:31:18 UTC
The dependent bug is already ON_QA

Comment 3 SATHEESARAN 2019-03-07 11:31:32 UTC
Tested with cockpit-ovirt-dashboard-0.12.4 
The gluster bricks are created with proper selinux labels now.

[root@ ~]# ls -ldZ /gluster_bricks/engine/
drwxr-xr-x. root root system_u:object_r:glusterd_brick_t:s0 /gluster_bricks/engine/

Comment 5 errata-xmlrpc 2019-05-09 06:09: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, 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-2019:1121