From e5db657e86253f8d7759ff128df481968d944ffe Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Thu, 27 Aug 2015 23:19:22 +0200 Subject: [PATCH] ceph-deploy: ceph report on failure When ceph-deploy fails, run ceph report to get more information about the state of the cluster at the time of the failure. Signed-off-by: Loic Dachary --- tasks/ceph_deploy.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tasks/ceph_deploy.py b/tasks/ceph_deploy.py index 65e7dff897957..f6a365f75af1e 100644 --- a/tasks/ceph_deploy.py +++ b/tasks/ceph_deploy.py @@ -74,6 +74,15 @@ def is_healthy(ctx, config): tries += 1 if tries >= max_tries: msg = "ceph health was unable to get 'HEALTH_OK' after waiting 15 minutes" + remote.run( + args=[ + 'cd', + '{tdir}'.format(tdir=testdir), + run.Raw('&&'), + 'sudo', 'ceph', + 'report', + ], + ) raise RuntimeError(msg) r = remote.run( -- 2.39.5