From 11ab577099f736cfae72f2faacb32dc2dab6c5e6 Mon Sep 17 00:00:00 2001 From: Brian Wickersham Date: Fri, 18 Sep 2020 13:19:55 +0000 Subject: [PATCH] [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 --- ceph-client/templates/bin/pool/_init.sh.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph-client/templates/bin/pool/_init.sh.tpl b/ceph-client/templates/bin/pool/_init.sh.tpl index ed34cdd8e..d0bba405e 100644 --- a/ceph-client/templates/bin/pool/_init.sh.tpl +++ b/ceph-client/templates/bin/pool/_init.sh.tpl @@ -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