Skip to content

Commit b53d17b

Browse files
committed
prow.sh: debug failing KinD cluster creation
When KinD fails in a Prow job, we need additional information to understand why it failed.
1 parent 54dbb69 commit b53d17b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

prow.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,14 @@ $(list_gates "$gates")
476476
featureGates:
477477
$(list_gates "$gates")
478478
EOF
479-
run kind create cluster --name csi-prow --config "${CSI_PROW_WORK}/kind-config.yaml" --wait 5m --image "$image" || die "'kind create cluster' failed"
479+
info "kind-config.yaml:"
480+
cat "${CSI_PROW_WORK}/kind-config.yaml"
481+
if ! run kind create cluster --name csi-prow --config "${CSI_PROW_WORK}/kind-config.yaml" --wait 5m --image "$image"; then
482+
warn "Cluster creation failed. Will try again with higher verbosity."
483+
info "Available Docker images:"
484+
docker image ls
485+
run kind --loglevel debug create cluster --name csi-prow --config "${CSI_PROW_WORK}/kind-config.yaml" --wait 5m --image "$image" || die "cluster creation failed again, giving up"
486+
fi
480487
KUBECONFIG="$(kind get kubeconfig-path --name=csi-prow)"
481488
export KUBECONFIG
482489
}

0 commit comments

Comments
 (0)