Skip to content

Commit

Permalink
Merge pull request #452 from openshift-cherrypick-robot/cherry-pick-4…
Browse files Browse the repository at this point in the history
…51-to-release-4.16

[release-4.16] hack: update script to print debug output of csv and pods
  • Loading branch information
openshift-merge-bot[bot] authored Jul 23, 2024
2 parents f8200a8 + 6f1e81f commit 548787d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion hack/install-odf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ fi

"$OPERATOR_SDK" run bundle "$BUNDLE_IMG" --timeout=10m --security-context-config restricted -n "$INSTALL_NAMESPACE" --index-image "$CATALOG_DEPS_IMG"

oc wait --timeout=5m --for jsonpath='{.status.phase}'=Succeeded -n "$INSTALL_NAMESPACE" csv $CSV_NAMES
oc wait --timeout=5m --for jsonpath='{.status.phase}'=Succeeded -n "$INSTALL_NAMESPACE" csv $CSV_NAMES || {

echo "CSV $CSV_NAMES did not succeed, describing CSV"
oc get csv -n "$INSTALL_NAMESPACE"
oc get pods -n "$INSTALL_NAMESPACE"
oc describe csv -n "$INSTALL_NAMESPACE"
oc describe pods -n "$INSTALL_NAMESPACE"
exit 1
}

oc wait --timeout=5m --for condition=Available -n "$INSTALL_NAMESPACE" deployment \
csi-addons-controller-manager \
Expand Down

0 comments on commit 548787d

Please sign in to comment.