From a74e2e51beabe6a3cf258ef687f57fd12cf0f986 Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Tue, 24 Nov 2026 15:23:07 +0100 Subject: [PATCH] B #8234: Monitor capacity of the Ceph EC data pool (#4728) Signed-off-by: Guillermo Ramos --- src/datastore_mad/remotes/ceph/monitor | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/datastore_mad/remotes/ceph/monitor b/src/datastore_mad/remotes/ceph/monitor index de7afefc14..9c7390a897 100755 --- a/src/datastore_mad/remotes/ceph/monitor +++ b/src/datastore_mad/remotes/ceph/monitor @@ -48,6 +48,7 @@ while IFS= read -r -d '' element; do XPATH_ELEMENTS[i++]="$element" done < <($XPATH /DS_DRIVER_ACTION_DATA/DATASTORE/TEMPLATE/BRIDGE_LIST \ /DS_DRIVER_ACTION_DATA/DATASTORE/TEMPLATE/POOL_NAME \ + /DS_DRIVER_ACTION_DATA/DATASTORE/TEMPLATE/EC_POOL_NAME \ /DS_DRIVER_ACTION_DATA/DATASTORE/TEMPLATE/CEPH_USER \ /DS_DRIVER_ACTION_DATA/DATASTORE/TEMPLATE/CEPH_KEY \ /DS_DRIVER_ACTION_DATA/DATASTORE/TEMPLATE/CEPH_CONF \ @@ -55,6 +56,7 @@ done < <($XPATH /DS_DRIVER_ACTION_DATA/DATASTORE/TEMPLATE/BRIDGE_LIST \ BRIDGE_LIST="${XPATH_ELEMENTS[j++]}" POOL_NAME="${XPATH_ELEMENTS[j++]:-$POOL_NAME}" +EC_POOL_NAME="${XPATH_ELEMENTS[j++]}" CEPH_USER="${XPATH_ELEMENTS[j++]}" CEPH_KEY="${XPATH_ELEMENTS[j++]}" CEPH_CONF="${XPATH_ELEMENTS[j++]}" @@ -137,7 +139,7 @@ MONITOR_STATUS=$? if [ "$MONITOR_STATUS" = "0" ]; then XPATH="${DRIVER_PATH}/../../datastore/xpath.rb --stdin" - echo -e "$(rbd_df_monitor ${MONITOR_DATA} ${POOL_NAME})" + echo -e "$(rbd_df_monitor "$MONITOR_DATA" "${EC_POOL_NAME:-$POOL_NAME}")" else echo "$MONITOR_DATA" exit $MONITOR_STATUS