Bug 1683200 - 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 CURRENTRELEASE
Alias: None
Product: cockpit-ovirt
Classification: oVirt
Component: Gdeploy
Version: 0.12.3
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ovirt-4.3.2
: 0.12.4
Assignee: Gobinda Das
QA Contact: SATHEESARAN
URL:
Whiteboard:
Depends On:
Blocks: 1680609
TreeView+ depends on / blocked
 
Reported: 2019-02-26 12:52 UTC by SATHEESARAN
Modified: 2019-03-19 10:05 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: 1680609
Environment:
Last Closed: 2019-03-19 10:05:25 UTC
oVirt Team: Gluster
Embargoed:
sasundar: ovirt-4.3?
godas: devel_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 98094 0 master MERGED Setting selinux label for all bricks 2019-03-01 10:02:02 UTC
oVirt gerrit 98145 0 ovirt-4.3 MERGED Setting selinux label for all bricks 2019-03-04 13:02:43 UTC

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.


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