Pacemaker High Availability resource agents for OpenStack
Go to file
Adam Spiers 34447f8fa8 Fix neutron-ha-tool for active/passive usage
The neutron-ha-tool Pacemaker resource primitive is only intended to be
run on a single node at a time, i.e. in active/passive mode, rather than
as a clone.  However until now, the RA didn't change behaviour depending
on whether it was supposed to be active on the current node.  So if
Pacemaker did a probe on a node where it was not expecting it to be
active, the monitor action would typically return OCF_SUCCESS, causing
messages from pengine like:

  error: Resource neutron-ha-tool (ocf::neutron-ha-tool) is active on 2 nodes attempting recovery
  warning: See http://clusterlabs.org/wiki/FAQ#Resource_is_Too_Active for more information.

and then Pacemaker could attempt unnecessary recovery according to the
value of the cluster-wide "multiple-active" option, which defaults to
"stop-start".  This would stop the resource everywhere (which is a
noop), and then start it on one node, resulting in unnecessary cluster
transitions and unnecessary runs of this RA's "start" action.

To avoid this, we introduce a state file to keep track of whether it's
active on the current node, and if so, skip the l3-agent check and
always return OCF_NOT_RUNNING.  This is the same technique already used
by NovaEvacuate.

Change-Id: I459e49d27802552ef5424d290ef3fca51640723b
Closes-Bug: #1555711
Signed-off-by: Adam Spiers <aspiers@suse.com>
2016-03-15 10:07:25 +00:00
debian Remove trailing whitespaces 2016-02-11 10:24:32 +01:00
ocf Fix neutron-ha-tool for active/passive usage 2016-03-15 10:07:25 +00:00
utils Add a script to run checkbashisms on codebase 2015-11-09 16:41:35 +01:00
.gitignore Add .tox/ directory to .gitignore 2016-02-27 14:10:42 +00:00
.gitreview Add .gitreview 2015-10-20 09:57:51 +02:00
CONTRIBUTING.rst Add CONTRIBUTING.rst 2015-10-21 12:59:09 +01:00
COPYING Initial checkin of this repository 2012-08-29 01:15:24 +00:00
ChangeLog Added a ChangeLog 2012-08-29 13:01:25 +00:00
Makefile Move syntax-check test to tox.ini 2016-02-24 15:19:00 +01:00
README.rst Write a real README.rst 2015-10-21 12:51:38 +01:00
tox.ini Add bashate version >=0.5.0 as test dependency 2016-03-07 19:43:10 +01:00

README.rst

Pacemaker High Availability resource agents for OpenStack

This repository contains a collection of Pacemaker resource agents (RAs) which can be used to provide highly available OpenStack services managed within Pacemaker clusters.

Usage

Please see the OpenStack High Availability Guide for usage instructions. It is a bit out of date, but most of the information is still accurate; hopefully we can update it soon.

Development

Bugs can be viewed and reported via <https://launchpad.net/openstack-resource-agents>.

Suggestions for improvements are very welcome; changes can be submitted for review via the normal OpenStack development process.

History

Martin Loschwitz started this repository in 2012, hosted at <https://github.com/madkiss/openstack-resource-agents>, and together with Sébastien Han and Emilien Macchi contributed the majority of resource agents.

Martin eventually stepped down from maintainership, and in October 2015 the project was moved to StackForge.