From 8e3722c7d100f3c2a75fdb7ff303a4eaef37f6da Mon Sep 17 00:00:00 2001 From: Rodrigo Campos Date: Tue, 19 Sep 2023 15:24:49 +0200 Subject: [PATCH] CI: Set slow_chown for overlayfs snapshotter Userns requires idmap mounts or to opt-in for a slow and expensive chown. As idmap mounts support for overlayfs was merged in 5.19, let's add the slow_chown config for our CI. The config is harmless to keep it in new kernels, as if idmap mounts is supported, it will be just used. Whenever all our CI is run with kernels >= 5.19, we can remove this setting. Signed-off-by: Rodrigo Campos --- script/test/utils.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/script/test/utils.sh b/script/test/utils.sh index b49d3ac0e..a516e7031 100755 --- a/script/test/utils.sh +++ b/script/test/utils.sh @@ -52,6 +52,13 @@ version=2 [plugins."io.containerd.grpc.v1.cri"] drain_exec_sync_io_timeout = "10s" + +# Userns requires idmap mount support for overlayfs (added in 5.19) +# Let's opt-in for a recursive chown, so we can always test this even in old distros. +# Note that if idmap mounts support is present, we will use that, so it is harmless to keep this +# here. +[plugins."io.containerd.snapshotter.v1.overlayfs"] + slow_chown = true EOF if command -v sestatus >/dev/null 2>&1; then