How to set a specific release version on Red Hat Update Infrastructure (RHUI) running on Red Hat Cloud Partners providers?
Environment
- Red Hat Enterprise Linux
- Red Hat Update Infrastructure at AWS
- Red Hat Update Infrastructure at Azure
Issue
- How to set a specific RHEL release version on Red Hat Update Infrastructure (RHUI) running on Red Hat Cloud Partners providers?
- How to set RHEL minor releases on Red Hat Update Infrastructure (RHUI) running at AWS/Azure?
- How to lock Pay-As-You-Go AWS VMs to a specific RHEL version?
-
When setting an RHEL minor release on a system registered to the RHUI at AWS, the error below is displayed:
# yum --releasever=7.2 update Loaded plugins: amazon-id, rhui-lb, search-disabled-repos https://cds.example.com/pulp/repos//content/dist/rhel/rhui/server/7/7.2/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found Trying other mirror.
Resolution
-
On RHEL7, Enforce the
releasever
on the client by executing the command below:# echo 7.2 > /etc/yum/vars/releasever
-
On RHEL8, RHEL9 the file path is
/etc/dnf/vars/releasever
-
Once it is set, then check if the repository is available to your client:
# yum clean all # yum repolist -v
-
For RHEL 8, only minor versions 8.2, 8.4, 8.6, 8.8, 8.9, and 8.10 are available for AWS RHUI. These minor releases are available to facilitate Leapp upgrade from RHEL 7 to RHEL 8.
-
For RHEL 9, only minor versions 9.0, 9.2, and later minor versions are available for AWS RHUI. These minor releases are available to facilitate Leapp upgrade from RHEL 8 to RHEL 9.
- See Supported in-place upgrade paths for Red Hat Enterprise Linux for more information about Leapp upgrades.
-
EUS minor version repositories are also available on AWS RHUI for hourly Pay-As-You-Go instances. More information on using EUS repositories with AWS RHUI can be found here.
-
If you still hit the
404
error, please contact the Red Hat Support team.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments