]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
14 years agoUnit test that connection.connect actually calls create_key.
Tommi Virtanen [Fri, 15 Jul 2011 19:45:18 +0000 (12:45 -0700)]
Unit test that connection.connect actually calls create_key.

14 years agoOptionally override system host keys.
Josh Durgin [Fri, 15 Jul 2011 19:08:59 +0000 (12:08 -0700)]
Optionally override system host keys.

14 years agoGevent 0.14 switches to libev, avoid it for now.
Tommi Virtanen [Wed, 8 Jun 2011 20:20:44 +0000 (13:20 -0700)]
Gevent 0.14 switches to libev, avoid it for now.

This was in requirements.txt earlier, but using this library
from elsewhere does not respect that, only setup.py.

14 years agoSupport PIPE for stdout and stderr, too.
Tommi Virtanen [Mon, 6 Jun 2011 23:47:55 +0000 (16:47 -0700)]
Support PIPE for stdout and stderr, too.

14 years agoAdd orchestra.cluster, for running commands on multiple hosts.
Tommi Virtanen [Mon, 6 Jun 2011 22:12:13 +0000 (15:12 -0700)]
Add orchestra.cluster, for running commands on multiple hosts.

14 years agoRecord Remote in RemoteProcess.remote, for caller convenience.
Tommi Virtanen [Fri, 3 Jun 2011 21:44:29 +0000 (14:44 -0700)]
Record Remote in RemoteProcess.remote, for caller convenience.

14 years agoWrap Remote._runner in staticmethod() or it gets mistaken for a method.
Tommi Virtanen [Tue, 31 May 2011 21:59:10 +0000 (14:59 -0700)]
Wrap Remote._runner in staticmethod() or it gets mistaken for a method.

It used to get an extra self argument, and mistook that as client.

14 years agoAdd a pretty wrapper on top of Paramiko and run.run.
Tommi Virtanen [Tue, 31 May 2011 21:33:00 +0000 (14:33 -0700)]
Add a pretty wrapper on top of Paramiko and run.run.

Most importantly right now, it knows its name, and can
prettyprint it.

14 years agoRemove dead code.
Tommi Virtanen [Tue, 31 May 2011 21:31:53 +0000 (14:31 -0700)]
Remove dead code.

14 years agoLet callers specify that some arguments should not be quoted.
Tommi Virtanen [Tue, 24 May 2011 20:38:05 +0000 (13:38 -0700)]
Let callers specify that some arguments should not be quoted.

This lets you do things such as "test -e /foo && bar" or
"cd /tmp && blah". Remember that shell pipelines do not detect
errors in anything but the last command.

14 years agoSimple unit tests for shell quoting.
Tommi Virtanen [Tue, 24 May 2011 20:29:32 +0000 (13:29 -0700)]
Simple unit tests for shell quoting.

14 years agoRefactor to extract shell quoting into utility function.
Tommi Virtanen [Tue, 24 May 2011 20:27:39 +0000 (13:27 -0700)]
Refactor to extract shell quoting into utility function.

14 years agoDepend on Paramiko 1.7.7 or newer to be able to read modern OpenSSH keys.
Tommi Virtanen [Tue, 24 May 2011 20:16:47 +0000 (13:16 -0700)]
Depend on Paramiko 1.7.7 or newer to be able to read modern OpenSSH keys.

14 years agoPyflakes cleanup.
Tommi Virtanen [Tue, 24 May 2011 20:12:21 +0000 (13:12 -0700)]
Pyflakes cleanup.

14 years agoAdd a utility function run.wait to wait for processes to exit.
Tommi Virtanen [Tue, 24 May 2011 20:07:24 +0000 (13:07 -0700)]
Add a utility function run.wait to wait for processes to exit.

14 years agoParamiko ChannelFile.close() didn't actually close the remote stdin.
Tommi Virtanen [Tue, 24 May 2011 20:06:00 +0000 (13:06 -0700)]
Paramiko ChannelFile.close() didn't actually close the remote stdin.

Add a wrapper that does the calls shutdown on the channel itself,
to actually cause EOF. Add integration test using remote cat.

Move shuffling stdout bytes to background, so run.run returns before
seeing EOF on stdout, and thus actually making the stdin useful.
Similarly, don't wait for EOF on stderr before returning from run.run.

14 years agoLog debug info of commands actually executed.
Tommi Virtanen [Tue, 24 May 2011 20:01:46 +0000 (13:01 -0700)]
Log debug info of commands actually executed.

14 years agoCleanup dead code.
Tommi Virtanen [Tue, 24 May 2011 20:01:03 +0000 (13:01 -0700)]
Cleanup dead code.

14 years agoAllow easy writing to stdin of remote processes.
Tommi Virtanen [Tue, 24 May 2011 20:00:44 +0000 (13:00 -0700)]
Allow easy writing to stdin of remote processes.

14 years agoAdd run.run option wait, this will make handling stdin easier soon.
Tommi Virtanen [Thu, 19 May 2011 22:10:04 +0000 (15:10 -0700)]
Add run.run option wait, this will make handling stdin easier soon.

14 years agoReturn a structured result from run.run, to make capturing stdout/stderr easier.
Tommi Virtanen [Thu, 19 May 2011 20:47:09 +0000 (13:47 -0700)]
Return a structured result from run.run, to make capturing stdout/stderr easier.

14 years agoAdd integration tests for signals and connection loss.
Tommi Virtanen [Thu, 19 May 2011 20:27:32 +0000 (13:27 -0700)]
Add integration tests for signals and connection loss.

14 years agoCheck for errors on remote commands.
Tommi Virtanen [Thu, 19 May 2011 20:05:14 +0000 (13:05 -0700)]
Check for errors on remote commands.

14 years agoAdd setup.py, install in devel mode into virtualenv.
Tommi Virtanen [Thu, 19 May 2011 19:17:28 +0000 (12:17 -0700)]
Add setup.py, install in devel mode into virtualenv.

14 years agoDon't close file after copying stdout/stderr to it.
Tommi Virtanen [Thu, 19 May 2011 19:16:43 +0000 (12:16 -0700)]
Don't close file after copying stdout/stderr to it.

If a caller uses StringIO to capture the output, they
cannot call .getvalue() after the close.

This also lets you collect multiple command outputs
into the same file.

14 years agoRefactor remote running to support more use cases.
Tommi Virtanen [Thu, 19 May 2011 17:20:32 +0000 (10:20 -0700)]
Refactor remote running to support more use cases.

14 years agoAdd debug logging to monkeypatching.
Tommi Virtanen [Thu, 19 May 2011 17:19:16 +0000 (10:19 -0700)]
Add debug logging to monkeypatching.

14 years agoSilence paramiko transport logging.
Tommi Virtanen [Thu, 19 May 2011 17:18:57 +0000 (10:18 -0700)]
Silence paramiko transport logging.

14 years agoSilence a Paramiko crypto deprecation.
Tommi Virtanen [Thu, 19 May 2011 17:17:51 +0000 (10:17 -0700)]
Silence a Paramiko crypto deprecation.

14 years agoMake monkeypatching respect order.
Tommi Virtanen [Thu, 19 May 2011 17:17:03 +0000 (10:17 -0700)]
Make monkeypatching respect order.

14 years agoInitial import
Tommi Virtanen [Wed, 18 May 2011 21:46:49 +0000 (14:46 -0700)]
Initial import