From c77fedfde0fb01a0e48572d952ba71a3631efd34 Mon Sep 17 00:00:00 2001 From: Rabin Yasharzadehe Date: Wed, 18 Dec 2024 09:31:01 +0200 Subject: [PATCH] Add more debug steps for openshift ci + Log the CR's (tee) applyed to the cluster + Dump CustomResourceDefinition $ARTIFACT_DIR + Pause for debug Signed-off-by: Rabin Yasharzadehe --- deploy-kubevirt-gating.sh | 17 ++++++++++++++--- test-prow-e2e.sh | 1 + 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/deploy-kubevirt-gating.sh b/deploy-kubevirt-gating.sh index 37accea80..f5e38b240 100755 --- a/deploy-kubevirt-gating.sh +++ b/deploy-kubevirt-gating.sh @@ -2,6 +2,14 @@ export ON_CI="ON_CI" +pause_for_debug() +{ + if [[ ${OPENSHIFT_CI} == 'true' ]]; then + echo " 🐛 Pause and give time to debug the issue" + sleep 7000 + fi +} + # Wait until master and worker MCP are updated # or timeout after 90min. wait_mcp_for_updated() @@ -29,6 +37,7 @@ wait_mcp_for_updated() download_virtctl() { + #VIRTCTL_LATEST=$(curl -fsSL -H 'Accept: application/json' https://github.com/kubevirt/kubevirt/releases/latest | jq -r '.tag_name' | tr -d 'v') VIRTCTL_DOWNLOAD_URL="https://github.com/kubevirt/kubevirt/releases/download/${VIRTCTL_VERSION}/virtctl-${VIRTCTL_VERSION}" VIRTCTL_X86_64="${VIRTCTL_DOWNLOAD_URL}-linux-x86_64" VIRTCTL_AMD64="${VIRTCTL_DOWNLOAD_URL}-linux-amd64" @@ -53,7 +62,7 @@ export HCO_SUBSCRIPTION_CHANNEL=${HCO_SUBSCRIPTION_CHANNEL:-"candidate-v1.14"} export VIRTCTL_VERSION="v1.4.0" export HPP_VERSION="release-v0.21" -cat < ${ARTIFACT_DIR}/cluster_info.json oc get catalogsource -A -o wide > ${ARTIFACT_DIR}/catalogsource.yaml oc get catalogsource -A -o yaml >> ${ARTIFACT_DIR}/catalogsource.yaml + oc get CustomResourceDefinition -o yaml > ${ARTIFACT_DIR}/CustomResourceDefinition.yaml oc get subscriptions -n ${NS} -o wide > ${ARTIFACT_DIR}/subscription_details.yaml oc get subscriptions -n ${NS} -o yaml >> ${ARTIFACT_DIR}/subscription_details.yaml oc get csvs -n ${NS} -o wide > ${ARTIFACT_DIR}/csvs.yaml