ceph / ceph-csi

CSI driver for Ceph
Apache License 2.0
1.19k stars 527 forks source link

CentOS Stream 8 is EOL #4659

Open iPraveenParihar opened 3 weeks ago

iPraveenParihar commented 3 weeks ago

CI was failing to build ceph-csi image

#8 [updated_base 4/4] RUN dnf -y update --nobest        && dnf -y install nfs-utils        && dnf clean all        && rm -rf /var/cache/yum
#8 0.555 CentOS Stream 8 - AppStream                     490  B/s |  38  B     00:00    
#8 0.563 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
#8 ERROR: process "/bin/sh -c dnf -y update --nobest        && dnf -y install nfs-utils        && dnf clean all        && rm -rf /var/cache/yum" did not complete successfully: exit code: 1
------
 > [updated_base 4/4] RUN dnf -y update --nobest        && dnf -y install nfs-utils        && dnf clean all        && rm -rf /var/cache/yum:
0.555 CentOS Stream 8 - AppStream                     490  B/s |  38  B     00:00    
0.563 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

CentOS 8 was EOL on 31 May 2024. And quay.io/ceph/ceph:v18 is based on CentOS 8 stream. Probably that is the reason.

pm@dhcp53-176:~$ podman run --rm -it quay.io/ceph/ceph:v18 cat /etc/os-release
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"

Workaround for now will be to update the centos repo url. This should be removed once the base image (ceph) is updated to a version with a newer CentOS.

Originally posted by @iPraveenParihar in https://github.com/ceph/ceph-csi/issues/4658#issuecomment-2146673400

nixpanic commented 2 weeks ago

See also ceph/ceph-container#2183 and https://lists.ceph.io/hyperkitty/list/dev@ceph.io/thread/H7I4Q4RAIT6UZQNPPZ5O3YB6AUXLLAFI/