Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime-rs: Use add_task_by_tgid for constrain_hypervisor #9572

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Champ-Goblem
Copy link
Contributor

runtime-rs CgroupsResource.constrain_hypervisor used add_task instead of add_task_by_tgid when adding the hypervisor threads to the cgroup.
This causes an issue due to the default type of the cgroup being domain instead of threaded or domain threaded and throws the error: using method in wrong cgroup mode.
CgroupsResource.new already uses add_task_by_tgid so this change should be fine

Fixes: #8245

runtime-rs `CgroupsResource.constrain_hypervisor` used `add_task` instead of `add_task_by_tgid` when adding the hypervisor threads to the cgroup.
This causes an issue due to the default type of the cgroup being `domain` instead of `threaded` or `domain threaded` and throws the error:
`using method in wrong cgroup mode`.
CgroupsResource.new already uses `add_task_by_tgid` so this change should be fine

Fixes: kata-containers#8245
Signed-off-by: Champ-Goblem <cameron@northflank.com>
@katacontainersbot katacontainersbot added the size/tiny Smallest and simplest task label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/tiny Smallest and simplest task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

runtime-rs sandbox_cgroup_only is broken
2 participants