]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
teuthology: do not gzip tar streams from remotes log-no-gzip
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 20 Jul 2022 20:18:13 +0000 (16:18 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 20 Jul 2022 20:18:13 +0000 (16:18 -0400)
Usually, these files are already compressed (log outputs) and gzip is
slow (especially if layered).

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
teuthology/misc.py
teuthology/orchestra/remote.py

index 6a6651e7222403e357ea127e991b1d675172ffc6..cf7baa4963e0631ce31e8ec2c72e960f09d33829 100644 (file)
@@ -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:
index df269c740b49aa422ebda890e7b52e52334b9c1c..89f2e2e0d9548d5766b71fbfaf5b51d677617e48 100644 (file)
@@ -640,7 +640,7 @@ class Remote(RemoteShell):
             args.append('sudo')
         args.extend([
             'tar',
-            'cz',
+            'c',
             '-f', '-',
             '-C', path,
             '--',