Bug 994357

Summary: virt-sandbox-service execute does not switch into container's cgroup
Product: [Community] Virtualization Tools Reporter: Krishna Raman <kraman>
Component: libvirt-sandboxAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED WONTFIX QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: berrange, mfisher
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-16 17:48:19 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:

Description Krishna Raman 2013-08-07 06:31:18 UTC
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:
Always

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

Comment 2 Daniel Berrangé 2020-04-16 17:48:19 UTC
Closing old bug, virt-sandbox-service feature has been deleted.