Commit Graph

65 Commits

Author SHA1 Message Date
Zack Cerza
5d192ed46c Make the archive dir a positional argument
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-07-07 14:12:38 -06:00
Zack Cerza
0fa0e2ecb4 Merge pull request #279 from ceph/wip-ls
ls: make --archive-dir default to .
2014-07-07 14:02:46 -06:00
Sage Weil
4d7c09ee46 suite: default to 9h results_timeout
6h isn't enough for xfstests.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-07-07 11:20:39 -07:00
Zack Cerza
dbadcd0d56 Allow setting results_email in teuthology.yaml
(Instead of passing --email to teuthology-suite)

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-07-02 18:39:47 -06:00
Sage Weil
1d12dd771a ls: make --archive-dir default to .
This is how I use it 99% of the time.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-07-01 15:39:57 -07:00
Zack Cerza
ec95ee25c3 Rename suite_base to suite_dir
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-07-01 12:21:45 -06:00
Zack Cerza
434348aa49 Add --suite-branch and --suite-base
The former lets you specify a specific ceph-qa-suite branch to use for
testing. The latter lets you specify an as-is directory to use, for
example if you want ro run tests that you don't want to commit yet.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-07-01 11:45:10 -06:00
Zack Cerza
88d26e4ae4 Handle ceph-qa-suite checkouts
Previously we had an internally-maintained shell script that did this.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-06-27 10:14:06 -06:00
Loic Dachary
09baca9f33 document how to specify a facet in teuthology-suite
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-06-27 18:04:05 +02:00
Zack Cerza
356ab7e06d Do everything that schedule_suite.sh does
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-06-25 12:54:23 -06:00
Zack Cerza
3b69efa2af Organize arguments into logical sections
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-06-25 12:54:22 -06:00
Zack Cerza
b790c4dad4 Tweak usage formatting
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-06-25 12:54:22 -06:00
Zack Cerza
675f087b28 Take machine_type instead of worker
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-06-25 12:54:22 -06:00
Zack Cerza
43505b2ace Only allow scheduling one suite per call.
Also remove all traces of the extra and confusing term 'collection'

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-06-25 12:54:22 -06:00
Zack Cerza
f5af797ce3 Port to docopt
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-06-25 12:54:22 -06:00
Zack Cerza
5cd50a42be Allow killing jobs by passing a 'jobspec'.
See teuthology-kill --help

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-06-20 11:39:47 -04:00
Zack Cerza
ec422a94fc Make conf_file optional
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-06-16 10:19:54 -06:00
Zack Cerza
09d3f9167e Add [--] to usage statement
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-06-12 13:23:19 -05:00
Zack Cerza
78dbc36931 Refactor teuthology.schedule...
... to separate the assembling of the job config from the scheduling of
the job. Also port its argument parsing to docopt.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-06-09 18:31:01 -05:00
Zack Cerza
78610b03e3 Remote 'delete' and 'show' features
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-06-09 18:31:01 -05:00
Zack Cerza
2a7de82498 Move teuthology-ls's implementation to ls.py
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-06-06 16:15:15 -05:00
Zack Cerza
549b52b3b3 Update --help output
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-06-04 12:42:43 -05:00
Zack Cerza
041666b07a Add --runs, to print only run names
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-04-30 14:30:43 -05:00
Zack Cerza
8a4de411a6 Rename teuthology.queue to teuthology.worker
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-04-17 12:27:41 -05:00
Sage Weil
67844e0ef3 suite: allow priority to be specified when scheduling
Signed-off-by: Sage Weil <sage@inktank.com>
2014-03-26 10:09:12 -07:00
Zack Cerza
03974bf583 Add --description flag
Default to not printing job descriptions. Add -d/--description flag to
control that behavior. Change --delete's short option to -D. Other small
output tweaks.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-03-25 15:38:34 -05:00
Zack Cerza
a6658fd892 s/JOB/PATTERN/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-03-25 15:31:07 -05:00
Zack Cerza
cfe4c8be81 Tweak usage
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-03-25 15:29:56 -05:00
Zack Cerza
4bedc5488f Correct help text
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-03-25 15:28:56 -05:00
Zack Cerza
70ab6e0315 Add --preserve-queue to teuthology-kill
For any cases where we just want to kill the running jobs and not delete
any scheduled jobs. This only applies to killing entire runs and is not
the default.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-03-25 10:18:33 -05:00
Dan Mick
69ed31cc34 lock.py: allow --brief to stand on its own (without --list)
I use --brief all the time, and it's annoying to have to type
the useless --list at the same time.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2014-03-10 19:38:46 -07:00
Yuri Weinstein
bd9748d562 Added --limit option to teuthology-suite.
Use --limit to limit the number of jobs being scheduled during
teuthology-suite. Also can be used with schedule_suite.sh via the
10th argument.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
2014-02-28 00:34:58 +00:00
Zack Cerza
0dcf3f4d71 --dead implies --refresh
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-26 16:41:43 -06:00
Sandon Van Ness
26f00fc541 Make help a bit more obvious. Misc tweeks.
Put each yaml in the job_description on its own line so not so
wide of a line. Make delete default None not False in function.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2014-02-25 19:57:41 -08:00
Sandon Van Ness
e04f8fd3cd Add teuthology-queue command for beanstalk Managmeent.
Supports listing entire queue of machine type and deleting test
suite runs from the queue without wiping the entire queue.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2014-02-25 11:13:31 -08:00
Zack Cerza
7759473e3e Enable killing runs that haven't even started yet
This requires passing --machine-type.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-05 13:43:34 -06:00
Zack Cerza
5c0496633c Enable reporting of entire runs as dead 2014-01-06 11:08:12 -06:00
Zack Cerza
f8ce69cb9b Add ability to mark jobs as 'dead'
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-12-20 10:01:03 -06:00
Zack Cerza
e312048ade Allow passing multiple job_ids
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-12-19 16:43:11 -06:00
Zack Cerza
220779c8c4 Implement single-job killing
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-12-19 16:32:41 -06:00
Zack Cerza
eeeb6267f9 For teuthology-kill, s/suite/run/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-12-19 16:32:41 -06:00
Zack Cerza
7f135ec94a Enable reporting of single jobs
(also switch to docopt)

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-12-12 17:00:43 -06:00
Zack Cerza
5ea5018dbe Make -a optional
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-12-09 16:42:15 -06:00
Warren Usui
94f7dd1f3a Implement --downburst-conf parameter for teuthology-lock.
Load the appropriate yaml information when found (this formerly
did not work).  Make sure teuthology --lock works with a downburst
entry in the yaml files.  Document how this works in README.rst.

Fixes: #6921
Reviewed-by: Dan Mick
2013-12-04 17:31:55 -08:00
Sandon Van Ness
d4a632df5f Support --os-version as argument.
You can use --os-type as an argument when not running teuthology
tests but instead just using teuthology-lock. This adds the ability
to also use --os-version so you can specify the version of the
distro without having to run an actual test with a yaml like you
normally would have had to do setting os_version in the yaml.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2013-10-25 17:48:50 -07:00
Zack Cerza
40e5d1eee0 Add teuthology-kill
Currently implements killing suites-runs.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-16 16:19:15 -05:00
Zack Cerza
7d99de72bd Give reporting a verbose flag
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-11 16:24:54 -05:00
Zack Cerza
bb93b1a3f0 Exempt teuthology-updatekeys from test_invalid
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-11 13:28:21 -05:00
Zack Cerza
f5729051ab Fix a circular import
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-11 12:48:55 -05:00
Zack Cerza
cbe7d8e5a1 Add basic tests for scripts
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:35 -05:00