your environment.
2. Run the puppet agent to get the MySQL cluster up and verify
that the cluster was set up with no errors.
3. Run the puppet agent again to create the OpenStack databases
and users.
Note the above does not set up any fencing configuration. In a
production environment fencing is critical: you can either use
pacemaker commands to setup fencing, or update the default HA
mysql puppet manifests.
HA MySQL Resources:
The HA MySQL Host Group is responsible for starting Pacemaker and
configuring the following resources within a resource group: the
floating IP, shared storage for the MySQL server, and the mysql
server process. For example, run the following command:
# pcs status
...
Resource Group: mysqlgrp
ip-192.168.200.10 (ocf::heartbeat:IPaddr2): Started
192.168.202.11
fs-varlibmysql (ocf::heartbeat:Filesystem): Started
192.168.202.11
mysql-ostk-mysql (ocf::heartbeat:mysql): Started
192.168.202.11
Repository Requirements:
The cluster nodes must be subscribed to the rhel-ha-for-rhel-6-
server-rpms repository, or equivalent (before being subscribed to
the HA MySQL Host Group).
HA MySQL Host Group Parameters:
To edit the Host Group Parameters in the Foreman web UI, click
More (on the top right), then Configuration, then Host Groups.
Click HA MySQL Node. Click the tab on the right, Parameters. For
any parameter you want to override (which very well could be all
of them), click on the override button and edit the value at the
bottom of the page.
A number of the parameters (especially the IP-related parameters)
have defaults which must be changed to reflect your environment.
Please take care to ensure all the parameters in your Host Group
are correct for your setup.
* mysql_root_password, cinder_db_password, glance_db_password,
keystone_db_password, nova_db_password: the MySQL database
passwords. Note that the random values displayed were generated
when you installed foreman but you may wish to override them.
* mysql_bind_address: the address mysql listens on. Only two
values make sense here, 0.0.0.0 (to listen on all address on
whichever host mysql is running on) or the same value as
Komentarze do niniejszej Instrukcji