From a795073493c2faa51e8f2a75b2e1b7b0865da3b1 Mon Sep 17 00:00:00 2001 From: Sandeep Yadav Date: Tue, 19 Oct 2021 11:40:31 +0530 Subject: [PATCH] multi-node-bridge: repos to install ovs in C9 With this patch, Adding repos to install openvswitch in Centos9 stream. For Centos9 stream nodes we need to enable 2 repos:- * nfv repo - Ussuri+ openvswitch is shipped as part of NFV SIG * rdo xena repo - rdo-openvswitch(which provides openvswitch wrapper) is available in OpenStack repo Closes-Bug: #1947665 Change-Id: If5a32b30637296a070f2e75ba8feb6aa45d8ecac --- .../zuul-multi-node-bridge-ovs.repo.j2 | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/roles/multi-node-bridge/templates/zuul-multi-node-bridge-ovs.repo.j2 b/roles/multi-node-bridge/templates/zuul-multi-node-bridge-ovs.repo.j2 index 95d1857ab..57a71fa37 100644 --- a/roles/multi-node-bridge/templates/zuul-multi-node-bridge-ovs.repo.j2 +++ b/roles/multi-node-bridge/templates/zuul-multi-node-bridge-ovs.repo.j2 @@ -10,7 +10,7 @@ baseurl=http://mirror.centos.org/centos/7/cloud/$basearch/openstack-queens/ gpgcheck=1 enabled=1 gpgkey=file:///tmp/RPM-GPG-KEY-CentOS-SIG-Cloud -{% elif ansible_distribution in ['CentOS', 'RedHat'] and ansible_distribution_major_version|int >= 8 %} +{% elif ansible_distribution in ['CentOS', 'RedHat'] and ansible_distribution_major_version|int == 8 %} [RDO-CentOS8-deps] name=CentOS OpenStack Train Repository {% if zuul_site_mirror_fqdn is defined %} @@ -20,4 +20,25 @@ baseurl=http://mirror.centos.org/centos/8/cloud/$basearch/openstack-train/ {% endif %} gpgcheck=0 enabled=1 +# TODO: Replace testing repo once C9 released repos as available. Currently Centos9 stream release +# repos are not available so need to use testing repo available at buildlogs.centos.org. +{% elif ansible_distribution in ['CentOS', 'RedHat'] and ansible_distribution_major_version|int == 9 %} +[RDO-CentOS9-stream-deps] +name=CentOS OpenStack Xena Repository +{% if zuul_site_mirror_fqdn is defined %} +baseurl=http://{{ zuul_site_mirror_fqdn }}:8080/buildlogs.centos/9-stream/cloud/x86_64/openstack-xena/ +{% else %} +baseurl=https://buildlogs.centos.org/centos/9-stream/cloud/x86_64/openstack-xena/ +{% endif %} +gpgcheck=0 +enabled=1 +[RDO-CentOS9-stream-nfv] +name=CentOS9 Stream NFV Repository +{% if zuul_site_mirror_fqdn is defined %} +baseurl=http://{{ zuul_site_mirror_fqdn }}:8080/buildlogs.centos/9-stream/nfv/x86_64/openvswitch-2/ +{% else %} +baseurl=https://buildlogs.centos.org/centos/9-stream/nfv/x86_64/openvswitch-2/ +{% endif %} +gpgcheck=0 +enabled=1 {% endif %}