]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
task/restart: Restart task for testing daemon kill
authorSam Lang <sam.lang@inktank.com>
Mon, 11 Mar 2013 18:22:10 +0000 (13:22 -0500)
committerSam Lang <sam.lang@inktank.com>
Mon, 18 Mar 2013 16:16:01 +0000 (11:16 -0500)
commit6fe1deadbf1baa7dbb7e75986019bf898466437b
tree6c300d5a417526e44138c6e7ad063978f9fd8e30
parent9e81ff58e599fc4035abaced7cb44693de333c5c
task/restart: Restart task for testing daemon kill

The ceph daemons support being killed at a specific code point
with a config option.  In some cases, we want to test a kill point
only once for a given daemon run (such as replay that only occurs
during daemon startup).  This task allows running a script or executable
and (when the script sends a command to the task) restarting it with
a temporary config that has the appropriate kill point set.  Once
the daemon asserts and gets restarted, the original config is used.

Adds a specific restart_with_args() method to the DaemonState in the
ceph task.

Right now this task follows the workunit task closely, but uses stdout/stdin
to specify when to restart a daemon.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
teuthology/orchestra/run.py
teuthology/task/ceph.py
teuthology/task/restart.py [new file with mode: 0644]