Increase timeout waiting for ceph to be ready, also print ceph namespace pods every 30 seconds (#1209)

Signed-off-by: Alexander Wels <awels@redhat.com>
This commit is contained in:
Alexander Wels 2020-05-21 21:39:29 -04:00 committed by GitHub
parent fa83a0c266
commit ac9b487d76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,10 @@ function configure_ceph() {
# wait for ceph
until _kubectl get cephblockpools -n rook-ceph replicapool -o jsonpath='{.status.phase}' | grep Ready; do
((count++)) && ((count == 60)) && echo "Ceph not ready in time" && exit 1
((count++)) && ((count == 120)) && echo "Ceph not ready in time" && exit 1
if ! ((count % 6 )); then
_kubectl get pods -n rook-ceph
fi
echo "Waiting for Ceph to be Ready, sleeping 5s and rechecking"
sleep 5
done