From: Jason Dillaman Date: Mon, 22 Oct 2018 14:44:40 +0000 (-0400) Subject: qa/tasks/qemu: use unique clone directory to avoid race with workunit X-Git-Tag: v14.1.0~1126^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F24696%2Fhead;p=ceph.git qa/tasks/qemu: use unique clone directory to avoid race with workunit 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 --- diff --git a/qa/tasks/qemu.py b/qa/tasks/qemu.py index ccb41a6dfba..548110edf0e 100644 --- a/qa/tasks/qemu.py +++ b/qa/tasks/qemu.py @@ -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), ], )