Use nodepool CentOS mirrors for deps repo

DLRN deps repo contains centos mirrors url which is not in our
control got timeout in the jobs.

TripleO repos does not update those dlrn deps repo centos mirror
url, It adds the tasks to do the same and also removes stale
fedora repo, since fedora is longer used in CI.

Closes-Bug: #1922032

Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Change-Id: If1d5b8d2e0fec40c39662e52e4d0d9fc3f650d0a
This commit is contained in:
Chandan Kumar (raukadah) 2021-03-31 15:03:10 +05:30
parent d492451c13
commit c27ef835a0

View File

@ -100,6 +100,11 @@
if [ ! -z "$DISTRO_MIRROR_HOST" ]; then
MIRROR="--mirror $DISTRO_MIRROR_HOST"
# Workaround for setting nodepool centos mirror for delorean-deps
# check launchpad tripleo/+bug/1922032
else
MIRROR="--mirror http://mirror.regionone.vexxhost.rdoproject.org/centos"
fi
if [ "{{ is_stream_node|string }}" == "True" ]; then
@ -119,16 +124,6 @@
args:
warn: false
# TODO(rfolco): normalize centos/fedora repo names, fedora sets delorean.repo and fedora-stable.repo,
# while centos sets delorean.repo and delorean-master-testing.repo.
- name: rename fedora-stable.repo
become: true
shell: |
set -ex
# Rename fedora-stable.repo as kola.conf.j2 template expects delorean*
mv /etc/yum.repos.d/fedora-stable.repo /etc/yum.repos.d/delorean-{{ ci_branch | default('master') }}-testing.repo
when: ansible_distribution|lower == "fedora"
- name: Update all installed packages after new repos are setup # noqa package-latest
become: true
package: