From c9cad38eebf1bdabb10b79699598d6ba0f098f54 Mon Sep 17 00:00:00 2001 From: Gorka Eguileor Date: Tue, 19 Jan 2021 12:55:55 +0100 Subject: [PATCH] Fix CentOS wheel mirror URL 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 --- roles/configure-mirrors/vars/CentOS.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/configure-mirrors/vars/CentOS.yaml b/roles/configure-mirrors/vars/CentOS.yaml index 7821347ea..39eb6d503 100644 --- a/roles/configure-mirrors/vars/CentOS.yaml +++ b/roles/configure-mirrors/vars/CentOS.yaml @@ -1,2 +1,3 @@ package_mirror: "{{ http_or_https }}://{{ mirror_fqdn }}/{{ ansible_distribution | lower }}" epel_mirror: "{{ http_or_https }}://{{ mirror_fqdn }}/epel" +wheel_mirror: "{{ http_or_https }}://{{ mirror_fqdn }}/wheel/{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version }}-{{ ansible_architecture | lower }}"