]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
handler: display ceph status properly 1945/head
authorSébastien Han <seb@redhat.com>
Fri, 22 Sep 2017 15:45:35 +0000 (17:45 +0200)
committerSébastien Han <seb@redhat.com>
Fri, 22 Sep 2017 15:45:35 +0000 (17:45 +0200)
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 <seb@redhat.com>
roles/ceph-defaults/templates/restart_osd_daemon.sh.j2

index d471f59b18a5fc45b6cc4da79d5c38cd35857f03..856464ffee900b140963478ec9ec9cf82212b448 100644 (file)
@@ -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
 }