Bug 1385924

Summary: docker run --cgroup-parent : unexpected result for pid
Product: Red Hat Enterprise Linux 7 Reporter: Ed Santiago <santiago>
Component: dockerAssignee: Matthew Heon <mheon>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: amurdaca, dwalsh, lsm5, lsu, mpatel
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-17 20:43:32 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:

Description Ed Santiago 2016-10-17 21:57:16 UTC
docker-autotest reporting this failure on docker-1.10.3-55.el7.x86_64 et al:

    # docker run --rm --cgroup-parent=foo-bar.slice centos cat /proc/1/cgroup
    11:perf_event:/foo.slice/foo-bar.slice/docker-<sha>.scope
    ...
    5:cpuacct,cpu:/foo.slice/foo-bar.slice/docker-<sha>.scope
 >> 4:pids:/
    3:cpuset:/foo.slice/foo-bar.slice/docker-<sha>.scope
    ...

Comment 2 Mrunal Patel 2016-10-18 17:51:03 UTC
What OS are you testing on? I do not see the pids cgroup enabled on my RHEL 7.2 VM.

Comment 3 Ed Santiago 2016-10-18 17:58:53 UTC
RHEL 7.3, kernel 3.10.0-513.el7.x86_64

Comment 4 Mrunal Patel 2016-10-18 18:06:12 UTC
Thanks! I checked the code. We don't have the pids cgroups support for libcontainer in our docker 1.10.x branches. So, if we really want it in docker 1.10 then we need a backport which should be straight forward. 

Dan, wdyt about backporting to 1.10 or should we just support it in 1.12+?

Comment 5 Daniel Walsh 2016-10-18 18:33:08 UTC
I think we should just support this in docker-1.12 unless we are forced by OpenShift.  For now lets close this as fixed in docker-1.12.

Comment 7 Luwen Su 2016-11-12 09:08:48 UTC
In docker-1.12.3-4.el7.x86_64

# docker run --rm --cgroup-parent=foo-bar.slice rhel7 cat /proc/1/cgroup
.....
10:pids:/foo.slice/foo-bar.slice/docker-9788efa1b06cfa3dd86ad523c79dde6143740908b030d434fbeda03939b7365d.scope

Comment 9 errata-xmlrpc 2017-01-17 20:43: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://rhn.redhat.com/errata/RHSA-2017-0116.html