RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1317991 - cgroups: cgroups.proc no such file or directory error during docker build
Summary: cgroups: cgroups.proc no such file or directory error during docker build
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Mrunal Patel
QA Contact: atomic-bugs@redhat.com
Yoana Ruseva
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-15 17:21 UTC by Lokesh Mandvekar
Modified: 2019-03-06 01:52 UTC (History)
17 users (show)

Fixed In Version: docker-1.9.1-22.el7
Doc Type: Bug Fix
Doc Text:
Clone Of: 1317059
Environment:
Last Closed: 2016-03-31 23:24:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0536 0 normal SHIPPED_LIVE docker bug fix and enhancement update 2016-04-01 03:19:56 UTC

Description Lokesh Mandvekar 2016-03-15 17:21:32 UTC
+++ This bug was initially created as a clone of Bug #1317059 +++

Description of problem:

Errors such as
System error: open /sys/fs/cgroup/devices/system.slice/docker-fc2e8c0bfdef0d585ed13e784ccc1024ec33f4f01e3c4c992ea15b38abca58b7.scope/cgroup.procs: no such file or directory

are seen during origin tests.
For more info see https://github.com/openshift/origin/issues/7927

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

How reproducible:
Seen during jenkins tests



Actual results:
docker build failure

Expected results:
docker build shouldn't fail with this cgroups error


Additional info:
This seems like a probable race of some kind with systemd cgroups support.

The code that is failing does the following:
1. Creates a systemd transient unit for e.g. /system.slice/docker-fc2e8c0bfdef0d585ed13e784ccc1024ec33f4f01e3c4c992ea15b38abca58b7.scope
2. Join the device cgroup manually by creating the device directory
at sys/fs/cgroup/devices/system.slice/docker-fc2e8c0bfdef0d585ed13e784ccc1024ec33f4f01e3c4c992ea15b38abca58b7.scope
3. Write the pid of the container process to 
/sys/fs/cgroup/devices/system.slice/docker-fc2e8c0bfdef0d585ed13e784ccc1024ec33f4f01e3c4c992ea15b38abca58b7.scope/cgroup.procs (creating the file as well)

--- Additional comment from Clayton Coleman on 2016-03-15 09:25:10 CDT ---

This blocks the OpenShift 3.2 release, given that it results in failures in roughly 1% of container launches on Docker 1.9 on RHEL.

--- Additional comment from Mrunal Patel on 2016-03-15 12:17:34 CDT ---

https://github.com/projectatomic/docker/pull/76 is a potential fix that we need a rpm for.

Comment 3 Luwen Su 2016-03-20 13:35:33 UTC
Works fine with 
# mkdir mkdir container-test.scope
# pwd
/sys/fs/cgroup/systemd/system.slice/container-test.scope

root      2490  0.2  0.2 245988 16404 pts/0    Sl+  21:33   0:00 docker run -it rhel7 /bin/bash

#echo 2490 > cgroup.proc
In docker-1.9.1-23.el7.x86_64, move to verified

Comment 5 errata-xmlrpc 2016-03-31 23:24: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://rhn.redhat.com/errata/RHBA-2016-0536.html


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