Bug 1638940
| Summary: | gluster-ansible roles should set the required SELinux labels | |||
|---|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | SATHEESARAN <sasundar> | |
| Component: | gluster-ansible | Assignee: | Sachidananda Urs <surs> | |
| Status: | CLOSED ERRATA | QA Contact: | SATHEESARAN <sasundar> | |
| Severity: | high | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | rhhiv-1.5 | CC: | rcyriac, rhs-bugs, sabose, sankarshan, sasundar | |
| Target Milestone: | --- | Keywords: | ZStream | |
| Target Release: | RHGS 3.4.z Batch Update 1 | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | gluster-ansible-roles-1.0.3 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1638941 (view as bug list) | Environment: | ||
| Last Closed: | 2018-10-31 08:42:30 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: | 1638941 | |||
|
Description
SATHEESARAN
2018-10-13 06:59:16 UTC
https://github.com/gluster/gluster-ansible-infra/pull/35 fixes the issue. Now the SeLinux context is set on the directories: [root@dhcp43-169 ~]# ls -lZ /mnt drwxr-xr-x. root root system_u:object_r:glusterd_brick_t:s0 thicklv drwxr-xr-x. root root system_u:object_r:glusterd_brick_t:s0 thinlv1 drwxr-xr-x. root root system_u:object_r:glusterd_brick_t:s0 thinlv2 (In reply to Sachidananda Urs from comment #1) > https://github.com/gluster/gluster-ansible-infra/pull/35 fixes the issue. > > Now the SeLinux context is set on the directories: > > [root@dhcp43-169 ~]# ls -lZ /mnt > drwxr-xr-x. root root system_u:object_r:glusterd_brick_t:s0 thicklv > drwxr-xr-x. root root system_u:object_r:glusterd_brick_t:s0 thinlv1 > drwxr-xr-x. root root system_u:object_r:glusterd_brick_t:s0 thinlv2 Thanks Sac for the fix. I will propose it to be included for RHGS 3.4.1 (In reply to SATHEESARAN from comment #2) > (In reply to Sachidananda Urs from comment #1) > > https://github.com/gluster/gluster-ansible-infra/pull/35 fixes the issue. > > > > Now the SeLinux context is set on the directories: > > > > [root@dhcp43-169 ~]# ls -lZ /mnt > > drwxr-xr-x. root root system_u:object_r:glusterd_brick_t:s0 thicklv > > drwxr-xr-x. root root system_u:object_r:glusterd_brick_t:s0 thinlv1 > > drwxr-xr-x. root root system_u:object_r:glusterd_brick_t:s0 thinlv2 > > Thanks Sac for the fix. I will propose it to be included for RHGS 3.4.1 Commit: https://github.com/gluster/gluster-ansible-infra/pull/35/commits/a732a87c55 Tested with gluster-ansible-roles-1.0.3. Post RHHI deployment, bricks does have the required selinux labels on them # ls -1Z /gluster_bricks/ drwxr-xr-x. root root system_u:object_r:glusterd_brick_t:s0 data drwxr-xr-x. root root system_u:object_r:glusterd_brick_t:s0 engine drwxr-xr-x. root root system_u:object_r:glusterd_brick_t:s0 vmstore 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/RHBA-2018:3428 |