-
Language:
English
-
Language:
English
Chapter 7. Add or Delete a Content Delivery Server
7.1. 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.
- Make sure sshd is running on the CDS node and that ports 443 and 5000 are open.
Navigate to the Red Hat Update Infrastructure Management Tool home screen.
[root@rhua ~]# rhui-manager
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 sm manage Red Hat subscriptions u manage RHUI users Connected: rhua.example.com
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
Enter the host name of the CDS to add.
Hostname of the CDS instance to register: cds1.example.com
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
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.
- 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.
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)
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
7.2. Unregister a Content Delivery Server
Use the following procedure to unregister (delete) a CDS instance that you are not going to use any longer.
Navigate to the Red Hat Update Infrastructure Management Tool home screen.
[root@rhua ~]# rhui-manager
Press
c
to selectmanage 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 sm manage Red Hat subscriptions u manage RHUI users Connected: rhua.example.com
Type
d
to selectunregister (delete) a CDS instance from the RHUI
.------------------------------------------------------------------------------ = 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) => d
Enter the host name of the CDS to delete.
Hostname of the CDS instance to unregister: cds1.example.com
Confirm the
/etc/haproxy/haproxy.cfg
file in the HAProxy instance# cat /etc/haproxy/haproxy.cfg
Due to a bug, the unregistered instance will be kept in the HAProxy configuration. See Chapter 4, Known Issues of the Red Hat Update Infrastructure 3.0 Release Notes for more information.