From 8f71c08e7b1aee46bac8b0f90fc0a71d561d59c0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Fri, 22 Sep 2017 17:45:35 +0200 Subject: [PATCH] handler: display ceph status properly MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix bash error, doing ceph "$CEPH_CLI" -s gives us ceph '--name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/test.keyring --cluster test' -s which results in a wrongly formatted command. Removing the double quotes expands the array properly. Signed-off-by: Sébastien Han --- roles/ceph-defaults/templates/restart_osd_daemon.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-defaults/templates/restart_osd_daemon.sh.j2 b/roles/ceph-defaults/templates/restart_osd_daemon.sh.j2 index d471f59b1..856464ffe 100644 --- a/roles/ceph-defaults/templates/restart_osd_daemon.sh.j2 +++ b/roles/ceph-defaults/templates/restart_osd_daemon.sh.j2 @@ -16,7 +16,7 @@ check_pgs() { echo "Error while running 'ceph $CEPH_CLI -s', PGs were not reported as active+clean" echo "It is possible that the cluster has less OSDs than the replica configuration" echo "Will refuse to continue" - $docker_exec ceph "$CEPH_CLI" -s + $docker_exec ceph $CEPH_CLI -s exit 1 } -- 2.39.5