diff --git a/.github/workflows/canary-integration-test.yml b/.github/workflows/canary-integration-test.yml index 75e410ad0..af93d951f 100644 --- a/.github/workflows/canary-integration-test.yml +++ b/.github/workflows/canary-integration-test.yml @@ -1685,7 +1685,7 @@ jobs: cd deploy/examples/ yq w -i pool-test.yaml metadata.name replicapool2 kubectl create -f pool-test.yaml - timeout 180 sh -c 'until [ "$(kubectl -n rook-ceph-secondary get cephblockpool replicapool -o jsonpath='{.status.phase}'|grep -c "Ready")" -eq 1 ]; do echo "waiting for pool replicapool2 to be created on cluster 2" && sleep 1; done' + timeout 180 sh -c 'until [ "$(kubectl -n rook-ceph-secondary get cephblockpool replicapool2 -o jsonpath='{.status.phase}'|grep -c "Ready")" -eq 1 ]; do echo "waiting for pool replicapool2 to be created on cluster 2" && sleep 1; done' - name: create images in the pools run: | diff --git a/tests/scripts/github-action-helper.sh b/tests/scripts/github-action-helper.sh index 4c7c59941..5299bf42b 100755 --- a/tests/scripts/github-action-helper.sh +++ b/tests/scripts/github-action-helper.sh @@ -320,7 +320,11 @@ function deploy_manifest_with_local_build() { function deploy_toolbox() { cd "${REPO_DIR}/deploy/examples" sed -i 's/image: quay\.io\/ceph\/ceph:.*/image: quay.io\/ceph\/ceph:v18/' toolbox.yaml + local ns + ns=$(yq r toolbox.yaml metadata.namespace 2>/dev/null) + timeout 300 bash -c 'until kubectl get secret rook-ceph-mon -n "$1" &>/dev/null && kubectl get cm rook-ceph-mon-endpoints -n "$1" &>/dev/null; do sleep 2; done' _ "${ns}" kubectl create -f toolbox.yaml + kubectl -n "${ns}" wait --for=condition=available deployment/rook-ceph-tools --timeout=300s } function replace_ceph_image() {