Description of problem: ----------------------- Currently brick creation on RHGS/Gluster node works good and bricks are getting created properly, but the selinux labels are not set on them properly Version-Release number of selected component (if applicable): ------------------------------------------------------------- RHV 4.0.2-7 How reproducible: ----------------- Always Steps to Reproduce: ------------------- 1. Add a RHGS/Gluster node to the cluster type 'Gluster' 2. Create bricks for that node from UI with the additional disks available Actual results: --------------- Bricks are getting created but selinux labels not set on them Expected results: ----------------- Bricks should be set with selinux label Additional info: ---------------- [root@ ~]# ls -lZd /rhgs/brick1 drwxr-xr-x. root root system_u:object_r:unlabeled_t:s0 /rhgs/brick1 Currently the selinux labels are set on the brick manually, [root@ ~]# semanage fcontext -a -t glusterd_brick_t /rhgs/brick1 [root@ ~]# restorecon -Rv /rhgs/brick1 restorecon reset /rhgs/brick1 context system_u:object_r:unlabeled_t:s0->system_u:object_r:glusterd_brick_t:s0 [root@ ~]# ls -lZd /rhgs/brick1 drwxr-xr-x. root root system_u:object_r:glusterd_brick_t:s0 /rhgs/brick1
Tested with RHV-4.0.6 ( version 4.0.6.3-0.1.el7ev ) and I am not seeing the bricks with selinux context. Ramesh, is the fix available with this build ( RHV-4.0.6-8 ) ?
(In reply to SATHEESARAN from comment #1) > Tested with RHV-4.0.6 ( version 4.0.6.3-0.1.el7ev ) and I am not seeing the > bricks with selinux context. > > Ramesh, is the fix available with this build ( RHV-4.0.6-8 ) ? Can you check the vdsm version?. It is fixed in vdsm-4.18.20
(In reply to Ramesh N from comment #2) > (In reply to SATHEESARAN from comment #1) > > Tested with RHV-4.0.6 ( version 4.0.6.3-0.1.el7ev ) and I am not seeing the > > bricks with selinux context. > > > > Ramesh, is the fix available with this build ( RHV-4.0.6-8 ) ? > > Can you check the vdsm version?. It is fixed in vdsm-4.18.20 Ramesh, Thanks for that information, I was testing it with vdsm-4.17.33-1 as available in RHGS 3.2.0 I can check the same with the latest vdsm
Tested with vdsm-4.18.21-1.el7.centos.x86_64. Creation of bricks from UI sets the proper selinux label on the bricks [root@ ~]# ls -lZd /rhgs/brick1 drwxr-xr-x. root root system_u:object_r:glusterd_brick_t:s0 /rhgs/brick1