From: Adam King Date: Mon, 12 Dec 2022 13:58:39 +0000 (-0500) Subject: qa/tasks/cephadm.py: fix pulling cephadm from git.ceph.com X-Git-Tag: v16.2.12~3^2~130^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e995d5e151f3f00255029cdfffcc6f157efc622e;p=ceph.git qa/tasks/cephadm.py: fix pulling cephadm from git.ceph.com The old way of using the git archive doesn't seem to work anymore so trying another approach Was getting "fatal: operation not supported by protocol" when trying the git archive Fixes: https://tracker.ceph.com/issues/58222 Signed-off-by: Adam King (cherry picked from commit 8086a6f3a610a4303ede35fed4723819d7d7ddf4) Conflicts: qa/tasks/cephadm.py --- diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index 8bd7f220c82f1..07105c53d863f 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -141,14 +141,15 @@ def download_cephadm(ctx, config, ref): else: ctx.cluster.run( args=[ - 'git', 'archive', - '--remote=' + git_url, - ref, - 'src/cephadm/cephadm', - run.Raw('|'), - 'tar', '-xO', 'src/cephadm/cephadm', + 'git', 'clone', git_url, 'testrepo', + run.Raw('&&'), + 'cd', 'testrepo', + run.Raw('&&'), + 'git', 'show', f'{ref}:src/cephadm/cephadm', run.Raw('>'), ctx.cephadm, + run.Raw('&&'), + 'ls', '-l', ctx.cephadm, ], ) # sanity-check the resulting file and set executable bit