From d59c72210c5bf0ee871fceccafb6d082e674bc58 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 16 Jan 2017 16:16:41 -0700 Subject: [PATCH] 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 --- teuthology/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] -- 2.39.5