From: Sage Weil Date: Fri, 29 Jan 2021 20:03:43 +0000 (-0600) Subject: qa/tasks/cephadm: allow custom git_url for cephadm_branch pull X-Git-Tag: v16.2.0~214^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F39181%2Fhead;p=ceph.git qa/tasks/cephadm: allow custom git_url for cephadm_branch pull Normally the git_url is git://git.ceph.com/ceph-ci.git, which mirrors upstream ceph-ci.git. However, the release branches aren't present there. Allow a custom git_url so we can pull these from the main ceph.git. Signed-off-by: Sage Weil (cherry picked from commit 5842058d128d48495285242b46e41eba18916084) # Conflicts: # qa/suites/upgrade/pacific-x/parallel/1-tasks.yaml --- diff --git a/qa/suites/rados/cephadm/upgrade/1-start.yaml b/qa/suites/rados/cephadm/upgrade/1-start.yaml index 4016c951d774..f2b44bbb9caa 100644 --- a/qa/suites/rados/cephadm/upgrade/1-start.yaml +++ b/qa/suites/rados/cephadm/upgrade/1-start.yaml @@ -2,5 +2,6 @@ tasks: - cephadm: image: docker.io/ceph/ceph:v15.2.0 cephadm_branch: v15.2.0 + cephadm_git_url: https://github.com/ceph/ceph # avoid --cap-add=PTRACE + --privileged for older cephadm versions allow_ptrace: false diff --git a/qa/suites/upgrade/octopus-x/parallel/1-tasks.yaml b/qa/suites/upgrade/octopus-x/parallel/1-tasks.yaml index c6b7b0894e8e..d5da286675da 100644 --- a/qa/suites/upgrade/octopus-x/parallel/1-tasks.yaml +++ b/qa/suites/upgrade/octopus-x/parallel/1-tasks.yaml @@ -6,6 +6,7 @@ tasks: - cephadm: image: docker.io/ceph/daemon-base:latest-octopus cephadm_branch: octopus + cephadm_git_url: https://github.com/ceph/ceph conf: osd: #set config option for which cls modules are allowed to be loaded / used diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index 08d177b2ac1e..22b4ed8e913c 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -99,7 +99,7 @@ def download_cephadm(ctx, config, ref): if config.get('cephadm_mode') != 'cephadm-package': ref = config.get('cephadm_branch', ref) - git_url = teuth_config.get_ceph_git_url() + git_url = config.get('cephadm_git_url', teuth_config.get_ceph_git_url()) log.info('Downloading cephadm (repo %s ref %s)...' % (git_url, ref)) if git_url.startswith('https://github.com/'): # git archive doesn't like https:// URLs, which we use with github.