From dfe91bd00f2bb7201561fc230ec3f59a878d6214 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Fri, 4 Feb 2022 08:32:34 +0100 Subject: [PATCH] build: disable removed Apache Arrow repository The CentOS 8 repository for Apache Arrow has been removed. This causes container-image builds fail with the following error: Errors during downloading metadata for repository 'apache-arrow-centos': - Status code: 404 for https://apache.jfrog.io/artifactory/arrow/centos/8/x86_64/repodata/repomd.xml (IP: 54.190.66.70) Error: Failed to download metadata for repo 'apache-arrow-centos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried The Ceph base image has `arrow/centos/8` configured, maybe Apache Arrow offers a CentOS Stream 8 repository now? Once the Ceph container-image has been updated, the repository can be enabled again. Ceph-CSI does not depend on Apache Arrow, so there is no functional change by disabling the repository. Signed-off-by: Niels de Vos (cherry picked from commit cbec296543a459f0d38d395319f7cb14b60525a1) --- deploy/cephcsi/image/Dockerfile | 5 +++++ scripts/Dockerfile.devel | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/deploy/cephcsi/image/Dockerfile b/deploy/cephcsi/image/Dockerfile index cb93f7f52..c9adc5241 100644 --- a/deploy/cephcsi/image/Dockerfile +++ b/deploy/cephcsi/image/Dockerfile @@ -23,6 +23,11 @@ RUN source /build.env && \ # test if the downloaded version of Golang works (different arch?) RUN ${GOROOT}/bin/go version && ${GOROOT}/bin/go env +# FIXME: Ceph does not need Apache Arrow anymore, some container images may +# still have the repository enabled. Disabling the repository can be removed in +# the future, see https://github.com/ceph/ceph-container/pull/1990 . +RUN dnf config-manager --disable apache-arrow-centos || true + RUN dnf -y install \ librados-devel librbd-devel \ /usr/bin/cc \ diff --git a/scripts/Dockerfile.devel b/scripts/Dockerfile.devel index c74bcd7d5..e7d502426 100644 --- a/scripts/Dockerfile.devel +++ b/scripts/Dockerfile.devel @@ -17,6 +17,11 @@ RUN source /build.env \ && mkdir -p /usr/local/go \ && curl https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${GOARCH}.tar.gz | tar xzf - -C ${GOROOT} --strip-components=1 +# FIXME: Ceph does not need Apache Arrow anymore, some container images may +# still have the repository enabled. Disabling the repository can be removed in +# the future, see https://github.com/ceph/ceph-container/pull/1990 . +RUN dnf config-manager --disable apache-arrow-centos || true + RUN dnf -y install \ git \ make \