Bug 1282336 - Ansible installer needs to turn on selinux boolean 'virt_sandbox_use_fusefs'
Summary: Ansible installer needs to turn on selinux boolean 'virt_sandbox_use_fusefs'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jason DeTiberus
QA Contact: Ma xiaoqiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-16 07:31 UTC by Jianwei Hou
Modified: 2018-03-02 20:54 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-17 21:19:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1551127 0 unspecified CLOSED [Docs] Chapter 6: Add new section for SELinux to match cns-deploy requirements 2021-11-18 15:47:12 UTC
Red Hat Product Errata RHBA-2015:2667 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise bug fix update 2015-12-18 02:18:50 UTC

Internal Links: 1551127

Description Jianwei Hou 2015-11-16 07:31:47 UTC
Description of problem:
Setup OSE with ansible installer, when creating a non privileged container with glusterfs mount, the container can not access the mount dir, even if the directory access mode and ownership is properly set. On the node the selinux boolean virt_sandbox_use_fusefs is off. After it is turned on, things work as expected.

Version-Release number of selected component (if applicable):
openshift v3.1.0.4-9-g72d3991
kubernetes v1.1.0-origin-1107-g4c8e6f4
etcd 2.1.2

How reproducible:
Always

Steps to Reproduce:
1. Install OSE using ansible
2. Create a non privileged pod with glusterfs mount
3. In the pod, access the mount dir
4. On the node where the pod is scheduled, run 'getsebool virt_sandbox_use_fusefs'
5. On the node, 'setsebool -P virt_sandbox_use_fusefs 1'
6. Repeat step 3

Actual results:
After step 3: Got permission denied problem

After step 4: 
[root@openshift-117 ~]# getsebool virt_sandbox_use_fusefs
virt_sandbox_use_fusefs --> off

After step 6:
Reading/writing the directory were successful.

Expected results:
The ansible installer should have selinux boolean 'virt_sandbox_use_fusefs' turned on.

Additional info:
Also see https://bugzilla.redhat.com/show_bug.cgi?id=1231936

Comment 1 Jason DeTiberus 2015-11-16 16:26:41 UTC
https://github.com/openshift/openshift-ansible/pull/903

Comment 2 Jianwei Hou 2015-11-17 05:49:54 UTC
Installed OSE with ansible installer with above fix, now 'virt_sandbox_use_fusefs' is turned on. I'll mark this bug as verified when this PR is merged.

Comment 3 Jianwei Hou 2015-11-18 02:22:05 UTC
PR is already merged, this bug is verified as described in comment 2.

Comment 5 errata-xmlrpc 2015-12-17 21:19:32 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/RHBA-2015:2667


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