From: rakeshgm Date: Thu, 14 Nov 2019 06:11:40 +0000 (+0530) Subject: Merge branch 'master' into rh_new X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=664f9504f1778192c8ebfb156d93b6bf21181a79;p=teuthology.git Merge branch 'master' into rh_new Signed-off-by: rakeshgm --- 664f9504f1778192c8ebfb156d93b6bf21181a79 diff --cc teuthology/misc.py index aac97ed6d1,1246d70401..c46d6f2d3e --- a/teuthology/misc.py +++ b/teuthology/misc.py @@@ -1304,22 -1289,7 +1304,22 @@@ def is_in_dict(searchkey, searchval, d) return searchval == val +def reimage_fog(args): + """ + Reimage FOG nodes with options specified + """ + machines = args['--nodes'] + nodes = machines.rstrip(',').split(',') + ctx = argparse.Namespace() + ctx.os_type = args['--os-type'] + ctx.os_version = args['--os-version'] + from teuthology.provision import reimage + with parallel() as p: + for node in nodes: + p.spawn(reimage, ctx, node) + + - def sh(command, log_limit=1024): + def sh(command, log_limit=1024, cwd=None, env=None): """ Run the shell command and return the output in ascii (stderr and stdout). If the command fails, raise an exception. The command