From 360d4be961a626c634e22ed40e864df998f28242 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Wed, 20 Jul 2022 16:18:13 -0400 Subject: [PATCH] teuthology: do not gzip tar streams from remotes Usually, these files are already compressed (log outputs) and gzip is slow (especially if layered). Signed-off-by: Patrick Donnelly --- teuthology/misc.py | 2 +- teuthology/orchestra/remote.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/teuthology/misc.py b/teuthology/misc.py index 6a6651e722..cf7baa4963 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -741,7 +741,7 @@ def pull_directory(remote, remotedir, localdir, write_to=copy_fileobj): if not os.path.exists(localdir): os.mkdir(localdir) r = remote.get_tar_stream(remotedir, sudo=True) - tar = tarfile.open(mode='r|gz', fileobj=r.stdout) + tar = tarfile.open(mode='r', fileobj=r.stdout) while True: ti = tar.next() if ti is None: diff --git a/teuthology/orchestra/remote.py b/teuthology/orchestra/remote.py index df269c740b..89f2e2e0d9 100644 --- a/teuthology/orchestra/remote.py +++ b/teuthology/orchestra/remote.py @@ -640,7 +640,7 @@ class Remote(RemoteShell): args.append('sudo') args.extend([ 'tar', - 'cz', + 'c', '-f', '-', '-C', path, '--', -- 2.39.5