From: Alfredo Deza Date: Fri, 12 May 2017 15:01:03 +0000 (-0400) Subject: ceph-common: improve error message on restart osd daemon script X-Git-Tag: v2.2.5~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1523%2Fhead;p=ceph-ansible.git ceph-common: improve error message on restart osd daemon script Signed-off-by: Alfredo Deza (cherry picked from commit b04d18988e7f4c3da332af8941550ba0af18365a) --- diff --git a/roles/ceph-common/templates/restart_osd_daemon.sh.j2 b/roles/ceph-common/templates/restart_osd_daemon.sh.j2 index 0f8411161..cb420aef6 100644 --- a/roles/ceph-common/templates/restart_osd_daemon.sh.j2 +++ b/roles/ceph-common/templates/restart_osd_daemon.sh.j2 @@ -13,7 +13,10 @@ check_pgs() { let RETRIES=RETRIES-1 done # PGs not clean, exiting with return code 1 - echo "Error with PGs, check config" + 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" + ceph $CEPH_CLI -s exit 1 }