From: Nizamudeen A Date: Tue, 16 Aug 2022 15:39:25 +0000 (+0530) Subject: install-deps: script exit on /ValueError: in centos_stream8 X-Git-Tag: v18.0.0~141^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b73d7d22d4dad5188d06fdec4892148af0757dc5;p=ceph-ci.git install-deps: script exit on /ValueError: in centos_stream8 this is happening locally as well as in our ceph-dev runs too https://github.com/rhcs-dashboard/ceph-dev/runs/7850564011 Signed-off-by: Nizamudeen A --- diff --git a/install-deps.sh b/install-deps.sh index 25f066a01aa..432855f51f5 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -407,7 +407,7 @@ EOF ;; rocky|centos|rhel|ol|virtuozzo) MAJOR_VERSION="$(echo $VERSION_ID | cut -d. -f1)" - $SUDO dnf install -y dnf-utils + $SUDO dnf install -y dnf-utils selinux-policy-targeted rpm --quiet --query epel-release || \ $SUDO dnf -y install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-$MAJOR_VERSION.noarch.rpm $SUDO rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$MAJOR_VERSION @@ -438,7 +438,7 @@ EOF ensure_decent_gcc_on_rh $dts_ver fi IGNORE_YUM_BUILDEP_ERRORS="ValueError: SELinux policy is not managed or store cannot be accessed." - sed "/$IGNORE_YUM_BUILDEP_ERRORS/d" $DIR/yum-builddep.out | grep -qi "error:" && exit 1 + sed "/$IGNORE_YUM_BUILDEP_ERRORS/d" $DIR/yum-builddep.out | grep -i "error:" && exit 1 # for rgw motr backend build checks if ! rpm --quiet -q cortx-motr-devel && { [[ $FOR_MAKE_CHECK ]] || $with_rgw_motr; }; then