Bug 1441743

Summary: [docker spec] Get rid of MountFlags=slave on RHEL7.4 kernel onwards
Product: Red Hat Enterprise Linux 7 Reporter: Vivek Goyal <vgoyal>
Component: dockerAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 7.4CC: amurdaca, ddarrah, dwalsh, fkluknav, jsafrane, lsm5, muahao, vgoyal, wehe
Target Milestone: rcKeywords: Extras, Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1542672 (view as bug list) Environment:
Last Closed: 2018-04-11 00:01:10 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: 1441737, 1468249    
Bug Blocks: 1542672    

Description Vivek Goyal 2017-04-12 15:20:30 UTC
Description of problem:

Right now we have MountFlags=slave in docker.service systemd unit file for RHEL. RHEL7.4 has now some kernel patches which can allow docker daemon to run in host mount namespace and we can get rid of MountFlags=slave there.

So modify docker.service unit file and get rid of MountFlags=slave. But tricky
part is that this change should take affect only for rhel7.4 and higher kernels.
If anybody takes docker package and installs on rhel7.3, they should still get
a unit file which has MountFlags=slave

I am assuming that we can do some magic in spec file and figure out product
version and install appropriate docker.service file accordingly.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Daniel Walsh 2017-05-31 19:35:16 UTC
We will not do this until 7.5.

Comment 3 muahao 2017-11-17 03:39:58 UTC
Hello, can you tell me which kernel patchs backported at redhat 7.4 to solve this problem ? Thanks ~

Comment 4 Jan Safranek 2018-01-25 09:28:16 UTC
(In reply to Daniel Walsh from comment #2)
> We will not do this until 7.5.

It's 3.5 time and Mount=slave is still in docker service file.
We need no extra mount namespace in docker (or rshared namespace) for OpenShift 3.9 and onwards.

Docker containers must be able to run with `-v /var/lib/origin:/var/lib/origin:rshared` and OpenShift on the host must see mounts created by these containers.

Comment 13 errata-xmlrpc 2018-04-11 00:01:10 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-2018:1071

Comment 14 Red Hat Bugzilla 2023-09-14 03:56:19 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days