Skip to content

Commit

Permalink
Merge pull request #451 from iamniting/failure
Browse files Browse the repository at this point in the history
hack: update script to print debug output of csv and pods
  • Loading branch information
openshift-merge-bot[bot] authored Jul 23, 2024
2 parents abe8dbc + 0546573 commit b341a35
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 b341a35

Please sign in to comment.