From 8de590e5f9ff27e5f955d26c5857ce330482c36b Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 18 May 2016 09:32:47 -0600 Subject: [PATCH] Remote._sftp_get_file(): Log file size 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 --- teuthology/orchestra/remote.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/teuthology/orchestra/remote.py b/teuthology/orchestra/remote.py index 2d7b6fe8d..cb9d6b469 100644 --- a/teuthology/orchestra/remote.py +++ b/teuthology/orchestra/remote.py @@ -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 -- 2.47.3