]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
install-deps: script exit on /ValueError: in centos_stream8
authorNizamudeen A <nia@redhat.com>
Tue, 16 Aug 2022 15:39:25 +0000 (21:09 +0530)
committerNizamudeen A <nia@redhat.com>
Tue, 30 Aug 2022 09:20:40 +0000 (14:50 +0530)
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 <nia@redhat.com>
install-deps.sh

index 25f066a01aa50d135633216a46c74f3794a30d39..432855f51f56129e02cd395fb59030e35d2e80b1 100755 (executable)
@@ -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