]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
Handle raw data I/O.
authorWarren Usui <warren.usui@inktank.com>
Tue, 22 Apr 2014 18:14:51 +0000 (11:14 -0700)
committerZack Cerza <zack@cerza.org>
Tue, 29 Apr 2014 21:14:11 +0000 (16:14 -0500)
commit257e1459fa064701d789f0ad54384bb80b45e6d9
treef1b32cb3111384e12a4cf8b549de7008f85dc136
parent3faeb08db257746396e097cf83badfc32128de72
Handle raw data I/O.

Paramiko 1.13.0 checks data in the Channel and fails if
invalid UTF-8 characters are sent.  The teuthology/misc.py
functions that piped cat output (get_file) and piped tar
output (pull_directory and pull_directory_tarball) formerly
did not work for Paramiko 1.13.0.

Code was changed to use SFTPClient to copy raw data.  The
remote_mktemp and function was changed to be a method of the
remote object.  Remote object methods to copy files and write
tar files were also added.

In misc.py, get_file() was changed to be a wrapper around the
remote object call.  Pull_directory() and pull_directory_tarball
were changed to use the remote object methods as well.

The remote methods used to send the data makes use of the
SFTPClient interface in Paramiko.

The remote_mktemp function was also modified slightly to insure
that new-lines do not appear in temp file names.

Fixes: 8116
Signed-off-by: Warren Usui <warren.usui@inktank.com>
teuthology/misc.py
teuthology/orchestra/remote.py
teuthology/task/kernel.py