From 1a30e20713cfc03483b15cc0105259ed6ef9a8df Mon Sep 17 00:00:00 2001 From: ilia-shipitsin <125650415+ilia-shipitsin@users.noreply.github.com> Date: Mon, 4 Sep 2023 10:50:30 +0200 Subject: [PATCH] [ubuntu] pin podmanm, add testcase for podman networking (#7763) Related: https://github.com/actions/runner-images/issues/7753 --- images/linux/scripts/installers/containers.sh | 10 +++++++++- images/linux/scripts/tests/Tools.Tests.ps1 | 6 ++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/images/linux/scripts/installers/containers.sh b/images/linux/scripts/installers/containers.sh index 418494a8..38a9d89a 100644 --- a/images/linux/scripts/installers/containers.sh +++ b/images/linux/scripts/installers/containers.sh @@ -6,7 +6,15 @@ source $HELPER_SCRIPTS/os.sh -install_packages=(podman buildah skopeo) +# +# pin podman due to https://github.com/actions/runner-images/issues/7753 +# https://bugs.launchpad.net/ubuntu/+source/libpod/+bug/2024394 +# +if isUbuntu20; then + install_packages=(podman buildah skopeo) +else + install_packages=(podman=3.4.4+ds1-1ubuntu1 buildah skopeo) +fi # Packages is available in the official Ubuntu upstream starting from Ubuntu 21 if isUbuntu20; then diff --git a/images/linux/scripts/tests/Tools.Tests.ps1 b/images/linux/scripts/tests/Tools.Tests.ps1 index 22f677da..aa6cc8f4 100644 --- a/images/linux/scripts/tests/Tools.Tests.ps1 +++ b/images/linux/scripts/tests/Tools.Tests.ps1 @@ -341,6 +341,12 @@ Describe "Containers" { "$ContainerCommand -v" | Should -ReturnZeroExitCode } + + # https://github.com/actions/runner-images/issues/7753 + It "podman networking" -TestCases "podman CNI plugins" { + "podman network create -d bridge test-net && podman network ls" | Should -Not -MatchCommandOutput "Error" + } + } Describe "nvm" {