Chapter 6. Setting up CDS nodes

To provide repositories that clients can connect to and access the updated packages, you must first set up the CDS nodes.

The following process explains how to:

6.1. Registering the CDS node

The following instructions explain how to register your Content Delivery Server (CDS) nodes.

Prerequisites

  • Latest version of RHEL 8 is installed.
  • Ensure you have root access to each of the CDS nodes.

Procedure

  1. On the CDS nodes, enter the following command:

    # subscription-manager register --username <admin-example> --password <secret>
    Registering to: subscription.rhsm.redhat.com:443/subscription
    The system has been registered with ID: <a1b2c3-d4e5-f6g7-2345-hij890klm123>
  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 CDS 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.

6.2. Attaching a subscription to the CDS node

The following instructions explain how to attach a subscription to your content delivery server (CDS) 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 CDS node.

Procedure

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

    # subscription-manager list --available
    +-------------------------------------------+
        Available Subscriptions
    +-------------------------------------------+
    ...
    Subscription Name: <Subscription-Name>
    Pool ID: <pool-ID>
    ...
  2. Attach a subscription using its pool ID.

    # subscription-manager attach --pool=<pool-ID>
    Successfully attached a subscription for: <Subscription-Name>

6.3. Enabling the required repositories on the CDS 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-rpms and rhel-8-for-x86_64-appstream-rpms repositories on the CDS node.

If you are planning to use Ceph File System (CephFS) as your shared storage, then you must also enable the rhceph-5-tools-for-rhel-8-x86_64-rpms repository.

Note

CDS nodes require RHEL installations with base packages and with all repositories disabled except for the rhel-8-for-x86_64-baseos-rpms, rhel-8-for-x86_64-appstream-rpms, and, optionally, rhceph-5-tools-for-rhel-8-x86_64-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 that you have root access to all the CDS nodes you plan to use.

Procedure

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

    • If not using Simple Content Access (SCA):

      # subscription-manager list --consumed
      +-------------------------------------------+
         Consumed Subscriptions
      +-------------------------------------------+
      Subscription Name:   Red Hat Update Infrastructure and RHEL Add-Ons for Providers
      Provides:            JBoss Enterprise Application Platform from RHUI
                           JBoss Enterprise Web Server from RHUI
                           JBoss Operations Network from RHUI
                           RHEL for SAP - Update Services for SAP Solutions from RHUI
                           Red Hat Developer Tools from RHUI (for RHEL Server)
                           Red Hat Enterprise Linux Server - Extended Update Support from RHUI
                           RHEL for SAP HANA - Update Services for SAP Solutions from RHUI
                           Red Hat Developer Tools Beta from RHUI (for RHEL Server)
                           Red Hat Enterprise Linux High Availability (for RHEL Server) from RHUI
                           Red Hat JBoss Core Services from RHUI
                           Red Hat Enterprise Linux for x86_64 from RHUI
                           Red Hat Enterprise Linux for x86_64 Beta from RHUI
                           Red Hat Enterprise Linux Load Balancer (for RHEL Server) 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 High Performance Networking (for RHEL Server) from RHUI
                           Red Hat Enterprise Linux for SAP from RHUI
                           Red Hat CodeReady Linux Builder for x86_64 from RHUI
                           Red Hat Enterprise Linux for SAP Hana from RHUI
                           Red Hat CodeReady Linux Builder for ARM 64 from RHUI
                           RHEL Software Test Suite (for RHEL Server) from RHUI
                           Red Hat Gluster Storage Server for On-premise from RHUI
                           Red Hat Single Sign-On from RHUI
                           Red Hat Enterprise Linux High Availability for x86_64 from RHUI
                           Red Hat Enterprise Linux Resilient Storage for x86_64 from RHUI
                           Red Hat Enterprise Linux High Availability (for RHEL Server) - Extended Update Support from RHUI
                           Red Hat Enterprise Linux Server - Extended Life Cycle Support (from RHUI)
                           Red Hat Enterprise Linux Load Balancer (for RHEL Server) - Extended Update Support from RHUI
                           RHEL for SAP HANA - Extended Update Support (from RHUI)
                           RHEL for SAP - Extended Update Support (from RHUI)
                           Red Hat Enterprise Linux Resilient Storage (for RHEL Server) - Extended Update Support from RHUI
                           Red Hat Enterprise Linux High Performance Networking (for RHEL Server) - Extended Update Support from RHUI
                           Red Hat Enterprise Linux for ARM 64 from RHUI
                           Red Hat Enterprise Linux Server - Update Services for SAP Solutions from RHUI
                           Red Hat Software Collections (for RHEL Server) from RHUI
                           Red Hat Enterprise Linux Server for ARM from RHUI
                           Red Hat Enterprise Linux High Availability - Update Services for SAP Solutions from RHUI
                           Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support from RHUI
                           Red Hat Software Collections (for RHEL Server for ARM) from RHUI
                           Red Hat Ansible Engine from RHUI
                           Red Hat Software Collections Beta (for RHEL Server for ARM) from RHUI
                           Red Hat Enterprise Linux for ARM 64 Beta from RHUI
                           Red Hat Developer Tools (for RHEL Server for ARM) from RHUI
                           Red Hat Developer Tools Beta (for RHEL Server for ARM) from RHUI
                           dotNET on RHEL (for RHEL Server) from RHUI
                           dotNET on RHEL Beta (for RHEL Server) from RHUI
                           Red Hat Update Infrastructure
                           Red Hat Enterprise Linux Server from RHUI
      SKU:                 RC11164
      Contract:            126839
      Account:             5401
      Serial:              5744492009337488
      Pool ID:             8a85f9a1790fb0ed017961af515b7
      Provides Management: No
      Active:              True
      Quantity Used:       1
      Service Type:        L1-L3
      Roles:
      Service Level:       Premium
      Usage:
      Add-ons:
      Status Details:      Subscription is current
      Subscription Type:   Standard
      Starts:              05/12/2021
      Ends:                05/11/2022
      Entitlement Type:    Physical
      ---------------------------------------------------------------------------------
    • If using Simple Content Access (SCA):

      # subscription-manager status
      +-------------------------------------------+
         System Status Details
      +-------------------------------------------+
      Overall Status: Disabled
      Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status.
      
      System Purpose Status: Disabled
      ---------------------------------------------------------------------------------
  2. Disable all repositories.

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

    # subscription-manager repos --enable rhel-8-for-x86_64-appstream-rpms --enable rhel-8-for-x86_64-baseos-rpms
  4. Optional: If you are planning to use CephFS, enable the Ceph tools repository.

    # subscription-manager repos --enable rhceph-5-tools-for-rhel-8-x86_64-rpms
  5. Repeat the steps on all the CDS nodes you plan to use.

Verification

  • List the enabled repositories and verify whether the relevant repositories appear on the list.

    # yum repolist enabled
    repo id                                repo name
    rhel-8-for-x86_64-appstream-rpms         Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
    rhel-8-for-x86_64-baseos-rpms            Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)