osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/30433 )
Change subject: repo-install-test: fix with cgroups2 on host ......................................................................
repo-install-test: fix with cgroups2 on host
On hosts newer than debian 9, starting systemd inside docker failed with: Failed to create /init.scope control group: Read-only file system Failed to allocate manager object: Read-only file system [!!!!!!] Failed to allocate manager object.
This is because /sys/fs/cgroup was mounted inside the docker container, and once the host has cgroup v2 systemd tries to write to it and fails. Adjust the docker run command so it works with cgroup v2 and we can run repo-install-test on hosts with higher debian versions.
Related: OS#5685 Related: https://serverfault.com/a/1087467 Change-Id: I7d2a93756f807301ee77d14d1a5e67d2e1262448 --- M scripts/repo-install-test.sh 1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/33/30433/1
diff --git a/scripts/repo-install-test.sh b/scripts/repo-install-test.sh index 2a3e739..5787b84 100755 --- a/scripts/repo-install-test.sh +++ b/scripts/repo-install-test.sh @@ -101,7 +101,9 @@ --tmpfs /run \ --tmpfs /run/lock \ --tmpfs /tmp \ - -v /sys/fs/cgroup:/sys/fs/cgroup:ro \ + --cgroup-parent=docker.slice \ + --cgroupns private \ + --privileged \ --cap-add SYS_ADMIN \ --cap-add SYS_NICE \ $args \