Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

began to check if rook is healthy after the install #4636

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions addons/rook/1.11.8/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1110,10 +1110,16 @@ function rook_maybe_wait_for_rollout() {
# timeout set to 300s (5mins)
rook_ceph_cluster_ready_spinner 10 300

log "Awaiting Rook pods to transition to Running"
if ! spinner_until 120 check_for_running_pods "rook-ceph"; then
log "Awaiting up to 5 minutes Rook pods to transition to Running"
if ! spinner_until 300 check_for_running_pods "rook-ceph"; then
logWarn "Rook-ceph rollout did not complete within the allotted time"
fi

echo "Awaiting up to 20 minutes Rock Ceph be healthy"
if ! "$DIR"/bin/kurl rook wait-for-health 1200 ; then
kubectl -n rook-ceph exec deploy/rook-ceph-tools -- ceph status
logWarn "Refusing to update cluster rook-ceph, Ceph is not healthy"
fi
}

function rook_render_cluster_nodes_tmpl_yaml() {
Expand Down
10 changes: 8 additions & 2 deletions addons/rook/template/base/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1110,10 +1110,16 @@ function rook_maybe_wait_for_rollout() {
# timeout set to 300s (5mins)
rook_ceph_cluster_ready_spinner 10 300

log "Awaiting Rook pods to transition to Running"
if ! spinner_until 120 check_for_running_pods "rook-ceph"; then
log "Awaiting up to 5 minutes Rook pods to transition to Running"
if ! spinner_until 300 check_for_running_pods "rook-ceph"; then
logWarn "Rook-ceph rollout did not complete within the allotted time"
fi

echo "Awaiting up to 20 minutes Rock Ceph be healthy"
if ! "$DIR"/bin/kurl rook wait-for-health 1200 ; then
kubectl -n rook-ceph exec deploy/rook-ceph-tools -- ceph status
logWarn "Refusing to update cluster rook-ceph, Ceph is not healthy"
fi
}

function rook_render_cluster_nodes_tmpl_yaml() {
Expand Down