Bug 1231936
Summary: | Docker contaier can't access gluster (fuse) volumes | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Lokesh Mandvekar <lsm5> |
Component: | docker | Assignee: | Daniel Walsh <dwalsh> |
Status: | CLOSED ERRATA | QA Contact: | Luwen Su <lsu> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.1 | CC: | admiller, dwalsh, extras-qa, ichavero, jcajka, jchaloup, jhou, jsafrane, jvance, lsm5, miminar, mjenner, mturansk, sghosh, vbatts |
Target Milestone: | rc | Keywords: | Extras |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | docker-1.6.2-11.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 1231134 | Environment: | |
Last Closed: | 2015-06-23 09:30:28 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: | 1231134 | ||
Bug Blocks: |
Description
Lokesh Mandvekar
2015-06-15 16:14:33 UTC
Due to the limitation of my environment, i don't have a glusterfs to use, so i found an experiment fuse program from https://stuff.mit.edu/iap/2009/fuse/examples/ #mkdir /root/fuse/tmp #python hello.py /root/fuse/tmp (pip install fuse-python, if can't find the import) #ls -aZ /root/fuse drwxr-xr-x. root root system_u:object_r:fusefs_t:s0 tmp # getsebool -a | grep -i fuse ftpd_use_fusefs --> off glance_use_fusefs --> off httpd_use_fusefs --> off mailman_use_fusefs --> off samba_share_fusefs --> off sanlock_use_fusefs --> off use_fusefs_home_dirs --> off virt_sandbox_use_fusefs --> off virt_use_fusefs --> off #docker run -v /root/fuse/tmp:/fuse rhel7 ls /fuse ls: cannot open directory /fuse: Permission denied #setsebool virt_sandbox_use_fusefs 1 # docker run -v /root/fuse/tmp:/fuse rhel7 ls -aZ /fuse drwxr-xr-x. root root system_u:object_r:fusefs_t:s0 . drwxr-xr-x. root root system_u:object_r:svirt_sandbox_file_t:s0:c22,c732 .. -r--r--r--. root root system_u:object_r:fusefs_t:s0 hello # docker run -v /root/fuse/tmp:/fuse rhel7 cat /fuse/hello Hello World! In docker-1.6.2-14.el7.x86_64, move to verified Cut and pasted from an email from Jan Safranek who is working with gluster: To follow up on current development, docker-1.6.2-14.el7 adds a new boolean to SELinux policy. This should allow docker container to access gluster volume (optionally with -P for persistent change): setsebool virt_sandbox_use_fusefs 1 dwalsh told me docker-1.6.2-14.el7 is heading to RHEL 7.1.3, i.e. to be released in couple of days (2015-Jun-23?) in RHEL7 extras channel. So what we need is just to document the boolean and encourage customers to check docker package version (and wait for 1.6.2-14). Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1231936 Docker build: https://brewweb.devel.redhat.com/buildinfo?buildID=441835 Errata: https://errata.devel.redhat.com/advisory/20663 *** Bug 1233540 has been marked as a duplicate of this bug. *** *** Bug 1233482 has been marked as a duplicate of this bug. *** Disregard the "dupe 1233540". I linked the wrong issue accidentally. 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://rhn.redhat.com/errata/RHBA-2015-1167.html |