Bug 1546075

Summary: Hook up script for managing SELinux context on bricks failed to execute post volume creation
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Prasad Desala <tdesala>
Component: glusterdAssignee: Jiffin <jthottan>
Status: CLOSED ERRATA QA Contact: Bala Konda Reddy M <bmekala>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rhgs-3.4CC: jthottan, rhinduja, rhs-bugs, sheggodu, storage-qa-internal, vbellur
Target Milestone: ---   
Target Release: RHGS 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.12.2-5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 06:42:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1503137    

Description Prasad Desala 2018-02-16 09:25:26 UTC
Description of problem:
=======================
hook scripts for managing SELinux context on bricks failed to execute post volume creation. I am seeing below error in glusterd logs post volume creation,

[2018-02-16 07:01:11.640578] E [run.c:190:runner_log] (-->/usr/lib64/glusterfs/3.12.2/xlator/mgmt/glusterd.so(+0xe29aa) [0x7fa6bf4889aa] -->/usr/lib64/glusterfs/3.12.2/xlator/mgmt/glusterd.so(+0xe23cb) [0x7fa6bf4883cb] -->/lib64/libglusterfs.so.0(runner_log+0x115) [0x7fa6ca98cd35] ) 0-management: Failed to execute script: /var/lib/glusterd/hooks/1/create/post/S10selinux-label-brick.sh --volname=distrepx3

I didn't see any functional impact here, I was able to start the volume without any issues. And on my system, selinux labeling was set on the bricks before volume creation.

Version-Release number of selected component (if applicable):
3.12.2-4.el7rhgs.x86_64

How reproducible:
=================
always

Steps to Reproduce:
===================
1) create a 4x3 volume
2) check glusterd logs for the above error.

Actual results:
===============
Seeing hook script "S10selinux-label-brick.sh" failure error in glusterd logs post volume creation

Expected results:
================
No errors

Comment 10 Bala Konda Reddy M 2018-05-22 06:24:58 UTC
Build: 3.12.2-7

Followed the steps mentioned in the description.
Haven't seen any errors with respect to selinux while creating the volume. Hence marking it as verified.

Comment 12 errata-xmlrpc 2018-09-04 06:42:41 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/RHSA-2018:2607