Bug 1302807
Summary: | regression: Unattached child process should exist when the container is killed in docker container with pid=host | |||
---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jeffrey Zhang <zhang.lei.fly> | |
Component: | docker | Assignee: | Mrunal Patel <mpatel> | |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 23 | CC: | adimania, admiller, amurdaca, andreas.bierfert, dustymabe, dwalsh, ichavero, jcajka, jchaloup, lsm5, marianne, miminar, mpatel, steven.dake, vbatts, zhang.lei.fly | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1302814 (view as bug list) | Environment: | ||
Last Closed: | 2016-02-22 21:27:55 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: | ||||
Bug Blocks: | 1302814 |
Description
Jeffrey Zhang
2016-01-28 16:41:15 UTC
here is some discuss from irc http://eavesdrop.openstack.org/irclogs/%23kolla/%23kolla.2016-01-28.log.html#t2016-01-28T12:59:05 docker tracks the pids in a container using cgroups and hence all processes are killed even though we use pid=host. I believe we had probably prompted them to add this behavior in the first place. But the VM's are moved to a different CGroup so they should be exempt. I have been traveling, so I have not been able to verify this bug. The way this is supposed to work is libvirt launches VM in its own cgroup, so that if libvirt gets killed docker does not see the VM's PID. Steven is reporting that this does not work. I have a feeling this is something to do with libvirt since I don't see how docker could find the vm. Steven could you check the cgroup of the VM versus the cgroup of libvirt in the container, make sure they are different. libvirt is --privileged and should be able to see the cgroup fs Or talks to systemd, We need to run a VM and make sure it is in a different cgroup. Then if the VM is in a different cgroup and docker somehow kills it, we know the problem is docker. If the VM is not in a different cgroup then it is something to do with libvirt, running in the container, not moving the VM to a different Cgroup. I was told this was a configuration issue, and it actually works correctly. |