Chapter 3. Installing the high availability and RHOSP packages and agents
Install the packages required for configuring a Red Hat High Availability cluster on Red Hat OpenStack Platform (RHOSP). You must install the packages on each of the nodes you will use as cluster members.
Prerequisites
- A server group for the RHOSP instances to use as HA cluster nodes, configured as described in RHOSP server group configuration for HA instances
An RHOSP instance for each HA cluster node
- The instances are members of a server group
- The instances are configured as nodes running RHEL 9.1 or later
Procedure
Enable the RHEL HA repositories and the RHOSP tools channel.
subscription-manager repos --enable=rhel-9-for-x86_64-highavailability-rpms subscription-manager repos --enable=openstack-17-tools-for-rhel-9-x86_64-rpms
# subscription-manager repos --enable=rhel-9-for-x86_64-highavailability-rpms # subscription-manager repos --enable=openstack-17-tools-for-rhel-9-x86_64-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Install the Red Hat High Availability Add-On software packages and the packages that are required for the RHOSP cluster resource agents and the RHOSP fence agents.
dnf install pcs pacemaker python3-openstackclient python3-novaclient fence-agents-openstack
# dnf install pcs pacemaker python3-openstackclient python3-novaclient fence-agents-openstackCopy to Clipboard Copied! Toggle word wrap Toggle overflow Installing the
pcsandpacemakerpackages on each node creates the userhacluster, which is thepcsadministration account. Create a password for userhaclusteron all cluster nodes. Using the same password for all nodes simplifies cluster administration.passwd hacluster
# passwd haclusterCopy to Clipboard Copied! Toggle word wrap Toggle overflow If
firewalld.serviceis installed, add the high-availability service to the RHEL firewall.firewall-cmd --permanent --add-service=high-availability firewall-cmd --add-service=high-availability
# firewall-cmd --permanent --add-service=high-availability # firewall-cmd --add-service=high-availabilityCopy to Clipboard Copied! Toggle word wrap Toggle overflow Start the
pcsservice and enable it to start on boot.systemctl start pcsd.service systemctl enable pcsd.service
# systemctl start pcsd.service # systemctl enable pcsd.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that the
pcsservice is running.Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Edit the
/etc/hostsfile and add RHEL host names and internal IP addresses. For information about/etc/hosts, see the Red Hat Knowledgebase solution How should the /etc/hosts file be set up on RHEL cluster nodes?.