For CentOS we are currently using default values for "wheel_mirror" from
roles/configure-mirrors/defaults/main.yaml, which means that the URL
uses the full distribution version, which is wrong, we should be using
the major version instead.
As an example, centos-8 jobs are trying to use
https://mirror.bhs1.ovh.opendev.org/wheel/centos-8.3-x86_64
When they should be using
https://mirror.bhs1.ovh.opendev.org/wheel/centos-8-x86_64
Which makes some jobs fail to find alembic wheel files and then they
fail to build from source because the CI was expecting the wheel mirror
to have it.
This patch fixes this by creating a Centos specific "wheel_mirror"
variable.
Change-Id: I11199cf943a3070fd62bf486fe2b06381db4b04d
(cherry picked from commit c9cad38eebf1bdabb10b79699598d6ba0f098f54)
We should offer the option of https in addition to http in our
configure-mirrors role as users may want to consume mirrors using https.
This has become more viable in recent years with the releases of Debian
Buster and Ubuntu Bionic supporting it out of the box.
Change-Id: I747c1a379dfce9469e643d7fa199c8e8554f5289
debian-security has been mirrored by change[1], so we can use
it now.
[1] https://review.openstack.org/#/c/577316/
Change-Id: I2c88306564b04db3c6e061ab52545c5a63665e53
Load the variables from an architecture specific file first --
ansible's ansible_architecture fact for arm64 is aarch64 (it's all
confusing, Ubuntu calls it arm64). Add this file that sets up the
repo as "ubuntu-ports", which is our mirror of ports.ubuntu.com
Change-Id: Ieb50ae29c7f822e831ef1e32fdd03f74a93e298a
Unfortunately ansible_distribution is "openSUSE Tumbleweed" on
tumbleweed, and the whitespace in there is harmful. as there
isn't a version with tumbleweed, we can just replace
distribution/version with "opensuse-tumbleweed".
Change-Id: I21da4b5f851ec864dfb3cbf8ea6713bc12cda58f
- Improve the structure to support multiple distributions
- Use one task to set up the different repository files
- Use handler to update the apt cache
Change-Id: I90933164cbca9d230cebeb3e2e1263c7806db840
It make more sense to revert to mirror_fqdn, since it is a FQDN.
Change-Id: I4a0749b64a71e551e4fbea5b416b46d2d6433d0b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This will be used to replace our current confgure_mirror.sh script
that we today as a ready-script in nodepool.
This only adds support for ubuntu today. As we move forward and
configuration openstack-infra from JJB to ansible, we'll need to add
more distros.
Attach the role to the unittests base job for now. It should ultimately
be attached to the base job, but adding it to the unittests job lets us
test it more easily.
Co-Authored-By: Monty Taylor <mordred@inaugust.com>
Change-Id: I9bfa28c87390c09bb2c4cd0de6ce4c7890f8d81a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>