From c8642cc59d5a6a9bd7049fe027be0807de18c801 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Mon, 9 Sep 2024 20:40:39 +0300 Subject: [PATCH] ci: Update our CircleCI machines to Ubuntu 22.04 Update our CircleCI machines for specific tests (Debian Bookworm and Fedora 40). It seems that the newest Podman version (5.2.1+), when creating a container using the `--userns nomap` triggers a permission denied error in older kernels. E.g.: Error: crun: cannot stat `/tmp/storage-run-1000/containers/overlay-containers/d00932f2600df7b0d8f4cc78e2346487ec92bfd17307127f3ae8d4e5bbc7887b/userdata/hosts`: Permission denied: OCI permission denied The solution that works for us is to update the machine image from Ubuntu 20.04 to Ubuntu 22.04. --- .circleci/config.yml | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b13972b..945186f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -275,10 +275,22 @@ jobs: ci-fedora-40: machine: - image: ubuntu-2004:202111-01 + image: ubuntu-2204:current steps: - checkout - run: *install-podman + - run: + name: Configure Podman for Ubuntu 22.04 + command: | + # This config circumvents the following issues: + # * https://github.com/containers/podman/issues/6368 + # * https://github.com/containers/podman/issues/10987 + mkdir -p ~/.config/containers + cat > ~/.config/containers/containers.conf \< ~/.config/containers/containers.conf \<