Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
This repository was archived by the owner on May 12, 2021. It is now read-only.

cgroup name and path are not honoured #1021

@devimc

Description

@devimc

Description of problem

cgroup name and path are not honoured causing problems in some implementations for resource governance, since they expect the cgroup in a specific directory, but kata-runtime creates it in /sys/fs/cgroup/cpu,cpuacct/kata/$CONTAINERID/vcpu , this issue was introduced here 34fe3b9

Expected result

$ docker run --cpus=4 -dti --runtime=kata-runtime --cgroup-parent=hello debian bash

cpu cgroup path for this container should be /sys/fs/cgroup/cpu,cpuacct/system.slice/docker.service/hello/$CONTAINERID

Actual result

$ docker run --cpus=4 -dti --runtime=kata-runtime --cgroup-parent=hello debian bash

--cgroup-parent option is not honoured and cpu cgroup path is /sys/fs/cgroup/cpu,cpuacct/kata/$CONTAINERID/vcpu

cc @WeiZhang555 @egernst

Metadata

Metadata

Assignees

Labels

bugIncorrect behaviourhighest-priorityCritically urgent issue (must be resolved as soon as possible)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions