Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
usage: teuthology-kill -h
teuthology-kill [-a ARCHIVE] [-p] -r RUN
teuthology-kill [-a ARCHIVE] [-p] -m MACHINE_TYPE -r RUN
- teuthology-kill [-a ARCHIVE] -r RUN -j JOB ...
- teuthology-kill [-a ARCHIVE] -J JOBSPEC
+ teuthology-kill [-a ARCHIVE] [-o OWNER] -r RUN -j JOB ...
+ teuthology-kill [-a ARCHIVE] [-o OWNER] -J JOBSPEC
teuthology-kill [-p] -o OWNER -m MACHINE_TYPE -r RUN
Kill running teuthology jobs:
machine_type=None):
serializer = report.ResultsSerializer(archive_base)
job_info = serializer.job_info(run_name, job_id)
+ if not owner and 'owner' not in job_info:
+ raise RuntimeError(
+ "I could not figure out the owner of the requested job. "
+ "Please pass --owner <owner>.")
owner = job_info['owner']
kill_processes(run_name, [job_info.get('pid')])
targets = dict(targets=job_info.get('targets', {}))