]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
worker: Create job archive directories
authorZack Cerza <zack@redhat.com>
Mon, 16 Jan 2017 23:16:41 +0000 (16:16 -0700)
committerZack Cerza <zack@redhat.com>
Mon, 16 Jan 2017 23:16:41 +0000 (16:16 -0700)
... 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 <zack@redhat.com>
teuthology/worker.py

index e5e3efc81248995d6e0a3ccbc096142aaa73e9a3..7593963e986fec770fdde31ac9567010dc68ad20 100644 (file)
@@ -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']