Commit Graph

15 Commits

Author SHA1 Message Date
Zack Cerza
158f9ba1ff Revert "Lines formerly of the form '(remote,) = ctx.cluster.only(role).remotes.keys()'"
This reverts commit d693b3f895.
2014-03-27 11:35:28 -05:00
Warren Usui
d693b3f895 Lines formerly of the form '(remote,) = ctx.cluster.only(role).remotes.keys()'
and '(remote,) = ctx.cluster.only(role).remotes.iterkeys()' would fail with
ValueError and no message if there were less than 0 or more than 1 key.
Now a new function, get_single_remote_value() is called which prints out
more understandable messages.

Fixes: 7510
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-03-26 18:43:48 -07:00
Warren Usui
a1d8225b7d Added docstrings, and improved some of the comments on several tasks. 2013-10-12 01:35:34 -07:00
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