1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/ctdb
Martin Schwenke fdccaab2a9 ctdb/eventscripts: Do not reconfigure in "monitor" events
"monitor" events can be cancelled.  If a reconfigure action does a
service restart then the "monitor" event can be cancelled at the
inconvenient moment after the service is stopped.  In this case the
service stays down and the node may become unhealthy (depending on
whether there are any repair actions in the monitor event).

A long time ago we did service reconfiguration in "monitor" events
following failovers.  Service reconfiguration was then moved to the
"ipreallocated" event.  However, reconfiguration in "monitor" events
has been kept as a last resort in case an "ipreallocate" event does
not occur.  The only important case that this covers is "ctdb
deleteip", where "releaseip" events are generated without a
corresponding "ipreallocated".  Therefore, IPs can be deleted without
running the required service reconfiguration.

The supported way of removing IP addresses is now via "ctdb
reloadips", which always causes a takeover run with a corresponding
"ipreallocate" event.

This means that service reconfiguration in "monitor" events is no
longer required and should be removed because it is unsafe.

Also update the associated tests.  Make the first confirm that the
monitor event no longer does reconfiguration.  Change the others to
test that monitor status is correctly replayed when something else is
doing a reconfigure and currently holds the reconfigure lock.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>

Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Tue Dec 17 06:32:35 CET 2013 on sn-devel-104
2013-12-17 06:32:35 +01:00
..
client ctdb-client: Treat empty __db_sequence_number__ record as 0 2013-11-27 18:46:16 +01:00
common ctdb-common: Refactor code to keep track of child processes 2013-11-27 18:46:16 +01:00
config ctdb/eventscripts: Do not reconfigure in "monitor" events 2013-12-17 06:32:35 +01:00
doc ctdb-doc: Update ctdb.1 - primarily to add pdelete/pfetch/pstore/ptrans 2013-11-27 18:46:16 +01:00
ib Remove explicit include of lib/tevent/tevent.h. 2012-04-13 17:28:14 +10:00
include ctdb-common: Refactor code to keep track of child processes 2013-11-27 18:46:16 +01:00
lib Fix CID 1138340 Resource leak 2013-12-17 01:57:12 +01:00
packaging ctdb:packaging:RPM: don't run autogen. 2013-12-09 05:47:00 +01:00
server ctdb-recoverd: Only respond to currently queued ipreallocated requests 2013-11-27 18:46:16 +01:00
tcp ctdb-tcp: Coverity fixes 2013-11-19 17:13:06 +01:00
tests ctdb/eventscripts: Do not reconfigure in "monitor" events 2013-12-17 06:32:35 +01:00
tools ctdb-tools/ctdb: Improve error checking when parsing node string 2013-11-27 18:46:17 +01:00
utils Improved check_ctdb 2013-10-24 16:54:08 +11:00
web web: Add links to new manpages 2013-10-30 15:37:54 +11:00
.bzrignore more code rearrangement 2007-06-07 22:16:48 +10:00
.gitignore git: Ignore generated documentation files 2013-10-22 13:07:13 +11:00
aclocal.m4 initial version 2006-11-18 10:41:20 +11:00
autogen.sh event: Update events to latest Samba version 0.9.8 2010-08-18 09:16:31 +09:30
config.guess ctdb-build: Update to latest upstream config.guess 2013-11-27 18:46:15 +01:00
config.mk minor back-merge from samba4 2007-07-10 18:13:47 +10:00
config.sub build: Update config.guess 2012-12-30 and config.sub to 2013-01-11 2013-01-22 18:03:37 +11:00
configure.ac build: Move the default CTDB socket from /tmp to /var/run/ctdb 2013-10-25 12:06:07 +11:00
configure.rpm fixed permissions on configure.rpm 2008-04-22 16:48:25 +02:00
COPYING add a licence file 2009-02-07 08:10:34 +11:00
ctdb.pc.in (This used to be ctdb commit b0718551f55d5da9be0e6aba233f57c1ff8509be) 2009-04-08 09:14:20 +10:00
install-sh initial version 2006-11-18 10:41:20 +11:00
Makefile.in ctdb:build: install the new manpages 2013-12-09 10:35:26 +11:00
NEWS ctdb: Update NEWS 2013-11-27 18:46:17 +01:00
README doc: README - add information about CTDB, license and website 2012-10-22 17:39:49 +11:00
README.Coding Add a code-style document. 2010-07-30 16:37:22 +10:00

This is the release version of CTDB, a clustered implementation of TDB
database used by Samba and other projects to store temporary data.

This software is freely distributable under the GNU public license,
a copy of which you should have received with this software (in a file
called COPYING).

For documentation on CTDB, please visit CTDB website http://ctdb.samba.org.