From e5100eacd46ee183a5db0a02e689b9657e9094a6 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Mon, 24 Jan 2022 17:08:59 +0530 Subject: [PATCH] deploy: add check for device-health-metrics pool Rook creates a detault pool with name device_health_metrics for device-health-metrics CephBlockPool CR. device-health-metrics is added to cluster-test.yaml in Rook 1.8 Signed-off-by: Madhu Rajanna --- scripts/rook.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/rook.sh b/scripts/rook.sh index 9de0c573b..5569df254 100755 --- a/scripts/rook.sh +++ b/scripts/rook.sh @@ -198,6 +198,12 @@ function check_rbd_stat() { else RBD_POOL_NAME=$1 fi + # Rook creates a detault pool with name device_health_metrics for + # device-health-metrics CephBlockPool CR + if [[ "${RBD_POOL_NAME}" == "device-health-metrics" ]]; then + RBD_POOL_NAME="device_health_metrics" + fi + echo "Checking RBD ($RBD_POOL_NAME) stats... ${retry}s" && sleep 5 TOOLBOX_POD=$(kubectl_retry -n rook-ceph get pods -l app=rook-ceph-tools -o jsonpath='{.items[0].metadata.name}')