From c095c2495093c96f1fac60ff9aad44195c05ef31 Mon Sep 17 00:00:00 2001 From: Thomas Woerner Date: Wed, 16 Oct 2024 12:03:23 +0200 Subject: [PATCH 1/3] Use ubuntu 24.04 for testing --- infra/azure/azure-pipelines.yml | 2 +- infra/azure/nightly.yml | 2 +- infra/azure/pr-pipeline.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/infra/azure/azure-pipelines.yml b/infra/azure/azure-pipelines.yml index 584cabec..b79f9825 100644 --- a/infra/azure/azure-pipelines.yml +++ b/infra/azure/azure-pipelines.yml @@ -3,7 +3,7 @@ trigger: - master pool: - vmImage: 'ubuntu-20.04' + vmImage: 'ubuntu-24.04' variables: ansible_version: "-core >=2.16,<2.17" diff --git a/infra/azure/nightly.yml b/infra/azure/nightly.yml index 2790199e..7eb3a30b 100644 --- a/infra/azure/nightly.yml +++ b/infra/azure/nightly.yml @@ -10,7 +10,7 @@ schedules: trigger: none pool: - vmImage: 'ubuntu-20.04' + vmImage: 'ubuntu-24.04' variables: # We need to have two sets, as c8s is not supported by all ansible versions diff --git a/infra/azure/pr-pipeline.yml b/infra/azure/pr-pipeline.yml index 648a554e..d87b24d9 100644 --- a/infra/azure/pr-pipeline.yml +++ b/infra/azure/pr-pipeline.yml @@ -3,7 +3,7 @@ trigger: - master pool: - vmImage: 'ubuntu-20.04' + vmImage: 'ubuntu-24.04' variables: distros: "fedora-latest,c10s,c9s,c8s,fedora-rawhide" From e9435410b2c05994d5439d4501792cffd952ce2c Mon Sep 17 00:00:00 2001 From: Thomas Woerner Date: Thu, 17 Oct 2024 10:27:52 +0200 Subject: [PATCH 2/3] utils/setup_test_container.sh: Wait till systemd-journald is running This ensures that systemctl list-jobs could be executed and it will be waited till the list of jobs is empty. --- utils/setup_test_container.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/utils/setup_test_container.sh b/utils/setup_test_container.sh index 0916c27f..2cd11dc3 100755 --- a/utils/setup_test_container.sh +++ b/utils/setup_test_container.sh @@ -79,6 +79,20 @@ shift prepare_container "${scenario}" "${IMAGE_TAG}" start_container "${scenario}" +log info "Wait till systemd-journald is running" +max=20 +wait=2 +count=0 +while ! podman exec "${scenario}" ps -x | grep -q "systemd-journald" +do + if [ $count -ge $max ]; then + die "Timeout: systemd-journald is not starting up" + fi + count=$((count+1)) + log none "Waiting ${wait} seconds .." + sleep ${wait} +done + # wait for FreeIPA services to be available (usually ~45 seconds) log info "Wait for container to be initialized." wait=15 From 4dc619264014eb4948b7acd17498450ba4836951 Mon Sep 17 00:00:00 2001 From: Thomas Woerner Date: Wed, 2 Apr 2025 13:13:09 +0200 Subject: [PATCH 3/3] infra/image/shcontainer: Ensure '/ect/shadow' is readable The shadow file in a Fedora or CentOS Stream container is not readable any more using Ubuntu 24.04. An extra call to ensure that the shadow file is readable again has been added to container_start. --- infra/image/shcontainer | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infra/image/shcontainer b/infra/image/shcontainer index a2d36c65..636cd678 100644 --- a/infra/image/shcontainer +++ b/infra/image/shcontainer @@ -47,6 +47,8 @@ container_start() { log info "= Starting ${name} =" podman start "${name}" + # Ensure /etc/shadow is readable + podman exec "${name}" bash -c "chmod u+r /etc/shadow" echo }