crc-org / crc

CRC is a tool to help you run containers. It manages a local OpenShift 4.x cluster, Microshift or a Podman VM optimized for testing and development purposes
https://crc.dev
Apache License 2.0
1.26k stars 242 forks source link

[BUG] github actions RPM job is failing to install some packages #4204

Closed anjannath closed 5 months ago

anjannath commented 5 months ago

error seems consistent and is failing in multiple PRs, from the logs it looks like its failing to installing build dependencies, it is using the quay.io/centos/centos:stream8 image.

 > [3/6] RUN yum -y install git-core rpm-build dnf-plugins-core 'dnf-command(builddep)'         https://github.com/crc-org/admin-helper/releases/download/v0.5.2/crc-admin-helper-0.5.2-1.el8.x86_64.rpm    https://github.com/crc-org/machine-driver-libvirt/releases/download/0.13.7/crc-driver-libvirt-0.13.7-1.el8.x86_64.rpm:
0.618 CentOS Stream 8 - AppStream                     132  B/s |  38  B     00:00    
0.623 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
------
Containerfile:3
--------------------
   2 |     WORKDIR $APP_ROOT/src
   3 | >>> RUN yum -y install git-core rpm-build dnf-plugins-core 'dnf-command(builddep)' \
   4 | >>>         https://github.com/crc-org/admin-helper/releases/download/v0.5.2/crc-admin-helper-0.5.2-1.el8.x86_64.rpm \
   5 | >>>  https://github.com/crc-org/machine-driver-libvirt/releases/download/0.13.7/crc-driver-libvirt-0.13.7-1.el8.x86_64.rpm
   6 |     COPY . .
--------------------
ERROR: failed to solve: process "/bin/sh -c yum -y install git-core rpm-build dnf-plugins-core 'dnf-command(builddep)'         https://github.com/crc-org/admin-helper/releases/download/v0.5.2/crc-admin-helper-0.5.2-1.el8.x86_64.rpm \thttps://github.com/crc-org/machine-driver-libvirt/releases/download/0.13.7/crc-driver-libvirt-0.13.7-1.el8.x86_64.rpm" did not complete successfully: exit code: 1
praveenkumar commented 5 months ago

Can you check it locally if this works or failing?

anjannath commented 5 months ago

it fails locally too, its beacuse we are using the centos:stream8 image, cetnos stream 8 is EOL https://blog.centos.org/2023/04/end-dates-are-coming-for-centos-stream-8-and-centos-linux-7/