From f2fd4303cfbc89f43a3b90dcc74cc5e9289b5e52 Mon Sep 17 00:00:00 2001 From: psingla Date: Thu, 24 Nov 2022 07:48:56 +0000 Subject: [PATCH] Adding cri-o repository for centos system cri-o repository for centos need to be added in /etc/yum.repos.d to successfully install cri-o on centos system. Change-Id: I6b215cb0efb3c53e97a4a6605e94a262c0d04f25 --- devstack/lib/crio | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/devstack/lib/crio b/devstack/lib/crio index 4dbb0bc..768d57c 100644 --- a/devstack/lib/crio +++ b/devstack/lib/crio @@ -66,6 +66,17 @@ function install_crio { --add-repo \ https://cbs.centos.org/repos/paas7-crio-311-candidate/x86_64/os/ fi + if [[ "${os_VENDOR}" == *'Stream' ]]; then + local stream="_Stream" + fi + # NOTE: All crio versions are not supported for Centos 8 stream + # because crio rpm is not present for some minor versions + sudo yum-config-manager \ + --add-repo \ + "https://download.opensuse.org/repositories/"` + `"devel:/kubic:/libcontainers:/stable:/cri-o:/${CRIO_VERSION}/"` + `"CentOS_${os_RELEASE}${stream}/" + yum_install cri-o podman buildah fi }