Commit Graph

79 Commits

Author SHA1 Message Date
Zack Cerza
479b224931 Exit with code already returned by lock.main()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-26 10:39:33 -06:00
Sage Weil
8707efeb2a suite: scheule in mira,burnupi,plana by deafult
(was plana)

Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-25 12:25:48 -07:00
Sage Weil
82b8f3037c teuthology-queue: list multi queue by default
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-25 12:25:37 -07:00
Zack Cerza
8dbb1d5fb9 Add --suite-path
Slightly less ugly than setting PYTHONPATH

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-21 16:11:19 -06:00
Warren Usui
8346ac4363 Add filter and filter-off suite options.
Filter only runs suite jobs that contain the text passed as part of
their description or in the names of the composite set of yaml files.
Filter-off only runs suite jobs that do not contain the text passed
as either their description or in the names of the composite set of
yaml files.
Fixes: 8954
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-08-18 20:55:01 -07:00
Zack Cerza
5f82596c98 Make --name required
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-14 10:20:27 -06:00
Zack Cerza
293c2bd49c Be more informative if owner info is missing
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-11 14:55:49 -06:00
Zack Cerza
28535846d0 Default to using the master branch of teuthology
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-07 12:11:13 -06:00
Alfredo Deza
fe6f46114a create a --version flag for teuthology
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-08-04 15:12:06 -04:00
Zack Cerza
0d1fe79b70 Tweak usage statement
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-04 11:50:22 -06:00
Zack Cerza
c68b5fc9dd Add a flag to dump the entire job body.
... with a warning.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-07-11 14:55:09 -06:00
Zack Cerza
dcd22a532f Add a --dry-run flag to teuthology-schedule
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-07-11 14:18:03 -06:00
Zack Cerza
c105827d5e Store the suite_branch in the job config
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-07-10 16:35:36 -06:00
Zack Cerza
1d48f66add Don't use master as the default teuthology branch
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-07-10 12:06:55 -06:00
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