opencontainers / runc

CLI tool for spawning and running containers according to the OCI specification
https://www.opencontainers.org/
Apache License 2.0
11.58k stars 2.06k forks source link

[1.1] libct/cg/fs: fix setting rt_period vs rt_runtime #4284

Closed kolyshkin closed 1 month ago

kolyshkin commented 1 month ago

Backport of #4258 to release-1.1 branch.

The problem/fix is similar to one in #3084/#3090.

A test case (by @ls-ggg) is copied from #4235.

Fixes: #4094.


The issue is the same as in commit 1b2adcf but for RT scheduler; the fix is also the same.

Test case by @ls-ggg.

(cherry picked from commit b60079e2e59670b8babd653002d8f469064fb244)

kolyshkin commented 1 month ago

libcontainer/integration failed in ci / i386 job:

panic: getImages error exit status 1 (output: curl: (22) The requested URL returned error: 502 
curl: (22) The requested URL returned error: 502 
curl: (22) The requested URL returned error: 502 
curl: (22) The requested URL returned error: 502 
curl: (22) The requested URL returned error: 502 
curl: (22) The requested URL returned error: 502 
Failed to get https://github.com/docker-library/busybox/raw/461a473aef31b7726ea99909a24551bf44565c05/stable/glibc/busybox.tar.xz
)

goroutine 1 [running]:
github.com/opencontainers/runc/libcontainer/integration.init.1()
    /home/runner/work/runc/runc/libcontainer/integration/utils_test.go:37 +0x378
FAIL    github.com/opencontainers/runc/libcontainer/integration 31.526s

This is a temp issue with github downloads, now resolved.