Bug 1329903 - bricks doesn't have selinux label, even when selinux is enabled in the conf file
Summary: bricks doesn't have selinux label, even when selinux is enabled in the conf file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: gdeploy
Version: rhgs-3.1
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: RHGS 3.1.3
Assignee: Nandaja Varma
QA Contact: Bhaskarakiran
URL:
Whiteboard:
Depends On:
Blocks: Gluster-HC-1 1311817
TreeView+ depends on / blocked
 
Reported: 2016-04-24 15:57 UTC by SATHEESARAN
Modified: 2016-11-23 23:11 UTC (History)
7 users (show)

Fixed In Version: gdeploy-2.0-8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-23 05:30:10 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:1250 0 normal SHIPPED_LIVE gdeploy update for Red Hat Gluster Storage 3.1 update 3 2016-06-23 09:11:59 UTC

Description SATHEESARAN 2016-04-24 15:57:08 UTC
Description of problem:
-----------------------
Used the gdeploy conf file which had selinux section set to yes, but bricks are not labeled appropriately

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
gdeploy-2.0-6

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

Steps to Reproduce:
-------------------
1. Create a section selinux set to 'yes'
2. add lv section such a way bricks are mounted

Actual results:
---------------
selinux labels not available on the bricks

Expected results:
-----------------
selinux labels should be available on the bricks

Additional info:
----------------
1. Conf file used :
[root@ ~]# cat test.conf 
[hosts]
host1.example.com

[selinux]
yes

[disktype]
raid6

[diskcount]
4

[stripesize]
256

[pv]
action=create
devices=vdb

[vg]
action=create
vgname=RHS_vg1
pvname=vdb

[lv1]
action=create
lvname=engine_lv
lvtype=thick
size=10GB
mount=/rhs/brick1

[lv2]
action=create
vgname=RHS_vg1
poolname=lvthinpool
lvtype=thinpool
poolmetadatasize=10MB
chunksize=1024k
size=30GB

[lv3]
action=create
lvname=lv_vmaddldisks
poolname=lvthinpool
vgname=RHS_vg1
lvtype=thinlv
mount=/rhs/brick2
virtualsize=9GB

[lv4]
action=create
lvname=lv_vmrootdisks
poolname=lvthinpool
vgname=RHS_vg1
size=19GB
lvtype=thinlv
mount=/rhs/brick3
virtualsize=19GB


2. Selinux labels after brick creation looks like below :
[root@d ~]# ls -lZd /rhs/brick*
drwxr-xr-x. root root system_u:object_r:unlabeled_t:s0 /rhs/brick1
drwxr-xr-x. root root system_u:object_r:unlabeled_t:s0 /rhs/brick2
drwxr-xr-x. root root system_u:object_r:unlabeled_t:s0 /rhs/brick3

Comment 2 Bhaskarakiran 2016-05-03 06:11:01 UTC
With 2.0-8, labels are set. Marking as fixed.

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

Comment 4 errata-xmlrpc 2016-06-23 05:30:10 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-2016:1250


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