Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1683200

Summary: SELinux labels are missing on the gluster bricks created using gluster-ansible-roles
Product: [oVirt] cockpit-ovirt Reporter: SATHEESARAN <sasundar>
Component: GdeployAssignee: Gobinda Das <godas>
Status: CLOSED CURRENTRELEASE QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 0.12.3CC: bugs, irosenzw, rhs-bugs, sabose, sankarshan, sasundar, surs
Target Milestone: ovirt-4.3.2Flags: sasundar: ovirt-4.3?
godas: devel_ack+
Target Release: 0.12.4   
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: 1680609 Environment:
Last Closed: 2019-03-19 10:05:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Gluster RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1680609    

Description SATHEESARAN 2019-02-26 12:52:37 UTC
Description of problem:
-----------------------
Param - 'gluster_set_selinux_labels: true' is missing from the ansible roles, which leads to the Gluster bricks ( XFS ) missing the appropriate selinux labels.

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
cockpit-ovirt-dashboard-0.12.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

Comment 1 SATHEESARAN 2019-02-26 12:53:14 UTC
Param - 'gluster_set_selinux_labels: true' is missing from the ansible playbook.

Tested with this param and the proper selinux labels are set on the bricks

Comment 2 SATHEESARAN 2019-03-07 11:30:43 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 3 Sandro Bonazzola 2019-03-19 10:05:25 UTC
This bugzilla is included in oVirt 4.3.2 release, published on March 19th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.2 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.