diff --git a/gnocchi/templates/bin/_storage-init.sh.tpl b/gnocchi/templates/bin/_storage-init.sh.tpl index f8f7fcea2..328d27bb5 100644 --- a/gnocchi/templates/bin/_storage-init.sh.tpl +++ b/gnocchi/templates/bin/_storage-init.sh.tpl @@ -29,7 +29,7 @@ ceph -s function ensure_pool () { ceph osd pool stats $1 || ceph osd pool create $1 $2 local test_version=$(ceph tell osd.* version | egrep -c "mimic|luminous" | xargs echo) - if [[ ${test_mimic} -gt 0 ]]; then + if [[ ${test_version} -gt 0 ]]; then ceph osd pool application enable $1 $3 fi }