[ceph-client] Fix issue with checking if autoscaler should be enabled

This corrects an issue in the create_pool function with checking
if the pg autoscaler should be enabled.

Change-Id: Id9be162fd59cc452477f5cc5c5698de7ae5bb141
This commit is contained in:
Brian Wickersham 2020-09-18 13:19:55 +00:00
parent 2bfce96304
commit 11ab577099
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ function create_pool () {
while [ $(ceph --cluster "${CLUSTER}" -s | grep creating -c) -gt 0 ]; do echo -n .;sleep 1; done
ceph --cluster "${CLUSTER}" osd pool application enable "${POOL_NAME}" "${POOL_APPLICATION}"
else
if [[ -z "$(ceph osd versions | grep ceph\ version | grep -v nautilus)" ]] && [[ $"{ENABLE_AUTOSCALER}" == "true" ]] ; then
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