]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
config: add ceph_git_url and ceph_qa_suite_git_url 641/head
authorLoic Dachary <ldachary@redhat.com>
Fri, 25 Sep 2015 10:39:24 +0000 (12:39 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 6 Oct 2015 22:41:16 +0000 (00:41 +0200)
commit2591f43f5f42a46fab5fd5c9c0080aba3925e869
tree34f133a0ca8b67dc3688f4a4403f8ff6ee82e769
parentb294b2b5afe3ccda64fa9b6013202c757811d145
config: add ceph_git_url and ceph_qa_suite_git_url

The ~/.teuthology.yaml ceph_git_base_url configuration does not allow to
modify the URL of the Ceph repository without also modifying the URL of
the teuthology repository. Although it is frequently needed to point to
an alternate ceph or ceph-qa-suite repository, it is rarely necessary to
point to an alternate teuthology repository.

This is not a blocker: it is enough to mirror the teuthology,
ceph-cm-ansible, ceph-deploy and maybe a few other repositories to
satisfy this requirement. This is however inconvenient because the
exact list of repositories that need to be mirrored is not easily
accessible. In addition, unless the user is careful about updating the
mirrors prior to running teuthology, there is a good chance that an
obsolete version of the repository will be used and this may lead to
problems difficult to diagnose.

The git_ceph_url and git_ceph_qa_suite_url configuration variables are
added to specify the URL of the ceph and ceph-qa-suite repositories
without modifying the git_ceph_base_url value so that all other
repositories retain their default location.

For easier consumption within teuthology and ceph-qa-suite, the
get_git_ceph_url() and get_git_ceph_qa_suite_url() accessors are added
to the config class. They use the user provided value, if available, and
otherwise fallback to constructing the URL with git_ceph_base_url which
is the legacy behavior.

http://tracker.ceph.com/issues/11883 Fixes: #11883

Signed-off-by: Loic Dachary <loic@dachary.org>
docs/siteconfig.rst
teuthology/config.py
teuthology/repo_utils.py