diff --git a/tests/scripts/install.sh b/tests/scripts/install.sh index 282867431..5311eb54b 100755 --- a/tests/scripts/install.sh +++ b/tests/scripts/install.sh @@ -10,12 +10,14 @@ while [[ $retry -gt 0 ]]; do ./setup.sh -o ~/peak/operatorsetup 2>&1 if [ $? -eq 0 ]; then retry=-1 - fi + else + echo "Trying restart of marketplace community operator pod" + oc delete pod -n openshift-marketplace $(oc get pod -n openshift-marketplace -l marketplace.operatorSource=community-operators -o jsonpath="{$.items[*].metadata.name}") + sleep 3m + fi retry=$(( retry - 1)) sleep 1m done -echo "Pausing 20 seconds to allow operator to start" -sleep 20s popd ## Grabbing and applying the patch in the PR we are testing pushd ~/src/odh-manifests diff --git a/tests/scripts/installandtest.sh b/tests/scripts/installandtest.sh index a00b5cbb7..a2d465409 100755 --- a/tests/scripts/installandtest.sh +++ b/tests/scripts/installandtest.sh @@ -23,10 +23,12 @@ if [ "$?" -ne 0 ]; then if [ -z "${SKIP_PODS_OUTPUT}" ]; then echo "Here's a dump of the pods:" oc get pods -o json -n ${ODHPROJECT} + echo "Logs from the opendatahub-operator pod" + oc logs -n openshift-operators $(oc get pods -n openshift-operators -l name=opendatahub-operator -o jsonpath="{$.items[*].metadata.name}") fi exit 1 fi ## Debugging pause...uncomment below to be able to poke around the test pod post-test # echo "Debugging pause for 3 hours" -# sleep 180m +#sleep 180m