From: John Mulligan Date: Thu, 25 Apr 2024 14:10:33 +0000 (-0400) Subject: qa/tasks/cephadm: allow forcing an exact cephadm download url X-Git-Tag: v20.0.0~1973^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=36700e8b9cfb813906b27fe3a48255ec6001b1e3;p=ceph.git qa/tasks/cephadm: allow forcing an exact cephadm download url Add an option to skip getting a url from shaman/chacra and just provide a specific download location. Signed-off-by: John Mulligan --- diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index 8df3e01af53a..75402752b3da 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -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"