]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/tasks/qemu: use unique clone directory to avoid race with workunit
authorJason Dillaman <dillaman@redhat.com>
Mon, 22 Oct 2018 14:44:40 +0000 (10:44 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 22 Oct 2018 14:44:40 +0000 (10:44 -0400)
If there is a workunit task associated with the same client, the two
tasks will attempt to clone the suite repo to the same directory.
Worse, if it's parallel tasks, the two clones will clobber each
other.

Fixes: http://tracker.ceph.com/issues/36542
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
qa/tasks/qemu.py

index ccb41a6dfba2e813b1f005d6c52d7b0eefa0198c..548110edf0e02e4242696a3e4c5927cb1d458f9a 100644 (file)
@@ -115,7 +115,7 @@ def generate_iso(ctx, config):
 
         (remote,) = ctx.cluster.only(client).remotes.keys()
 
-        clone_dir = '{tdir}/clone.{role}'.format(tdir=testdir, role=client)
+        clone_dir = '{tdir}/qemu_clone.{role}'.format(tdir=testdir, role=client)
         remote.run(args=refspec.clone(git_url, clone_dir))
 
         src_dir = os.path.dirname(__file__)
@@ -212,7 +212,7 @@ def generate_iso(ctx, config):
                     os.path.join(testdir, 'qemu', 'userdata.' + client),
                     os.path.join(testdir, 'qemu', 'metadata.' + client),
                     '{tdir}/qemu/{client}.test.sh'.format(tdir=testdir, client=client),
-                    '{tdir}/clone.{client}'.format(tdir=testdir, client=client),
+                    '{tdir}/qemu_clone.{client}'.format(tdir=testdir, client=client),
                     ],
                 )