]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-deploy: ceph report on failure
authorLoic Dachary <ldachary@redhat.com>
Thu, 27 Aug 2015 21:19:22 +0000 (23:19 +0200)
committerLoic Dachary <ldachary@redhat.com>
Thu, 27 Aug 2015 21:19:22 +0000 (23:19 +0200)
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 <loic@dachary.org>
tasks/ceph_deploy.py

index 65e7dff897957e53558fb377bf58056eeaee18cf..f6a365f75af1e086244b7b763d2e1fd04eee743b 100644 (file)
@@ -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(