]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephadm: allow forcing an exact cephadm download url 57080/head
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 25 Apr 2024 14:10:33 +0000 (10:10 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 30 Apr 2024 19:48:54 +0000 (15:48 -0400)
Add an option to skip getting a url from shaman/chacra and just
provide a specific download location.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
qa/tasks/cephadm.py

index 8df3e01af53a6a25682993c35df33ce7fc5933ec..75402752b3da7ad0d5996be6cacc029f66d57868 100644 (file)
@@ -208,7 +208,10 @@ def normalize_hostnames(ctx):
 def download_cephadm(ctx, config, ref):
     cluster_name = config['cluster']
 
-    if config.get('cephadm_mode') != 'cephadm-package':
+    if 'cephadm_binary_url' in config:
+        url = config['cephadm_binary_url']
+        _download_cephadm(ctx, url)
+    elif config.get('cephadm_mode') != 'cephadm-package':
         if ctx.config.get('redhat'):
             _fetch_cephadm_from_rpm(ctx)
         # TODO: come up with a sensible way to detect if we need an "old, uncompiled"