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
  • Also Red Hat Enterprise Linux 8 and 9 with High Availability (abbreviated as RHEL with HA in this article)

Issue

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

Resolution

  • Update the Amazon RHUI client package. On RHEL, run:
$ sudo yum update rh-amazon-rhui-client
  • On RHEL with HA, run:
$ sudo yum update rh-amazon-rhui-client-ha
  • Execute the 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. On RHEL, run:
$ 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

  • On RHEL with HA, run:
$ sudo rhui-eus-ha-switch
Checking if current version is eligible for EUS switch.
Your 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-ha-switch 8.6
To reset back to main stream version, run: /bin/rhui-eus-ha-switch reset
  • Execute the command to change the configuration to use EUS repositories. In the example below the system will be using 8.6 EUS. On RHEL, run:
$ sudo rhui-eus-switch 8.6
  • On RHEL with HA, run:
$ sudo rhui-eus-ha-switch 8.6
  • Confirm the list of repositories the system is subscribed to. On RHEL, run:
$ 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
  • On RHEL with HA, run:
$ 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)
rhel-8-for-x86_64-highavailability-eus-rhui-rpms Red Hat Enterprise Linux 8 for x86_64 - High Availability - Extended Update Support from RHUI (RPMs)
rhui-client-config-server-8-ha                   RHUI Client Configuration Server 8 HA

  • In addition, you can reset the repositories to the default (non-EUS) ones by executing the following command. On RHEL, run:
$ sudo rhui-eus-switch reset
Resetting to main stream version.
[...]
  • On RHEL with HA, run:
$ sudo rhui-eus-ha-switch reset
Resetting to main stream version.
[...]

Root Cause

  • The client package rh-amazon-rhui-client-4.0.8 and later includes the rhui-eus-switch command that allows users to switch the base RHEL repositories.
  • The client package rh-amazon-rhui-client-ha-4.0.19 and later includes the rhui-eus-ha-switch command that allows users to switch the HA repositories.

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