Skip to content

Commit

Permalink
CI Restart network interface in podman container
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fmarco76 committed Dec 18, 2024
1 parent 4dd5145 commit b13594e
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ca-container-basic-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ca-container-existing-certs-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/kra-container-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ocsp-container-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/server-container-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tks-container-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tps-container-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit b13594e

Please sign in to comment.