Bug 994357 - virt-sandbox-service execute does not switch into container's cgroup
virt-sandbox-service execute does not switch into container's cgroup
Status: NEW
Product: Virtualization Tools
Classification: Community
Component: libvirt-sandbox (Show other bugs)
Unspecified Unspecified
unspecified Severity high
: ---
: ---
Assigned To: Libvirt Maintainers
Depends On:
  Show dependency treegraph
Reported: 2013-08-07 02:31 EDT by Krishna Raman
Modified: 2014-06-18 03:26 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Krishna Raman 2013-08-07 02:31:18 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):
libvirt 1.1.1
libvirt-sandbox 5.0.5

How reproducible:

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

Actual results:
CGroup remains cgroup of shell from which virt-sandbox-service was started.

Expected results:
CGroup switches to container's cgroup

Additional info:
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

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