]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Remote._sftp_get_file(): Log file size 862/head
authorZack Cerza <zack@redhat.com>
Wed, 18 May 2016 15:32:47 +0000 (09:32 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 18 May 2016 17:45:37 +0000 (11:45 -0600)
This is so that jobs transferring large files don't get mistaken for
being hung.

Fixes: http://tracker.ceph.com/issues/15427
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/orchestra/remote.py

index 2d7b6fe8d7463e6814b648c12ac732e9bdbdc478..cb9d6b4691f97a6ede4e36bf9c63506c76ca1a89 100644 (file)
@@ -264,6 +264,10 @@ class Remote(object):
         """
         Use the paramiko.SFTPClient to get a file. Returns the local filename.
         """
+        file_size = self._format_size(
+            self._sftp_get_size(remote_path)
+        ).strip()
+        log.debug("{}:{} is {}".format(self.shortname, remote_path, file_size))
         sftp = self.ssh.open_sftp()
         sftp.get(remote_path, local_path)
         return local_path