Highly available Shared File Systems API
Making the Shared File Systems (manila) API service highly available
in active/passive mode involves:
Add Shared File Systems API resource to Pacemaker
Download the resource agent to your system:
# cd /usr/lib/ocf/resource.d/openstack
# wget https://git.openstack.org/cgit/openstack/openstack-resource-agents/plain/ocf/manila-api
# chmod a+rx *
Add the Pacemaker configuration for the Shared File Systems
API resource. Connect to the Pacemaker cluster with the following
command:
Note
The crm configure supports batch input. Copy and paste
the lines in the next step into your live Pacemaker configuration and then
make changes as required.
For example, you may enter edit p_ip_manila-api
from the
crm configure menu and edit the resource to match your preferred
virtual IP address.
Add the following cluster resources:
primitive p_manila-api ocf:openstack:manila-api \
params config="/etc/manila/manila.conf" \
os_password="secretsecret" \
os_username="admin" \
os_tenant_name="admin" \
keystone_get_token_url="http://10.0.0.11:5000/v2.0/tokens" \
op monitor interval="30s" timeout="30s"
This configuration creates p_manila-api
, a resource for managing the
Shared File Systems API service.
Commit your configuration changes by entering the following command
from the crm configure menu:
Pacemaker now starts the Shared File Systems API service and its
dependent resources on one of your nodes.