Enable testing Ceph master
This changeset adds a config option (TEST_MASTER) to toggle testing with the current Ceph master. The builds are retrieved from Shaman, which is the platform used by the Ceph community to submit their latest builds. The main goal of this change is to use this on our CI and be able to catch bugs in OpenStack services that use Ceph as a backend more quickly. Because of this, the required non-voting job is also added. Change-Id: Ibe26f89e7be3061cdb7acb441727efb2c396e29e
This commit is contained in:
Victoria Martinez de la Cruz
committed by
Giulio Fidente
parent
c6de661939
commit
c5545a3db5
2 changed files with 29 additions and 3 deletions
@@ -26,6 +26,8 @@ set +o xtrace
# Defaults
# --------
TEST_MASTER=$(trueorfalse False TEST_MASTER)
CEPH_RELEASE=${CEPH_RELEASE:-octopus}
GANESHA_RELEASE=${GANESHA_RELEASE:-V3.3-stable}
@@ -969,11 +971,22 @@ function configure_repo_ceph {
local distro_release="3ドル"
if is_ubuntu; then
wget -q -O- 'https://download.ceph.com/keys/release.asc' | sudo apt-key add -
sudo apt-add-repository -y "deb https://download.ceph.com/debian-${ceph_release}/ ${distro_release} main"
if [[ "${TEST_MASTER}" == "True" ]]; then
repo_file_name="/etc/apt/sources.list.d/ceph-master.list"
sudo wget -c "https://shaman.ceph.com/api/repos/ceph/master/latest/ubuntu/${distro_release}/flavors/default/repo" -O ${repo_file_name}
else
wget -q -O- 'https://download.ceph.com/keys/release.asc' | sudo apt-key add -
sudo apt-add-repository -y "deb https://download.ceph.com/debian-${ceph_release}/ ${distro_release} main"
fi
sudo ${package_manager} -y update
elif is_fedora; then
dnf_add_repository_ceph ${ceph_release} ${distro_release}
if [[ "${TEST_MASTER}" == "True" ]]; then
repo_file_name="/etc/yum.repos.d/ceph-master.repo"
sudo wget -c "https://shaman.ceph.com/api/repos/ceph/master/latest/centos/${distro_release}/flavors/default/repo" -O ${repo_file_name}
sudo dnf config-manager --add-repo ${repo_file_name}
else
dnf_add_repository_ceph ${ceph_release} ${distro_release}
fi
fi
}
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.