From 7f81939c50453fe173f9953c38c51ab8af78e503 Mon Sep 17 00:00:00 2001 From: Vasu Kulkarni Date: Wed, 13 Sep 2017 15:25:12 -0700 Subject: [PATCH] Compress logs only once , pull_directory does gzip compression as well. Signed-off-by: Vasu Kulkarni --- qa/tasks/ceph.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index 358ec8d648e99..f7b987f9e93a3 100644 --- a/qa/tasks/ceph.py +++ b/qa/tasks/ceph.py @@ -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') -- 2.39.5