2013-10-16 19:31:26 +00:00
|
|
|
import docopt
|
|
|
|
|
2013-12-09 22:40:27 +00:00
|
|
|
import teuthology.config
|
2013-10-16 19:31:26 +00:00
|
|
|
import teuthology.kill
|
|
|
|
|
|
|
|
doc = """
|
2013-12-19 21:39:15 +00:00
|
|
|
usage: teuthology-kill [-h] [-a ARCHIVE] -r RUN
|
2013-12-19 22:12:56 +00:00
|
|
|
teuthology-kill [-h] [-a ARCHIVE] -r RUN -j JOB
|
2013-12-19 21:39:15 +00:00
|
|
|
teuthology-kill [-h] -o OWNER -m MACHINE_TYPE -r RUN
|
2013-10-16 19:31:26 +00:00
|
|
|
|
|
|
|
Kill running teuthology jobs:
|
|
|
|
1. Removes any queued jobs from the beanstalk queue
|
|
|
|
2. Kills any running jobs
|
|
|
|
3. Nukes any machines involved
|
|
|
|
|
|
|
|
optional arguments:
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
-a ARCHIVE, --archive ARCHIVE
|
|
|
|
The base archive directory
|
2013-12-09 22:40:27 +00:00
|
|
|
[default: {archive_base}]
|
2013-12-19 22:12:56 +00:00
|
|
|
-r, --run RUN The name(s) of the run(s) to kill
|
|
|
|
-j, --job JOB The job_id of the job to kill
|
2013-10-16 19:31:26 +00:00
|
|
|
-o, --owner OWNER The owner of the job(s)
|
|
|
|
-m, --machine_type MACHINE_TYPE
|
|
|
|
The type of machine the job(s) are running on
|
2013-12-09 22:40:27 +00:00
|
|
|
""".format(archive_base=teuthology.config.config.archive_base)
|
2013-10-16 19:31:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
args = docopt.docopt(doc)
|
|
|
|
teuthology.kill.main(args)
|