View Issue Details

IDProjectCategoryView StatusLast Update
0018394CentOS-8yumpublic2022-02-10 00:36
Reporterpbalogh Assigned To 
PriorityimmediateSeverityblockReproducibilityalways
Status newResolutionopen 
Product Version8.4.2105 
Summary0018394: Base CentOS mirror links doesn't work
Description$ cat /etc/redhat-release
CentOS Linux release 8.4.2105
$ curl 'http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=BaseOS'
Invalid release/repo/arch combination
$ sudo yum repolist -v
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync
YUM version: 4.4.2
cachedir: /var/cache/dnf
CentOS Linux 8 - AppStream 19 kB/s | 8.1 kB 00:00
Errors during downloading metadata for repository 'appstream':
  - Status code: 404 for http://mirror.centos.org/centos/8/AppStream/x86_64/os/repodata/repomd.xml (IP: 67.220.193.10)
Error: Failed to download metadata for repo 'appstream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
$ cat CentOS-Linux-AppStream.repo
# CentOS-Linux-AppStream.repo
#
# The mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are geographically
# close to the client. You should use this for CentOS updates unless you are
# manually picking other mirrors.
#
# If the mirrorlist does not work for you, you can try the commented out
# baseurl line instead.

[appstream]
name=CentOS Linux $releasever - AppStream
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=AppStream&infra=$infra
baseurl=http://mirror.centos.org/$contentdir/$releasever/AppStream/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial



# Enabled mirrorlist instead of base URL
$ sudo vim CentOS-Linux-AppStream.repo
$ cat CentOS-Linux-AppStream.repo
# CentOS-Linux-AppStream.repo
#
# The mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are geographically
# close to the client. You should use this for CentOS updates unless you are
# manually picking other mirrors.
#
# If the mirrorlist does not work for you, you can try the commented out
# baseurl line instead.

[appstream]
name=CentOS Linux $releasever - AppStream
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=AppStream&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/$releasever/AppStream/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
$ sudo yum repolist -v
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync
YUM version: 4.4.2
cachedir: /var/cache/dnf
CentOS Linux 8 - AppStream 212 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Steps To ReproduceTrying to install something fails with what's described above.
TagsNo tags attached.

Activities

TeddyAndrieux

TeddyAndrieux

2022-01-31 12:16

reporter   ~0038834

To me, it seems it's expected behavior according to CentOS-8 status https://www.centos.org/centos-linux-eol/
pbalogh

pbalogh

2022-01-31 12:19

reporter   ~0038835

EOL process by keeping this content available until January 31st.
Which is today, so I would expect this still to work.

Problem is that even I am trying to run this command described here:
https://www.centos.org/download/

It's failing with the same.
$ sudo dnf swap centos-linux-repos centos-stream-repos
CentOS Linux 8 - AppStream 420 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

So there will not be any way to migrate to stream now?
TeddyAndrieux

TeddyAndrieux

2022-01-31 12:24

reporter   ~0038836

I agree with you, to be honest, I don't know if it's expected or not.

I just realized that maybe"this content" refers to the note itself and not to the repository, ect
Eilyre

Eilyre

2022-01-31 14:32

reporter   ~0038838

"To me, it seems it's expected behavior according to CentOS-8 status https://www.centos.org/centos-linux-eol/"

Maybe they could make the new versions of containers available before literally destroying the workflow completely on all CentOS based containers? https://hub.docker.com/_/centos/?tab=tags

$ docker run -ti centos:latest
[root@fc4a72dc1d51 /]# yum update
Failed to set locale, defaulting to C.UTF-8
CentOS Linux 8 - AppStream 95 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
[root@fc4a72dc1d51 /]#
TeddyAndrieux

TeddyAndrieux

2022-01-31 14:44

reporter   ~0038839

Definitely +1 !

I faced the exact same issue, a CI job building a docker image from centos:8 that does no longer work since ...today
smooge

smooge

2022-01-31 18:49

manager   ~0038841

As several people posted earlier in this thread, this is expected behaviour according to the https://www.centos.org/centos-linux-eol/

So today was the last day that CentOS 8 would be on the main mirrors. The mirrorlist will return

```
curl 'http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=os'
Invalid release/repo/arch combination
```

The CentOS 8 code has been moved to vault.centos.org and the main master will be 'empty' from an rsync. Various sub-mirror sites which do a `rsync --delete` will soon also remove the 8 code also. [Some mirrors don't do a --delete and will still have that code online.] `yum update` and docker images will not work and need to be moved to a different distro:
1. AlmaLinux
2. Oracle Linux
3. Rocky Linux
4. Red Hat Enterprise Linux

For people who are looking to test against future versions of Red Hat Enterprise Linux early, you can look at using CentOS Stream but it does take some research to do this. I do see that the CentOS-8 to CentOS-8 Stream conversion rules does not work currently and will need to be updated. I will update my lines on this when I find out what they should be.
smooge

smooge

2022-01-31 19:05

manager   ~0038842

Updated instructions to move from CentOS-8 to CentOS Stream via dnf/yum. Looking for what is needed for CI images
```
dnf --disablerepo '*' --allowerasing install http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/centos-stream-repos-8-3.el8.noarch.rpm
dnf distro-sync

```
kristiaan.jansen@planonsoftware.com

kristiaan.jansen@planonsoftware.com

2022-02-01 15:21

reporter   ~0038843

i agree with Eilyre. All very good and wel that it is expected behaviour. But it breaks a lot of old builds.
Would be great if there is a new container build of centos 8. So we won't have to fix all of our ancient builds.
We already moved to stream 8 with the latest builds.
aegelhofer

aegelhofer

2022-02-10 00:36

reporter   ~0038851

Hi There-

Created an account just to +1 Eilyre's & kristiaan statements about providing an updated centos:8 image using the 8-stream repository definitions. Is there an ETA or other place we should raise this request?

Issue History

Date Modified Username Field Change
2022-01-31 11:49 pbalogh New Issue
2022-01-31 12:16 TeddyAndrieux Note Added: 0038834
2022-01-31 12:19 pbalogh Note Added: 0038835
2022-01-31 12:24 TeddyAndrieux Note Added: 0038836
2022-01-31 14:32 Eilyre Note Added: 0038838
2022-01-31 14:44 TeddyAndrieux Note Added: 0038839
2022-01-31 18:49 smooge Note Added: 0038841
2022-01-31 19:05 smooge Note Added: 0038842
2022-02-01 15:21 kristiaan.jansen@planonsoftware.com Note Added: 0038843
2022-02-10 00:36 aegelhofer Note Added: 0038851