Issue link: https://read.uberflip.com/i/1334488
Chapter 11 245 Here's what to do if you receive an error similar to the following: Failed actions: p_keystone_monitor_0 (node=ubuntu2, call=3, rc=5, status=complete): not installed Issue the following to clear the status and then view the status again: sudo crm_resource -P sudo crm_mon -1 8. We are now able to configure our client so that it uses the FloatingIP address of 172.16.0.10 for both Glance and Keystone services. With this in place, we can bring down the interface on our first node and still have our Keystone and Glance services available on this FloatingIP address. We now have Keystone and Glance running on two separate nodes, where a node can fail and the services will still be available. How it works... Making OpenStack services highly available is a complex subject, and there are a number of ways to achieve this. Using Pacemaker and Corosync is a very good solution to this problem. It allows us to configure a floating IP address assigned to the cluster that will attach itself to the appropriate node (using Corosync), as well as control services using agents, so the cluster manager can start and stop services as required, to provide a highly available experience to the end user. By installing both Keystone and Glance on two separate nodes (each configured appropriately with a remote database backend such as MySQL and Glance), having the images available using a shared filesystem or cloud storage solution means we can configure these services with Pacemaker to allow Pacemaker to monitor them. If unavailable on the active node, Pacemaker can start those services on the passive node. Configuration of Pacemaker is predominantly done with the crm tool. This allows us to script the configuration but, if invoked on its own, allows us to invoke an interactive shell that we can use to edit, add, and remove services as well as query the status of the cluster. This is a very powerful tool to control an equally powerful cluster manager. With both nodes running Keystone and Glance, and with Pacemaker and Corosync running and accessible on the floating IP provided by Corosync, we configure Pacemaker to control the running of the Keystone and Glance services by using an OCF agent written specifically for this purpose. The OCF agent uses a number of parameters that will be familiar to us—whereby they require the same username, password, tenant, and endpoint URL that we would use in a client to access that service. A timeout of 30 seconds was set up for both the agent and when the floating IP address moves to another host. www.it-ebooks.info

