Chapter 8. Add a Content Delivery Server

The Red Hat Update Infrastructure Management Tool provides several options for configuring a content delivery server (CDS) within the Red Hat Update Infrastructure (RHUI). Adding a CDS differs in Red Hat Update Infrastructure 3.0 from Red Hat Update Infrastructure 2.1.3. Rather than adding a preconfigured CDS as done in Red Hat Update Infrastructure 2.1.3, the Add step in the Red Hat Update Appliance (RHUA) also installs CDS services.

  1. Make sure sshd is running on the CDS node and that ports 443 and 5000 are open.
  2. Navigate to the Red Hat Update Infrastructure Management Tool home screen.

    [root@rhua ~]# rhui-manager
  3. Press c to select manage content delivery servers (CDS).

    -= Red Hat Update Infrastructure Management Tool =-
    
    -= Home =-
    
    r   manage repositories
    c   manage content delivery servers (CDS)
    l   manage HAProxy load-balancer instances
    s   synchronization status and scheduling
    e   create entitlement certificates and client configuration RPMs
    n   manage Red Hat entitlement certificates
    u   manage RHUI users
    
                                          Connected: rhua.example.com
    ---------------
  4. Type a to select register (add) a new Content Delivery Server instance.

    ------------------------------------------------------------------------------
    = Red Hat Update Infrastructure Management Tool =
    
    = Content Delivery Server (CDS) Management =
    
    l   list all known CDS instances managed by the RHUI
    a   register (add) a new CDS instance
    r   reinstall and reapply configuration to an existing CDS instance
    d   unregister (delete) a CDS instance from the RHUI
    
                                                  	Connected: rhua.example.com
    ------------------------------------------------------------------------------
    rhui (cds) => a
  5. Enter the host name of the CDS to add.

    Hostname of the CDS instance to register:
    cds1.example.com
  6. Enter the user name that will have SSH access to the CDS and have sudo privileges.

    Username with SSH access to <cds1.example.com> and sudo privileges:
    root
  7. Enter the absolute path to the SSH private key for logging in to the CDS and press Enter.

    Absolute path to an SSH private key to log into <cds1.example.com> as root:
    /root/.ssh/id_rsa
    .........................................................................
    The following CDS has been successfully added:
    
    Hostname:             <cds1.example.com>
    SSH Username:     root
    SSH Private Key:  /root/.ssh/id_rsa
    
    The CDS will now be configured:
    …………………………………………………………..
    The CDS was successfully configured.
  8. If adding the content delivery server fails, check that the CDS daemon pulp-cds is running and that the firewall rules permit access between the RHUA and the CDS.
  9. Run the mount command to see if Gluster Storage is mounted as read-write.

    [root@rhua ~]# mount | grep cds1.example.com
    
    cds1.example.com:rhui_content_0 on /var/lib/rhui/remote_share type fuse.glusterfs (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,max_read=131072)
  10. After successful configuration, repeat these steps for any remaining CDSs. You can also add a CDS using the command-line interface.

    [root@rhua ~]# rhui cds add cds1.example.com root /root/.ssh/id_rsa -u

Report a bug