Skip to content

Commit

Permalink
F #3222: return ec pool usage if used (#3333)
Browse files Browse the repository at this point in the history
  • Loading branch information
dann1 authored and rsmontero committed May 20, 2019
1 parent bfa43cc commit f07da23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tm_mad/ceph/monitor
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ 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)

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++]}"
Expand All @@ -78,6 +80,8 @@ if [ -n "$CEPH_CONF" ]; then
RADOS="$RADOS --conf ${CEPH_CONF}"
fi

[ -n "$EC_POOL_NAME" ] && POOL_NAME="$EC_POOL_NAME"

# ------------ Compute datastore usage -------------

MONITOR_SCRIPT=$(cat <<EOF
Expand Down

0 comments on commit f07da23

Please sign in to comment.