1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/ctdb
Martin Schwenke 48078dd24f Test suite: Fixes for node state parsing plus new stop/continue tests.
The parsing of "ctdb status -Y" output to determine various node
states was implemented very strictly.  Therefore, the parsing broke
due to the addition of the new "stopped" state to the output of "ctdb
status -Y".  This relaxes the parsing so that it should work for
versions prior to the introduction of the "stopped" state, as well as
future versions that add new states to the end of the list of bits in
output of "ctdb status -Y".

Similarly the check for cluster unhealthy (in _cluster_is_healthy())
now just checks for a single 1 in any bit in the "ctdb status -Y"
output, rather than checking for a particular number of 0s.

New tests
tests/simple/{41_ctdb_stop.sh,42_ctdb_continue.sh,43_stop_recmaster_yield.sh}
do rudimentary testing of the stop and continue functions.

Remove tests tests/simple/41_ctdb_ban.sh and
tests/simple/42_ctdb_unban.sh.  They were both unreliable.

tests/simple/21_ctdb_disablemonitor.sh now schedules a restart, since
one will be required.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 67c5bfb5f02c9d45a32d976021ede4fb2174dfe9)
2009-07-29 18:01:07 +10:00
..
client When processing the stop node control reply in the client code we should 2009-07-29 09:58:40 +10:00
common When we dispatch a message to a handler, pass the data as a real talloc object so that the handler can talloc_steal() the message content. 2009-07-02 12:58:49 +10:00
config update the natgw eventscript to set the NATGW capability when this feature is used 2009-07-28 10:00:33 +10:00
doc document the two new commands setlmasterrole and setrecmasterrole 2009-07-28 13:54:08 +10:00
ib Whitespace changes and using the CTDB_NO_MEMORY() macro changes to 2009-05-21 11:49:16 +10:00
include add two commands : setlmasterrole and setrecmasterrole to enable/disable these capabilities at runtime 2009-07-28 13:45:13 +10:00
lib New attempt at TDB transaction nesting allow/disallow. 2009-05-25 17:04:42 +10:00
packaging new version 1.0.87 2009-07-17 13:01:11 +10:00
server add two commands : setlmasterrole and setrecmasterrole to enable/disable these capabilities at runtime 2009-07-28 13:45:13 +10:00
tcp make it possible to start the daemon in STOPPED mode 2009-07-09 11:57:20 +10:00
tests Test suite: Fixes for node state parsing plus new stop/continue tests. 2009-07-29 18:01:07 +10:00
tools Merge commit 'origin/master' 2009-07-29 10:08:56 +10:00
utils From William Jojo <w.jojo[AT]hvcc.edu> 2009-06-04 09:41:05 +10:00
web fix the git path to the repository 2009-05-25 12:15:13 +10:00
.bzrignore more code rearrangement 2007-06-07 22:16:48 +10:00
.gitignore From Mathieu Parent <math.parent@gmail.com> 2009-04-08 09:21:11 +10:00
aclocal.m4 initial version 2006-11-18 10:41:20 +11:00
autogen.sh From Mathieu Parent <math.parent@gmail.com> 2009-04-08 09:21:11 +10:00
config.guess more merges for GPLv3 update 2007-07-10 15:46:05 +10:00
config.mk minor back-merge from samba4 2007-07-10 18:13:47 +10:00
config.sub more merges for GPLv3 update 2007-07-10 15:46:05 +10:00
configure.ac remove the obsolete ipmux component. 2009-05-25 12:33:52 +10: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 rename 99.routing to 11.routing so that it executed before the service scripts 2009-06-23 11:29:26 +10:00