From 2dfa3626c5f77bd8362eb1bbfc4b239dcd198aaf Mon Sep 17 00:00:00 2001 From: Carl Csaposs Date: Wed, 16 Oct 2024 06:49:12 +0000 Subject: [PATCH] patch(integration_test_charm.yaml): Wait for microk8s to populate iptables before restarting on IS-hosted runners (#242) --- .github/workflows/integration_test_charm.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/integration_test_charm.yaml b/.github/workflows/integration_test_charm.yaml index b056d626..2199fa32 100644 --- a/.github/workflows/integration_test_charm.yaml +++ b/.github/workflows/integration_test_charm.yaml @@ -343,6 +343,10 @@ jobs: timeout-minutes: 5 if: ${{ inputs.cloud == 'microk8s' && matrix.groups.is_hosted }} run: | + # Wait for microk8s to populate iptables + # https://chat.canonical.com/canonical/pl/jo5cg6wqjjrudqd5ybj6hhttee + sg '${{ steps.parse-cloud.outputs.group }}' -c "microk8s status --wait-ready" + sudo tee /var/snap/microk8s/current/args/certs.d/docker.io/hosts.toml << EOF server = "$DOCKERHUB_MIRROR" [host."${DOCKERHUB_MIRROR#'https://'}"]