From: Zack Cerza Date: Mon, 16 Jan 2017 23:16:41 +0000 (-0700) Subject: worker: Create job archive directories X-Git-Tag: 1.1.0~474^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d59c72210c5bf0ee871fceccafb6d082e674bc58;p=teuthology.git worker: Create job archive directories ... not just run archive directories. This is to resolve a race condition between the job creating its archive directory and the worker symlinking its log into that directory. Signed-off-by: Zack Cerza --- diff --git a/teuthology/worker.py b/teuthology/worker.py index e5e3efc812..7593963e98 100644 --- a/teuthology/worker.py +++ b/teuthology/worker.py @@ -227,7 +227,7 @@ def run_job(job_config, teuth_bin_path, archive_dir, verbose): return log.info('Creating archive dir %s', job_config['archive_path']) - safepath.makedirs(archive_dir, safe_archive) + safepath.makedirs('/', job_config['archive_path']) log.info('Running job %s', job_config['job_id']) suite_path = job_config['suite_path']