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.0.1~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=484dc1208921d7207c69edeb4b5f61594d93e61b;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 (cherry picked from commit 5d56014c61b107dcb5d05c2221c2e844324f304c) --- diff --git a/qa/tasks/qemu.py b/qa/tasks/qemu.py index ccb41a6dfba2..548110edf0e0 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), ], )