[CEPH] Disable ceph pg autoscaler on pools by reading from values

This is to disable unintentionally enabled pg autoscaler on pools
by reading it from values.

Change-Id: Ib919ae7786ec1d4cbe7a309d28fd6571aa6195de
This commit is contained in:
Chinasubbareddy Mallavarapu 2020-08-21 14:52:12 -05:00
parent 754d8e93b4
commit 8adc6216bc

View File

@ -184,6 +184,8 @@ function create_pool () {
else
if [[ -z "$(ceph osd versions | grep ceph\ version | grep -v nautilus)" ]] && [[ $"{ENABLE_AUTOSCALER}" == "true" ]] ; then
ceph --cluster "${CLUSTER}" osd pool set "${POOL_NAME}" pg_autoscale_mode on
else
ceph --cluster "${CLUSTER}" osd pool set "${POOL_NAME}" pg_autoscale_mode off
fi
fi
#