From 282b3b98df944da7bea6654c3323ec875666e96e Mon Sep 17 00:00:00 2001 From: Sergiy Markin Date: Tue, 24 Dec 2024 16:24:03 +0000 Subject: [PATCH] [ceph-osd] Remove wait_for_degraded_objects This PS removes the wait_for_degraded_objects function from ceph-osd helm-test script because not all pgs may be in good condition even if all osds are up and running. The pgs will get healthy after complete osd charts set upgrade is complete. Change-Id: Ia8da3d96e01b765c5cb691dd0af15f36a7292e89 --- ceph-osd/templates/bin/_helm-tests.sh.tpl | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/ceph-osd/templates/bin/_helm-tests.sh.tpl b/ceph-osd/templates/bin/_helm-tests.sh.tpl index 28ea4edc52..9008ad8816 100644 --- a/ceph-osd/templates/bin/_helm-tests.sh.tpl +++ b/ceph-osd/templates/bin/_helm-tests.sh.tpl @@ -16,17 +16,6 @@ limitations under the License. set -ex -function wait_for_degraded_objects () { - echo "#### Start: Checking for degraded objects ####" - - # Loop until no degraded objects - while [[ ! -z "`ceph --cluster ${CLUSTER} -s | grep 'degraded'`" ]] - do - sleep 30 - ceph -s - done -} - function check_osd_count() { echo "#### Start: Checking OSD count ####" noup_flag=$(ceph osd stat | awk '/noup/ {print $2}') @@ -49,8 +38,6 @@ function check_osd_count() { fi done echo "Caution: noup flag is set. ${count} OSDs in up/new state. Required number of OSDs: ${MIN_OSDS}." - wait_for_degraded_objects - echo "There is no degraded objects found" ceph -s exit 0 else @@ -58,8 +45,6 @@ function check_osd_count() { echo "There are no osds in the cluster" elif [ "${num_in_osds}" -ge "${MIN_OSDS}" ] && [ "${num_up_osds}" -ge "${MIN_OSDS}" ]; then echo "Required number of OSDs (${MIN_OSDS}) are UP and IN status" - wait_for_degraded_objects - echo "There is no degraded objects found" ceph -s exit 0 else @@ -74,6 +59,6 @@ function check_osd_count() { # and there is degraded objects while true; do check_osd_count - sleep 10 + sleep 60 done