fix ovs link in gating tests

The link for ovs installation is no longer available, fix it.

Resolves: rhbz#2060445

Signed-off-by: Xin Long <lxin@redhat.com>
This commit is contained in:
Xin Long 2022-05-19 15:47:42 -04:00 committed by Xin Long
parent 82e623b614
commit f705e8645d

View File

@ -66,9 +66,10 @@ libteam_start_ovs()
{
local url=http://download-node-02.eng.bos.redhat.com/brewroot/packages
rpm -qa | grep openvswitch >> libteam.log || \
yum install -y $url/openvswitch2.15/2.15.0/16.el9fdp/x86_64/openvswitch2.15-2.15.0-16.el9fdp.x86_64.rpm \
$url/openvswitch-selinux-extra-policy/1.0/29.el9fdp/noarch/openvswitch-selinux-extra-policy-1.0-29.el9fdp.noarch.rpm
ver=`curl -s $url/openvswitch2.15/2.15.0/ | grep -o "[0-9]*.el9fdp" |tail -1`
pver=`curl -s $url/openvswitch-selinux-extra-policy/1.0/ |grep -o "[0-9]*.el9fdp" |tail -1`
yum install -y $url/openvswitch2.15/2.15.0/$ver/x86_64/openvswitch2.15-2.15.0-$ver.x86_64.rpm \
$url/openvswitch-selinux-extra-policy/1.0/$pver/noarch/openvswitch-selinux-extra-policy-1.0-$pver.noarch.rpm
systemctl start openvswitch
}