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 1471803 - oci-kvm-hook Doesn't work on RHEL7 docker
Summary: oci-kvm-hook Doesn't work on RHEL7 docker
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Frantisek Kluknavsky
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1472848
TreeView+ depends on / blocked
 
Reported: 2017-07-17 13:20 UTC by Daniel Walsh
Modified: 2019-03-06 00:44 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1472815 1472848 (view as bug list)
Environment:
Last Closed: 2017-08-02 00:13:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2344 0 normal SHIPPED_LIVE docker bug fix and enhancement update 2017-08-08 22:51:38 UTC

Description Daniel Walsh 2017-07-17 13:20:37 UTC
This issue was reported here by Stef Walters.
https://github.com/stefwalter/oci-kvm-hook/issues/3

Need three back ports for docker-runc to make this work correctly.

Comment 2 Daniel Walsh 2017-07-17 13:23:19 UTC
Alright, I figured this out. Turns out we needed to backport a patch to make it possible for prestart hooks to edit cgroup stuff. Patches for 1.12.6, 1.13.1 and 1.13.1-rhel are here:

projectatomic/runc@79c3939
projectatomic/runc@d90fcb7
projectatomic/runc@79db05f

Original patch: opencontainers/runc#1239

https://github.com/projectatomic/runc/commit/79c3939053c870fbb4de5484d98640d5ba028ef4

https://github.com/projectatomic/runc/commit/d90fcb78c3886d01d48829a11fb481af5db08372

https://github.com/projectatomic/runc/commit/79db05ff0192bae1d0e505b93c5ac28818beb441

Comment 5 Luwen Su 2017-07-25 04:27:22 UTC
For now
# docker run -it timesu/test-kvm /bin/bash

//docker-1.12.6-48.git0fdc778.el7.x86_64

#ls -l /sys/fs/cgroup/devices/system.slice/docker-45da3109bf49026fa288603c1c1d9c762150de9fc9fce34a89eb60ff4f70bc23.scope/
total 0
-rw-r--r--. 1 root root 0 Jul 25 12:18 cgroup.clone_children
--w--w--w-. 1 root root 0 Jul 25 12:18 cgroup.event_control
-rw-r--r--. 1 root root 0 Jul 25 12:18 cgroup.procs
--w-------. 1 root root 0 Jul 25 12:18 devices.allow
--w-------. 1 root root 0 Jul 25 12:18 devices.deny
-r--r--r--. 1 root root 0 Jul 25 12:18 devices.list
-rw-r--r--. 1 root root 0 Jul 25 12:18 notify_on_release
-rw-r--r--. 1 root root 0 Jul 25 12:18 tasks

compared with before
https://github.com/stefwalter/oci-kvm-hook/issues/3
-rw-r--r--. 1 root root 0 Jul 14 14:09 cgroup.clone_children
                                                          -rw-r--r--. 1 root root 0 Jul 14 14:09 cgroup.procs
                                                          --w-------. 1 root root 0 Jul 14 14:09 devices.allow
                                                          --w-------. 1 root root 0 Jul 14 14:09 devices.deny
                                                          -r--r--r--. 1 root root 0 Jul 14 14:09 devices.list
                                                          -rw-r--r--. 1 root root 0 Jul 14 14:09 notify_on_release
                                                          -rw-r--r--. 1 root root 0 Jul 14 14:09 tasks

Comment 7 errata-xmlrpc 2017-08-02 00:13:50 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-2017:2344


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