Cannot subscribe to the EUS repository on AWS EC2 PAYG instances

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9

Issue

  • Cannot subscribe to the EUS repository on AWS EC2 PAYG instances

Resolution

  • Users must specify the EUS repository that they wishes to subscribe.
  • Update the rh-amazon-rhui-client package
$ sudo yum update rh-amazon-rhui-client
  • Execute the rhui-eus-switch command to confirm the EUS repositories that are available to your system. In the example below, the user is eligible for 8.6 and 8.8 EUS streams.
$ sudo rhui-eus-switch
Checking if current version is eligible for EUS switch.
You RHEL product version is eligible for switch to EUS.
Your current version is eligible for switch to EUS.
To switch to EUS, run this script with the version you want to switch to as a parameter.
Currently supported versions are: 8.6, 8.8
Examples:
To switch to RHEL EUS 8.6, run: /bin/rhui-eus-switch 8.6
To reset back to main stream version, run: /bin/rhui-eus-switch reset

Please note! There is a known issue with rhui-eus-switch command. It will fail in case you have IMDSv2 enabled for your instance and running rh-amazon-client version 4.0.9 and older. Make sure you have updated to 4.0.10 and newer.

  • Execute the rhui-eus-switch command to subscribe to a desired EUS repository. In the example below the system is subscribing to the 8.6 EUS.
$ sudo rhui-eus-switch 8.6
  • Confirm the list of repositories the system is subscribed to.
$ sudo yum repolist
[...]
repo id                        repo name
rhel-8-appstream-eus-rhui-rpms Red Hat Enterprise Linux 8 - AppStream - Extended Update Support from RHUI (RPMs)
rhel-8-baseos-eus-rhui-rpms    Red Hat Enterprise Linux 8 - BaseOS - Extended Update Support from RHUI (RPMs)
rhui-client-config-server-8    RHUI Client Configuration Server 8
  • In addition, users can reset the repository to default by executing the following command.
$ sudo rhui-eus-switch reset
Resetting to main stream version.

Root Cause

  • The client package rh-amazon-rhui-client-4.0.8-1.el8 onward includes the rhui-eus-switch command that allows users to switch the repository.

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