Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
e2e: retry OLM uninstall
Browse files Browse the repository at this point in the history
It failed at least once with:

    + /mnt/workspace/pmem-csi_PR-1054/_work/bin/operator-sdk olm uninstall
    time="2021-12-08T13:05:39Z" level=info msg="Fetching CRDs for version \"0.18.3\""
    time="2021-12-08T13:05:39Z" level=info msg="Fetching resources for resolved version \"v0.18.3\""
    time="2021-12-08T13:05:44Z" level=fatal msg="Failed to uninstall OLM: failed to get resources: failed to fetch CRDs: request failed: failed GET 'https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.18.3/crds.yaml': unexpected status code 503, expected 200: \ufeff<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>ServerBusy</Code><Message>Egress is over the account limit.\nRequestId:55167efb-b01e-006c-4f34-ecc9f2000000\nTime:2021-12-08T13:05:44.6418446Z</Message></Error>"
  • Loading branch information
pohly committed Dec 8, 2021
1 parent af6eb5b commit 03126e8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/start-stop-olm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,13 @@ if [ $cmd == install ]; then
elif [ $status -ne 0 ]; then
echo "No running OLM found."
else
${BIN_DIR}/operator-sdk olm uninstall
attempt=0
while ! ${BIN_DIR}/operator-sdk olm uninstall; do
if [ "$attempt" -ge 5 ]; then
echo "Giving up. Current status is:"
${KUBECTL} get all -n olm
exit 1
fi
attempt=$((attempt + 1))
done
fi

0 comments on commit 03126e8

Please sign in to comment.