From 46952529c32776e2c7972ae60962bf99137787bd Mon Sep 17 00:00:00 2001 From: Marco Fargetta Date: Wed, 18 Dec 2024 14:56:07 +0100 Subject: [PATCH] CI Restart network interface in podman container When a podman container restarts the network interface does not always get updated correctly, making the following communications with the container fail. Reload the network solve the problems when it is present. --- .github/workflows/ca-container-basic-test.yml | 2 ++ .github/workflows/ca-container-existing-certs-test.yml | 2 ++ .github/workflows/kra-container-test.yml | 4 ++++ .github/workflows/ocsp-container-test.yml | 4 ++++ .github/workflows/server-container-test.yml | 2 ++ .github/workflows/tks-container-test.yml | 2 ++ .github/workflows/tps-container-test.yml | 4 ++++ 7 files changed, 20 insertions(+) diff --git a/.github/workflows/ca-container-basic-test.yml b/.github/workflows/ca-container-basic-test.yml index 7e672a808f3..303e16388ed 100644 --- a/.github/workflows/ca-container-basic-test.yml +++ b/.github/workflows/ca-container-basic-test.yml @@ -314,6 +314,8 @@ jobs: docker restart ca sleep 10 + docker network reload --all + # wait for CA to restart docker exec client curl \ --retry 180 \ diff --git a/.github/workflows/ca-container-existing-certs-test.yml b/.github/workflows/ca-container-existing-certs-test.yml index 18c23ad5ca3..c44b3e82f21 100644 --- a/.github/workflows/ca-container-existing-certs-test.yml +++ b/.github/workflows/ca-container-existing-certs-test.yml @@ -405,6 +405,8 @@ jobs: docker restart ca sleep 10 + docker network reload --all + # wait for CA to restart docker exec client curl \ --retry 180 \ diff --git a/.github/workflows/kra-container-test.yml b/.github/workflows/kra-container-test.yml index 821820a5985..0b1a3b84343 100644 --- a/.github/workflows/kra-container-test.yml +++ b/.github/workflows/kra-container-test.yml @@ -489,6 +489,8 @@ jobs: docker restart ca sleep 10 + docker network reload --all + # wait for CA to restart docker exec client curl \ --retry 180 \ @@ -625,6 +627,8 @@ jobs: docker restart kra sleep 10 + docker network reload --all + # wait for KRA to restart docker exec client curl \ --retry 180 \ diff --git a/.github/workflows/ocsp-container-test.yml b/.github/workflows/ocsp-container-test.yml index 53e08de031c..1435edca3ea 100644 --- a/.github/workflows/ocsp-container-test.yml +++ b/.github/workflows/ocsp-container-test.yml @@ -489,6 +489,8 @@ jobs: docker restart ca sleep 10 + docker network reload --all + # wait for CA to restart docker exec client curl \ --retry 180 \ @@ -647,6 +649,8 @@ jobs: docker restart ocsp sleep 10 + docker network reload --all + # wait for OCSP to restart docker exec client curl \ --retry 180 \ diff --git a/.github/workflows/server-container-test.yml b/.github/workflows/server-container-test.yml index f5d2b314bd7..d8ad9d7022e 100644 --- a/.github/workflows/server-container-test.yml +++ b/.github/workflows/server-container-test.yml @@ -150,6 +150,8 @@ jobs: docker restart server sleep 10 + docker network reload --all + # wait for server to restart docker exec client curl \ --retry 60 \ diff --git a/.github/workflows/tks-container-test.yml b/.github/workflows/tks-container-test.yml index c559008f586..dea84e94324 100644 --- a/.github/workflows/tks-container-test.yml +++ b/.github/workflows/tks-container-test.yml @@ -430,6 +430,8 @@ jobs: docker restart tks sleep 10 + docker network reload --all + # wait for TKS to restart docker exec client curl \ --retry 180 \ diff --git a/.github/workflows/tps-container-test.yml b/.github/workflows/tps-container-test.yml index 158a87f991a..c12e8523492 100644 --- a/.github/workflows/tps-container-test.yml +++ b/.github/workflows/tps-container-test.yml @@ -417,6 +417,8 @@ jobs: docker restart ca sleep 10 + docker network reload --all + # wait for CA to restart docker exec client curl \ --retry 180 \ @@ -787,6 +789,8 @@ jobs: docker restart tps sleep 10 + docker network reload --all + # wait for TPS to restart docker exec client curl \ --retry 180 \