From: Patrick Donnelly Date: Wed, 20 Jul 2022 20:18:13 +0000 (-0400) Subject: teuthology: do not gzip tar streams from remotes X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fheads%2Flog-no-gzip;p=teuthology.git 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 --- diff --git a/teuthology/misc.py b/teuthology/misc.py index 6a6651e72..cf7baa496 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 df269c740..89f2e2e0d 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, '--',