Due to vendor end of life for CentOS Linux 8, you are unable to to install or upgrade Puppet Enterprise on a CentOS Linux 8 OS node. Use the steps in this article to fix the issue.
Error messages
After your existing YUM or DNF cache expires or is flushed, you get the following warning every Puppet run:
Warning: Puppet::Type::package::ProviderDnf: Could not check for updates, ‘/bin/dnf check-update’ exited with 1
You get failures related to managing YUM or DNF CentOS8 packages.
For example :
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync DNF version: 4.7.0 cachedir: /var/cache/dnf User-Agent: constructed: 'libdnf (CentOS Linux 8; generic; Linux.x86_64)' CentOS Linux 8 - AppStream 124 B/s | 38 B 00:00 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Version and installation information
PE version: All supported versions
OS: CentOS 8
Solution
CentOS Linux 8 reached vendor end of life (EOL) on December 31, 2021. On January 31 2022, all CentOS 8 repositories were moved from https://mirrors.centos.org/ to https://vault.centos.org/.
Puppet also removed CentOS 8 as a supported platform in both the latest and long-term support PE release tracks in PE 2021.5 and 2019.8.10. This is in accordance with our platform support lifecycle policy.
Allow Puppet Enterprise to get CentOS 8 packages from https://vault.centos.org/ to fix the issue until you can update to a supported OS.
In /etc/yum.repos.d
, for each CentOS Linux repo file, comment out the mirrorlist
line and replace it with a baseurl
line with the following contents:
https://vault.centos.org/$contentdir/$releasever/<REPO NAME>/$basearch/os/
For example:
[baseos] name=CentOS Linux $releasever - BaseOS #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=BaseOS&infra=$infra baseurl=https://vault.centos.org/$contentdir/$releasever/BaseOS/$basearch/os
How can we improve this article?
0 comments
Please sign in to leave a comment.
Related articles