From f7a955872822b7c736a200b62d54d14ec739dec3 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Tue, 7 Jun 2022 10:17:16 +0530 Subject: [PATCH] ci: add check for .mgr pool in rook.sh Rook v1.9.x creates pool with name .mgr for builtin-mgr CephBlockPool CR. Signed-off-by: Madhu Rajanna --- scripts/rook.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/rook.sh b/scripts/rook.sh index e9a644131..4d732c270 100755 --- a/scripts/rook.sh +++ b/scripts/rook.sh @@ -205,6 +205,11 @@ function check_rbd_stat() { RBD_POOL_NAME="device_health_metrics" fi + # Rook v1.9.x creates pool with name .mgr for builtin-mgr CephBlockPool CR + if [[ "${RBD_POOL_NAME}" == "builtin-mgr" ]]; then + RBD_POOL_NAME=".mgr" + 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}')