]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-common: improve error message on restart osd daemon script 1518/head
authorAlfredo Deza <adeza@redhat.com>
Fri, 12 May 2017 15:01:03 +0000 (11:01 -0400)
committerAlfredo Deza <adeza@redhat.com>
Fri, 12 May 2017 15:37:38 +0000 (11:37 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
roles/ceph-common/templates/restart_osd_daemon.sh.j2

index 0f841116143881d40e5ea6f9cf0a198563e151dc..cb420aef6e9fd49f6c4a575c68d1fa5e8d9f5b3f 100644 (file)
@@ -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
 }