From: Sage Weil Date: Thu, 29 Aug 2013 18:46:38 +0000 (-0700) Subject: run: write info.yaml on job start X-Git-Tag: 1.1.0~1920^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f6430df250fb9e119e566a38c1ffa661d64021f5;p=teuthology.git run: write info.yaml on job start Include basic metadata bout the job. Signed-off-by: Sage Weil --- diff --git a/teuthology/run.py b/teuthology/run.py index 5ac0eaa7..f3e44aba 100644 --- a/teuthology/run.py +++ b/teuthology/run.py @@ -130,6 +130,14 @@ def main(): ctx.owner = get_user() write_initial_metadata(ctx) + if ctx.archive is not None: + info = {} + info['pid'] = os.getpid(); + info['description'] = ctx.description; + info['run'] = ctx.name; + info['owner'] = ctx.owner; + with file(os.path.join(ctx.archive, 'info.yaml'), 'w') as f: + yaml.safe_dump(info, f, default_flow_style=False) log.debug('test') raise RuntimeError('hi there')