From 7f2466ea8c432b055240037f7ffabc3460833c9a Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Thu, 25 Apr 2024 10:10:33 -0400 Subject: [PATCH] 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 (cherry picked from commit 36700e8b9cfb813906b27fe3a48255ec6001b1e3) --- qa/tasks/cephadm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index 761686c93a1..67384b12d3a 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" -- 2.47.3