]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
internal: archive mon data dirs
authorSage Weil <sage@inktank.com>
Wed, 11 Jul 2012 21:14:46 +0000 (14:14 -0700)
committerSage Weil <sage@inktank.com>
Wed, 11 Jul 2012 21:14:46 +0000 (14:14 -0700)
These can be useful for debugging, and are usually pretty small.

Fixes: #2714
teuthology/task/ceph.py

index 4003555080d09154bf1cc96ac6b4aa7e2e7e1ddd..774af9d2dcaf8efd32aa57ba3c0cacea0ca0a121 100644 (file)
@@ -744,6 +744,18 @@ def cluster(ctx, config):
                         ]
                     )
 
+        if ctx.archive is not None:
+            # archive mon data, too
+            log.info('Archiving mon data...')
+            path = os.path.join(ctx.archive, 'data')
+            os.makedirs(path)
+            for remote, roles in mons.remotes.iteritems():
+                for role in roles:
+                    if role.startswith('mon.'):
+                        teuthology.pull_directory(remote,
+                                       '/tmp/cephtest/data/%s' % role,
+                                       path + '/' + role)
+
         log.info('Cleaning ceph cluster...')
         run.wait(
             ctx.cluster.run(