defaults: add useful info if daemon are not restarted properly

If OSDs don't restart normally we now also dump info of the crush map,
crush rules, crush tree and pools.

If the monitors don't restart normally we also print the socket status
by calling mon_status and quorum_status.

Signed-off-by: Sébastien Han <seb@redhat.com>
pull/2450/head
Sébastien Han 2018-03-07 11:56:30 +01:00 committed by Guillaume Abrioux
parent 3a9d0c5535
commit 18402b636f
2 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,9 @@ done
echo "Error with quorum."
echo "cluster status:"
$DOCKER_EXEC ceph --cluster {{ cluster }} -s
echo "quorum status:"
$DOCKER_EXEC ceph --cluster {{ cluster }} daemon mon.${MONITOR_NAME} mon_status
$DOCKER_EXEC ceph --cluster {{ cluster }} daemon mon.${MONITOR_NAME} quorum_status
exit 1
}

View File

@ -21,6 +21,9 @@ check_pgs() {
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 osd dump
$docker_exec ceph $CEPH_CLI osd tree
$docker_exec ceph $CEPH_CLI osd crush rule dump
exit 1
}