From e995d5e151f3f00255029cdfffcc6f157efc622e Mon Sep 17 00:00:00 2001 From: Adam King Date: Mon, 12 Dec 2022 08:58:39 -0500 Subject: [PATCH] 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 --- qa/tasks/cephadm.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 -- 2.39.5