shaman: use 'ready' repo instead of any

We seem to have been requesting the latest build from the Shaman API
provided by Ceph however we did not filter the status to be 'ready'
which meant that we sometimes got 'building' status repositories that
cause the jobs to fail.

This should stabilize jobs a lot more by using only the ready
repositories.

Change-Id: Iff47bbe4954da3ab582a007ba04b3df50ae21cd4
This commit is contained in:
Mohammed Naser 2020-08-19 16:14:26 -04:00
parent 62fab285e8
commit 6b409867bf
1 changed files with 1 additions and 1 deletions

View File

@ -902,7 +902,7 @@ function configure_repo_ceph {
fi
if [ -n "${repo_file_name}" ]; then
repo=$(curl -L "https://shaman.ceph.com/api/search/?project=ceph&distros=${distro_type}/${distro_release}&ref=${ceph_release}&sha1=${repo_type}" | \
repo=$(curl -L "https://shaman.ceph.com/api/search/?project=ceph&status=ready&distros=${distro_type}/${distro_release}&ref=${ceph_release}&sha1=${repo_type}" | \
jq '.[0] | .chacra_url' | tr -d '"' | awk '{print $1"repo"}')
curl -L $repo | sudo tee ${repo_file_name}
sudo ${package_manager} -y update