Commit Graph

12 Commits

Author SHA1 Message Date
Sage Weil
b4d2234376 exec/pexec: substitute $TESTDIR into command
It might be better to make this unescaped, but that's trickier.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-09 18:07:06 -08:00
Sage Weil
d7337364a3 exec, pexec: set TESTDIR
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-25 15:12:56 -06:00
Sage Weil
ed82d87566 fix a few archive/log stragglers
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 13:39:06 -08:00
Sam Lang
ace4cb07b2 Replace /tmp/cephtest/ with configurable path
Teuthology uses /tmp/cephtest/ as the scratch test directory for
a run.  This patch replaces /tmp/cephtest/ everywhere with a
per-run directory: {basedir}/{rundir} where {basedir} is a directory
configured in .teuthology.yaml (/tmp/cephtest if not specified),
and {rundir} is the name of the run, as given in --name.  If no name
is specified, {user}-{timestamp} is used.

To get the old behavior (/tmp/cephtest), set test_path: /tmp/cephtest
in .teuthology.yaml.

This change was modivated by #3782, which requires a test dir that
survives across reboots, but also resolves #3767.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-01-31 08:23:31 -06:00
Sam Lang
14730276b9 Fixes for syntax errors found by pyflakes.
This patch includes minor fixes to the teuthology
python code for syntax errors found by running
check-syntax.sh (which runs pyflakes on each file).

Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-01-31 07:58:57 -06:00
Sam Lang
4ed20ae8fe task/pexec: Add barrier capability
This patch adds the ability to barrier between
parallel exec tasks so that all tasks will perform
the following step (after the barrier) at the same
time.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2013-01-08 09:32:08 -06:00
Sam Lang
3532008310 task/pexec: More fixes for all case, exec on hosts
We don't want to do an exec per role, but per-host.  We
were already doing an exec per host, but the names were confusing.
This fixes the names up and removes the role parameters.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2013-01-08 09:31:48 -06:00
Sam Lang
081a80f89c task/pexec: Fix when 'all' is used
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2013-01-08 09:29:34 -06:00
Joe Buck
b916f67982 pexec.py: Parse out role ID from the back.
Also, do not assume that the command needs to run from a specific directory.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
2012-12-11 14:07:28 -08:00
Sam Lang
df3b1b89b1 task/pexec: Output stderr to teuthology log
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-11-20 09:53:52 -06:00
Sam Lang
cfa2883d47 pexec: Logging each command isn't useful
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-11-14 10:45:10 -06:00
Sam Lang
25964046d2 Add task pexec to run bash commands in parallel
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-11-14 10:12:36 -06:00