]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephadm.py: fix pulling cephadm from git.ceph.com 49915/head
authorAdam King <adking@redhat.com>
Mon, 12 Dec 2022 13:58:39 +0000 (08:58 -0500)
committerAdam King <adking@redhat.com>
Mon, 30 Jan 2023 22:14:10 +0000 (17:14 -0500)
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 <adking@redhat.com>
(cherry picked from commit 8086a6f3a610a4303ede35fed4723819d7d7ddf4)

Conflicts:
qa/tasks/cephadm.py

qa/tasks/cephadm.py

index 8bd7f220c82f1b8064d1cad32575554aff50c134..07105c53d863f4847b7e49ed30ff8c4184b9b8d7 100644 (file)
@@ -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