mirror of
https://github.com/kubevirt/containerized-data-importer.git
synced 2025-06-03 06:30:22 +00:00
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:
parent
fa83a0c266
commit
ac9b487d76
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user