From e8341fe8761e2d73ed4b181e81a793baf3059906 Mon Sep 17 00:00:00 2001 From: Carl Csaposs Date: Fri, 11 Oct 2024 09:14:41 +0200 Subject: [PATCH] patch(integration_test_charm.yaml): Wait for microk8s to populate iptables before restarting on IS-hosted runners --- .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://'}"]