CentOS Linux 7 reached end of life (EOL) on June 30, 2024, and the workflow job always fails:
#7 [2/4] RUN yum install -y gcc elfutils-libelf-devel make perl python3 autoconf automake libtool rpm-build openssl-devel git && git clone -b branch-2.16 --depth=1 https://github.com/openvswitch/ovs.git /ovs/ && yum erase -y git && yum clean all
#7 0.224 Loaded plugins: fastestmirror, ovl
#7 0.330 Determining fastest mirrors
#7 0.359 Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=container error was
#7 0.359 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
#7 0.361
#7 0.361
#7 0.361 One of the configured repositories failed (Unknown),
#7 0.361 and yum doesn't have enough cached data to continue. At this point the only
#7 0.361 safe thing yum can do is fail. There are a few ways to work "fix" this:
#7 0.361
#7 0.361 1. Contact the upstream for the repository and get them to fix the problem.
#7 0.361
#7 0.361 2. Reconfigure the baseurl/etc. for the repository, to point to a working
#7 0.361 upstream. This is most often useful if you are using a newer
#7 0.361 distribution release than is supported by the repository (and the
#7 0.361 packages for the previous distribution release still work).
#7 0.3[61](https://github.com/zhangzujian/kube-ovn/actions/runs/9754157622/job/26920745295#step:5:62)
#7 0.361 3. Run the command with the repository temporarily disabled
#7 0.361 yum --disablerepo=<repoid> ...
#7 0.361
#7 0.361 4. Disable the repository permanently, so yum won't use it by default. Yum
#7 0.361 will then just ignore the repository until you permanently enable it
#7 0.361 again or use --enablerepo for temporary usage:
#7 0.361
#7 0.361 yum-config-manager --disable <repoid>
#7 0.361 or
#7 0.361 subscription-manager repos --disable=<repoid>
#7 0.361
#7 0.361 5. Configure the failing repository to be skipped, if it is unavailable.
#7 0.361 Note that yum will try to contact the repo. when it runs most commands,
#7 0.361 so will have to try and fail each time (and thus. yum will be be much
#7 0.361 slower). If it is a very temporary problem though, this is often a nice
#7 0.361 compromise:
#7 0.361
#7 0.361 yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
#7 0.361
#7 0.361 Cannot find a valid baseurl for repo: base/7/x86_[64](https://github.com/zhangzujian/kube-ovn/actions/runs/9754157622/job/26920745295#step:5:65)
Pull Request
What type of this PR
Examples of user facing changes:
Which issue(s) this PR fixes
CentOS Linux 7 reached end of life (EOL) on June 30, 2024, and the workflow job always fails: