Chapter 5. Setting up RHUA nodes

To access the RHUI interface and manage various RHUI functionalities, you must first set up the RHUA node.

The following process explains how to:

5.1. Registering the RHUA node

The following instructions explain how to register your Red Hat Update Appliance (RHUA) node.

Prerequisites

  • Latest version of RHEL 8 is installed.
  • Ensure you have root access to the RHUA node.

Procedure

  1. On the RHUA node, enter the following command to register the system:

    # subscription-manager register --type=rhui --username <admin-example> --password <secret>
    Registering to: subscription.rhsm.redhat.com:443/subscription
    The system has been registered with ID: <a12b34c5-6d78-9ef1-2345-ghi678jk91l2m>
  2. Optional: If your system is already registered, you can override the subscription using the --force option.

    # subscription-manager register --force

    The new system will be available on the Red Hat Customer Portal, and the new RHUA instance will not have any subscriptions attached to it.

Verification

  1. Navigate to the Red Hat Customer Portal.
  2. Verify that your system is available by locating it within the Customer Portal.

5.2. Attaching a subscription to the RHUA node

The following instructions explain how to attach a subscription to your Red Hat Update Appliance (RHUA) node.

Note

You do not need to perform the following steps if you are using Simple Content Access.

Prerequisites

  • Ensure you have root access to the RHUA node.

Procedure

  1. On the RHUA node, check for available subscriptions that you can attach.

    # subscription-manager list --available
    +-------------------------------------------+
        Available Subscriptions
    +-------------------------------------------+
    Subscription Name:   Red Hat Enterprise Linux Atomic Host for Certified Cloud
                         and Service Providers (via Red Hat Update Infrastructure)
    Provides:            Red Hat Enterprise Linux Atomic Host Beta from RHUI
                         Red Hat Enterprise Linux Atomic Host from RHUI
    SKU:                 RH00731
    Contract:            11312089
    Pool ID:             8a85f9815a6c4c9d015a6c6acb373ed9
    Provides Management: No
    Available:           19
    Suggested:           1
    Service Level:       Premium
    Service Type:        L1-L3
    Subscription Type:   Standard
    Ends:                02/22/2018
    System Type:         Physical
    
    Subscription Name:   Red Hat Update Infrastructure and RHEL Add-Ons for
                         Providers
    Provides:            dotNET on RHEL (for RHEL Server) from RHUI
                         Red Hat Enterprise Linux Server from RHUI
                         Red Hat Software Collections (for RHEL Server) from RHUI
                         Red Hat Enterprise Linux for SAP from RHUI
                         Red Hat Enterprise Linux Resilient Storage (for RHEL
                         Server) from RHUI
                         Red Hat Enterprise Linux Scalable File System (for RHEL
                         Server) from RHUI
                         Red Hat Enterprise Linux Server - Extended Update Support
                         from RHUI
                         dotNET on RHEL Beta (for RHEL Server) from RHUI
                         Red Hat Enterprise Linux for SAP Hana from RHUI
                         RHEL Software Test Suite (for RHEL Server) from RHUI
                         Red Hat Enterprise Linux High Availability (for RHEL
                         Server) from RHUI
                         Red Hat Update Infrastructure
                         Red Hat Enterprise Linux Load Balancer (for RHEL Server)
                         from RHUI
    SKU:                 RC1116415
    Contract:            11314314
    Pool ID:             8a85f9815a71f0bd015a72445adf0223
    Provides Management: No
    Available:           20
    Suggested:           1
    Service Level:       Premium
    Service Type:        L1-L3
    Subscription Type:   Standard
    Ends:                02/23/2018
    System Type:         Physical
  2. Attach a subscription using its pool ID.

    For example, the following command attaches the Red Hat Update Infrastructure and RHEL Add-Ons for Providers subscription.

    # subscription-manager attach --pool=8a85f9815a71f0bd015a72445adf0223
    Successfully attached a subscription for: Red Hat Update Infrastructure and RHEL Add-Ons for Providers

5.3. Enabling the required repositories on the RHUA node

To install RHUI on your system, you must first enable certain repositories on your nodes which contain the required packages. The following instructions explain how to enable the rhel-8-for-x86_64-baseos-rhui-rpms and rhel-8-for-x86_64-appstream-rhui-rpms repositories on the RHUA node.

Note

RHUA nodes require RHEL installations with base packages and with all repositories disabled except for the rhel-8-for-x86_64-baseos-rhui-rpms and the rhel-8-for-x86_64-appstream-rhui-rpms repositories. This requirement means that you cannot install any third-party configurations or softwares that are not necessary for the direct operation of the server. This restriction includes hardening or other non-Red Hat security software.

Prerequisites

  • Ensure you have root access to the RHUA node.

Procedure

  1. Navigate to the RHUA node, list the enabled repositories, and verify that your system is correctly subscribed.

    # yum repolist enabled
    repo id                                repo name
    codeready-builder-for-rhel-8-rhui-rpms Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs) from RHUI
    rhel-8-appstream-rhui-rpms             Red Hat Enterprise Linux 8 for x86_64 - AppStream from RHUI (RPMs)
    rhel-8-baseos-rhui-rpms                Red Hat Enterprise Linux 8 for x86_64 - BaseOS from RHUI (RPMs)
  2. Disable all repositories.

    # subscription-manager repos --disable=*
  3. Enable the relevant repositories.

    #subscription-manager repos --enable=rhel-8-for-x86_64-baseos-rhui-rpms --enable=rhel-8-for-x86_64-appstream-rhui-rpms
  4. Enable the RHUI 4 repository.

    # subscription-manager repos --enable=rhui-4-for-rhel-8-x86_64-rpms