]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Compress logs only once , pull_directory does gzip compression as well.
authorVasu Kulkarni <vasu@redhat.com>
Wed, 13 Sep 2017 22:25:12 +0000 (15:25 -0700)
committerVasu Kulkarni <vasu@redhat.com>
Wed, 13 Sep 2017 22:25:12 +0000 (15:25 -0700)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
qa/tasks/ceph.py

index 358ec8d648e99555adf05ce5290ab418408e910a..f7b987f9e93a352ae8a032b389503e9146598259 100644 (file)
@@ -207,28 +207,6 @@ def ceph_log(ctx, config):
         if ctx.archive is not None and \
                 not (ctx.config.get('archive-on-error') and ctx.summary['success']):
             # and logs
-            log.info('Compressing logs...')
-            run.wait(
-                ctx.cluster.run(
-                    args=[
-                        'sudo',
-                        'find',
-                        '/var/log/ceph',
-                        '-name',
-                        '*.log',
-                        '-print0',
-                        run.Raw('|'),
-                        'sudo',
-                        'xargs',
-                        '-0',
-                        '--no-run-if-empty',
-                        '--',
-                        'gzip',
-                        '--',
-                    ],
-                    wait=False,
-                ),
-            )
 
             log.info('Archiving logs...')
             path = os.path.join(ctx.archive, 'remote')