Bug 1680609 - SELinux labels are missing on the gluster bricks created using gluster-ansible-roles
Summary: SELinux labels are missing on the gluster bricks created using gluster-ansibl...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: rhhi
Version: rhhiv-1.6
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: RHHI-V 1.6
Assignee: Sahina Bose
QA Contact: SATHEESARAN
URL:
Whiteboard:
Depends On: 1683200
Blocks: RHHI-V-1-6-Engineering-InFlight-BZs
TreeView+ depends on / blocked
 
Reported: 2019-02-25 12:14 UTC by SATHEESARAN
Modified: 2019-05-09 06:09 UTC (History)
7 users (show)

Fixed In Version: cockpit-ovirt-0.12.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1680608
: 1683200 (view as bug list)
Environment:
Last Closed: 2019-05-09 06:09:09 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2019:1121 0 None None None 2019-05-09 06:09:21 UTC

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


Note You need to log in before you can comment on or make changes to this bug.