From b04d18988e7f4c3da332af8941550ba0af18365a Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Fri, 12 May 2017 11:01:03 -0400 Subject: [PATCH] ceph-common: improve error message on restart osd daemon script Signed-off-by: Alfredo Deza --- roles/ceph-common/templates/restart_osd_daemon.sh.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 }