Use path/config.yaml for targets, path/pid for pid to kill, and
path/owner for job owner.
type=config_file,
action=MergeConfig,
default={},
- required=True,
dest='config',
help='yaml config containing machines to nuke',
)
parser.add_argument(
- '--archive',
+ '-a', '--archive',
metavar='DIR',
- help='path to archive results in',
+ help='archive path for a job to kill and nuke',
)
parser.add_argument(
'--owner',
def main():
from gevent import monkey; monkey.patch_all()
from .orchestra import monkey; monkey.patch_all()
+ from teuthology.run import config_file
import logging
level=loglevel,
)
+ if ctx.archive:
+ ctx.config = config_file(ctx.archive + '/config.yaml')
+ if not ctx.pid:
+ ctx.pid = int open(ctx.archive + '/pid').read().rstrip('\n')
+ if not ctx.owner:
+ ctx.owner = open(ctx.archive + '/owner').read().rstrip('\n')
+
from teuthology.misc import read_config
read_config(ctx)