return searchval == val
- def sh(command, log_limit=1024):
+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, 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