Red Hat Bugzilla – Bug 994357
virt-sandbox-service execute does not switch into container's cgroup
Last modified: 2014-06-18 03:26:00 EDT
Description of problem:
When using virt-sandbox-service execute, the resultant process is switched into the containers namespace but the cgroup remains that or the parent shell, instead of the cgroup of the container
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create and start LXC container
2. Use virt-sandbox-service execute to switch into container
3. Inspect the cgroup of the resultant process
CGroup remains cgroup of shell from which virt-sandbox-service was started.
CGroup switches to container's cgroup
If we dont change cgroup then any process launched from virt-sandbox-service is not confined to CPU/Memory limits assigned to container.
This is related to Bug #994356