Commit Graph

52 Commits

Author SHA1 Message Date
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
Zack Cerza
098389da82 Properly express conflicting options
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:35 -05:00
Zack Cerza
f34f3b3baf Move teuthology's arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:35 -05:00
Zack Cerza
45d1b0eb18 Move teuthology-coverage's arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
193b3112a3 Move teuthology-results' arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
7ab9726737 Move teuthology-report's arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
755ac2f129 Move teuthology-updatekeys' arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
84b2e55b93 Move schedule() to new schedule module 2013-10-10 19:09:34 -05:00
Zack Cerza
c784c79f1d Move teuthology-schedule's arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
974898597f Move teuthology-lock's arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
1bf3a3dadb Move teuthology-worker's arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
5fd1cd0bed Move teuthology-ls's arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
7805913e74 More PEP-8 cleanup
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
e847b1075a Move teuthology-suite's arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00