]>
git.proxmox.com Git - mirror_corosync.git/log
Fabio M. Di Nitto [Tue, 17 Jan 2012 09:53:17 +0000 (10:53 +0100)]
vsf_quorum: fix potential memory leak
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
Fabio M. Di Nitto [Tue, 17 Jan 2012 09:50:32 +0000 (10:50 +0100)]
coroparse: fix include path after drop lcrso merge
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
Fabio M. Di Nitto [Tue, 17 Jan 2012 09:49:41 +0000 (10:49 +0100)]
update .gitignore
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
Steven Dake [Mon, 16 Jan 2012 20:47:15 +0000 (13:47 -0700)]
Silent a warning from coverity about handle being used without assign
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
Steven Dake [Mon, 16 Jan 2012 20:43:53 +0000 (13:43 -0700)]
Silent a warning from coverity about icmap_track being used without assign
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
Steven Dake [Mon, 16 Jan 2012 20:41:54 +0000 (13:41 -0700)]
Silent a warning from coverity about icmap_track being used without assign
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
Steven Dake [Mon, 16 Jan 2012 20:39:34 +0000 (13:39 -0700)]
Silent a warning from coverity about icmap_track being used without assign
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
Steven Dake [Mon, 16 Jan 2012 20:36:50 +0000 (13:36 -0700)]
Silent a coverity warning about a variable being uninit when it actually is
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
Steven Dake [Mon, 16 Jan 2012 20:35:36 +0000 (13:35 -0700)]
Silent a coverity warning about handle being unset (when it really is)
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
Steven Dake [Mon, 16 Jan 2012 20:26:50 +0000 (13:26 -0700)]
Silent a warning from coverity about icmap_track being used without assign
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
Steven Dake [Mon, 16 Jan 2012 20:25:07 +0000 (13:25 -0700)]
Silent a warning from coverity about icmap_track being used without assign
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
Steven Dake [Mon, 16 Jan 2012 20:24:38 +0000 (13:24 -0700)]
Silent a warning from coverity about icmap_track being used without assign
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
Steven Dake [Mon, 16 Jan 2012 20:24:02 +0000 (13:24 -0700)]
Silent a warning from coverity about icmap_track being used without assign
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
Steven Dake [Mon, 16 Jan 2012 20:23:02 +0000 (13:23 -0700)]
Silent a warning from coverity about icmap_track being used without assign
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
Steven Dake [Mon, 16 Jan 2012 20:21:48 +0000 (13:21 -0700)]
Silent a warning from coverity about icmap_track being used without assign
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
Steven Dake [Mon, 16 Jan 2012 20:19:11 +0000 (13:19 -0700)]
Add break where one was missing
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
Steven Dake [Mon, 16 Jan 2012 20:17:43 +0000 (13:17 -0700)]
Remove unchecked coverity error
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
Steven Dake [Mon, 16 Jan 2012 19:48:47 +0000 (12:48 -0700)]
Fix missing rebase problem that causes make rpm to fail
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Fabio Di Nitto <fdinitto@redhat.com>
Steven Dake [Mon, 16 Jan 2012 19:43:26 +0000 (12:43 -0700)]
Add missing votequorum.h file from previous commit
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Fabio Di Nitto <fdinitto@redhat.com>
Steven Dake [Mon, 16 Jan 2012 16:27:42 +0000 (09:27 -0700)]
Remove main_get_config_modules since it is no longer needed
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Fabio Di Nitto <fdinitto@redhat.com>
Steven Dake [Mon, 16 Jan 2012 16:14:53 +0000 (09:14 -0700)]
Finish up quorum integration
Signed-off-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio Di Nitto <fdinitto@redhat.com>
Reviewed-by: Fabio Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Steven Dake [Sat, 14 Jan 2012 21:13:41 +0000 (14:13 -0700)]
Remove some lcr ifdef'ed code in service.c
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Fabio Di Nitto <fdinitto@redhat.com>
Steven Dake [Sat, 14 Jan 2012 21:13:40 +0000 (14:13 -0700)]
Remove services directory from loc command
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Fabio Di Nitto <fdinitto@redhat.com>
Steven Dake [Sat, 14 Jan 2012 21:13:39 +0000 (14:13 -0700)]
Get rid of external config loader in include/engine/config.h
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Fabio Di Nitto <fdinitto@redhat.com>
Steven Dake [Sat, 14 Jan 2012 21:13:38 +0000 (14:13 -0700)]
Remove service.d directory since plugins are gone
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Fabio Di Nitto <fdinitto@redhat.com>
Steven Dake [Sat, 14 Jan 2012 21:13:37 +0000 (14:13 -0700)]
Remove lcr directory, files, and references since it is no longer needed
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Fabio Di Nitto <fdinitto@redhat.com>
Steven Dake [Sat, 14 Jan 2012 21:13:36 +0000 (14:13 -0700)]
Initial removal of plugins
Quorum is broken in this patch.
service.h needs to be cleaned up significantly
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Fabio Di Nitto <fdinitto@redhat.com>
Steven Dake [Fri, 13 Jan 2012 00:43:34 +0000 (17:43 -0700)]
Move cs_error into global header so that third party applications can use it
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Andrew Beekhof <abeekhof@redhat.com>
Fabio M. Di Nitto [Mon, 16 Jan 2012 14:26:12 +0000 (15:26 +0100)]
votequorum: fix name and version
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
Fabio M. Di Nitto [Mon, 16 Jan 2012 14:25:33 +0000 (15:25 +0100)]
votequorum: drop unused define
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
Fabio M. Di Nitto [Mon, 16 Jan 2012 13:24:22 +0000 (14:24 +0100)]
votequorum: rearrange code
this commit has no functional changes or bugfixes.
Simply reorganize the code in more logical way and change function
names to be more consistent.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
Fabio M. Di Nitto [Fri, 13 Jan 2012 13:34:40 +0000 (14:34 +0100)]
votequorum/quorum-tools: drop unnecessary includes
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
Fabio M. Di Nitto [Fri, 13 Jan 2012 12:32:33 +0000 (13:32 +0100)]
votequorum: network data should be packed
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
Jan Friesse [Thu, 12 Jan 2012 16:57:38 +0000 (17:57 +0100)]
Use fast inc for service statistics
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Jan Friesse [Thu, 12 Jan 2012 16:55:53 +0000 (17:55 +0100)]
icmap: Add fast version of inc and dec operation
Biggest difference between fast and standard inc/dec operation is in
fast that fast doesn't do malloc/memcpy, but also it means that tracking
events doesn't have old value set.
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Fri, 13 Jan 2012 09:20:04 +0000 (10:20 +0100)]
Fix spec file to reflect documentation changes
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Fabio M. Di Nitto [Fri, 13 Jan 2012 08:54:42 +0000 (09:54 +0100)]
man: improve index.html a bit
add tools/daemon section and developers section
also add links to other API docs
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Fabio M. Di Nitto [Fri, 13 Jan 2012 08:37:17 +0000 (09:37 +0100)]
man: sort interfaces alphabetically
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Fabio M. Di Nitto [Fri, 13 Jan 2012 08:35:03 +0000 (09:35 +0100)]
man: cosmetic index.html changes
makes it slightly more consistent and readable
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Fabio M. Di Nitto [Fri, 13 Jan 2012 08:32:24 +0000 (09:32 +0100)]
man: drop confdb from man pages
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 15:16:12 +0000 (16:16 +0100)]
update TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 15:13:49 +0000 (16:13 +0100)]
quorum: extend initialize man page
add QUORUM_FREE/QUORUM_SET and fix a typo
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 15:08:35 +0000 (16:08 +0100)]
quorum: libquorum API documentation (quorum_getquorate)
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 15:05:49 +0000 (16:05 +0100)]
quorum: libquorum API documentation (quorum_context_set)
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 15:01:53 +0000 (16:01 +0100)]
quorum: libquorum API documentation (quorum_context_get)
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 14:56:24 +0000 (15:56 +0100)]
quorum: libquorum API documentation (quorum_dispatch)
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 14:51:40 +0000 (15:51 +0100)]
quorum: libquorum API documentation (quorum_fd_get)
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 14:49:03 +0000 (15:49 +0100)]
quorum: libquorum API documentation (quorum_finalize)
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 14:45:49 +0000 (15:45 +0100)]
quorum: libquorum API documentation (quorum_initialize)
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 14:39:29 +0000 (15:39 +0100)]
votequorum: update man pages
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 14:08:33 +0000 (15:08 +0100)]
votequorum: lower quorum change logging
vfs_quorum already does logging at INFO level
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 11:48:18 +0000 (12:48 +0100)]
update TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 11:46:33 +0000 (12:46 +0100)]
votequorum: drop votequorum_leave
this was a compatibility function for cman_tool only.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 09:55:48 +0000 (10:55 +0100)]
votequorum: add missing new line
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 09:46:05 +0000 (10:46 +0100)]
votequorum: display flags for all features
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 09:35:47 +0000 (10:35 +0100)]
quorumtool: improve monitoring output some more
this avoid printing some static data more than once
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 09:21:31 +0000 (10:21 +0100)]
votequorum: drop HASSTATE/SETSTATE
this is a leftover from killing DISALLOWED
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 09:16:03 +0000 (10:16 +0100)]
quorumtool: make data display more generic
this improves the monitoring option a ton
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 08:55:46 +0000 (09:55 +0100)]
quorumtool: drop redundant init calls to votequorum
this is taken care of in initall
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 08:51:57 +0000 (09:51 +0100)]
quorumtools: update copyright header
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 08:22:07 +0000 (09:22 +0100)]
cmapctl: initialize more variables
and kill the last gcc warnings
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 08:20:06 +0000 (09:20 +0100)]
cmapctl: initialize bit_value and check if it's set
more gcc warnings...
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 08:14:13 +0000 (09:14 +0100)]
mainconfig: check error return codes from logsys_format_set
and avoid yet another gcc warning
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 08:06:57 +0000 (09:06 +0100)]
main: drop unrequired call to totem_get_stats
and shut up another gcc warning
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 12 Jan 2012 08:01:44 +0000 (09:01 +0100)]
icmap: make sure variable is initialized
shut up gcc warning
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Steven Dake [Wed, 11 Jan 2012 15:04:09 +0000 (08:04 -0700)]
unshare exec/icmap.so
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Fabio Di Nitto <fdinitto@redhat.com>
Steven Dake [Wed, 11 Jan 2012 14:50:31 +0000 (07:50 -0700)]
Change all ais references to corosync
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Fabio Di Nitto <fdinitto@redhat.com>
Jan Friesse [Mon, 9 Jan 2012 10:12:43 +0000 (11:12 +0100)]
cmapctl: Print all keys by default
Also remove option -a, because there is no need to hide
internal_configuration.
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Jan Friesse [Wed, 11 Jan 2012 13:13:06 +0000 (14:13 +0100)]
Update TODO with notifid changes
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Jan Friesse [Wed, 11 Jan 2012 10:50:22 +0000 (11:50 +0100)]
Store rrp faulty status of ring in cmap
New key with faulty status of ring is created in cmap as name
runtime.totem.pg.mrp.rrp.$ring_number.faulty
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto [Tue, 10 Jan 2012 07:57:51 +0000 (08:57 +0100)]
quorum: more TODO items
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 10 Jan 2012 07:56:50 +0000 (08:56 +0100)]
quorum: update TODO
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 10 Jan 2012 07:49:56 +0000 (08:49 +0100)]
votequorum: fix votes/quorum recalculation in auto_tie_breaker
this is necessary when switching from 2 nodes to 1 one in auto_tie_breaker
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 9 Jan 2012 13:03:18 +0000 (14:03 +0100)]
votequorum: improve wait_for_all reset handling when merging parititions
this change allow a node to rejoin a cluster that has already seen
wait_for_all and reset the flag if the partition that the node is joining
is quorate.
Also propagate current wait_for_all_status and quorate info via nodeinfo.
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 9 Jan 2012 10:26:04 +0000 (11:26 +0100)]
votequorum: fix another regressions introduced by
05b4e99a6e (dispatch notifications only once)
left_member_entries is never set when totem config change is regular.
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 6 Jan 2012 11:29:03 +0000 (12:29 +0100)]
votequorum: fix regression introduced by
05b4e99a6e (dispatch notifications only once)
Effectively there are 2 kind of quorum notifications that cannot be merged into 1.
config_change: when the quorum membership changes, triggered by totem/membership changes
(node join/leave)
quorum_status_changes: same membership node becomes quorate or not.
A quorum status change does not necessarely match a membership change, hence it needs
to be dispatched separately.
An example is a cluster that is not quorate, user changes the amount of votes in a node to
regain quorum. No membership changes happen at this point, but votequorum will
effectively broadcast the votes: XX change and recalculate quorum.
In turn we need to notify quorum users.
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 5 Jan 2012 12:36:23 +0000 (13:36 +0100)]
votequorum: switch two_node from flag to int
TWO_NODE was the last flag using quorum_flags.
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 5 Jan 2012 12:31:39 +0000 (13:31 +0100)]
votequorum: drop kill_reason leftovers (part of disallowed)
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 5 Jan 2012 12:25:28 +0000 (13:25 +0100)]
votequorum: missed one comment to cleanup ;)
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 5 Jan 2012 12:19:49 +0000 (13:19 +0100)]
votequorum: clean up coding style
first pass to bring votequorum at corosync codying style.
fix whitespaces, add missing {}, fix comments, be consistent with
ENTER/LEAVE usage, be consistent with some functions variable names
and some more cosmetic changes
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 5 Jan 2012 11:27:46 +0000 (12:27 +0100)]
votequorum: update copyright/authors
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 5 Jan 2012 09:36:18 +0000 (10:36 +0100)]
votequorum: dispatch notifications only once
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 4 Jan 2012 14:31:10 +0000 (15:31 +0100)]
votequorum: add last_man_standing support (default: off)
this flag (0|1) can be configured via quorum.last_man_standing and when
enabled, it allows expected_votes to be dynamically recalculated.
Assuming an 8 nodes cluster, every node votes 1 (mandatory requirement for
this feature).
In the first event, 3 nodes are lost.
The remaining partition of 5 is barely quorate.
After a configurable timeout (quorum.last_man_standing_window, default 10sec)
the quorate partition is allow to recalculate expected_votes based on
the remaining nodes.
This operation will bring expected_votes to 5 and quorum to 3.
Repeating the above loop, in the next event, 2 more nodes are allowed to
die. etc. etc.
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 4 Jan 2012 08:31:27 +0000 (09:31 +0100)]
votequorum: drop concept of DISALLOWED
this is a very old leftover from the RHEL5 timeframe, not used in RHEL6.
Also change votequorum soname since this change implies an ABI change.
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 4 Jan 2012 08:13:36 +0000 (09:13 +0100)]
quorum: bump soname for libquorum to reflect API change
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 3 Jan 2012 14:48:54 +0000 (15:48 +0100)]
votequorum: fix quorum_flags values
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 3 Jan 2012 13:58:15 +0000 (14:58 +0100)]
votequorum: transmit wait_for_all info in node info message
this is necessary to reset the wait_for_all data when a node is joining a cluster
that has already seen all nodes once.
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 3 Jan 2012 13:39:50 +0000 (14:39 +0100)]
votequorum: add auto_tie_breaker support (default: off)
this flag (0|1) can be configured via quorum.auto_tie_breaker and when
enabled, support for perfect even split is on.
In case of a 50% of votes loss in one single transition, the partition
with the node that has the lowest node id will remain quorate.
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 3 Jan 2012 10:06:39 +0000 (11:06 +0100)]
votequorum: add wait_for_all support (default: off)
this flag (0|1) can be configured via quorum.wait_for_all and changes
behavior when granting quorum for the first time.
Normal behavior (default / 0) grants quorum as soon as enough nodes
are available in a cluster.
Setting this value to 1 will grant quorum only after all cluster
memembers are part of the cluster at the same time.
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 3 Jan 2012 08:46:15 +0000 (09:46 +0100)]
votequorum: always dispatch quorum notifications
Resolves: rhbz#768144
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 13 Dec 2011 14:06:18 +0000 (15:06 +0100)]
quorum: change API to return quorum type at initialization time
corosync internal theory of operation is that without a quorum provider
the cluster is always quorate. This is fine for membership free clusters
but it does pose a problem for applications that need membership and
"real" quorum.
this change add quorum_type to quorum_initialize call to return QUORUM_FREE
or QUORUM_SET. Applications can then make their own decisions to error out
or continue operating.
The only other way to know if a quorum provider is enabled/configured is
to poke at confdb/objdb, but adds an unnecessary burden to applications
that really don't need to use an entire library for a boolean value.
Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Angus Salkeld [Mon, 9 Jan 2012 21:32:16 +0000 (08:32 +1100)]
IPC: don't block forever on a recv msg as corosync might be gone.
This at least will not make the client hang forever.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Jan Friesse [Fri, 6 Jan 2012 09:13:18 +0000 (10:13 +0100)]
Add rrp faulty event to notifyd
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Jan Friesse [Fri, 6 Jan 2012 11:38:22 +0000 (12:38 +0100)]
Add usage text to cmapctl
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Jan Friesse [Fri, 6 Jan 2012 11:21:05 +0000 (12:21 +0100)]
Ability to display binary data type in cmapctl
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Jan Friesse [Fri, 6 Jan 2012 10:53:14 +0000 (11:53 +0100)]
Ability to store binary key
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Angus Salkeld [Mon, 9 Jan 2012 02:04:09 +0000 (13:04 +1100)]
Fix last corosync/engine/coroapi.h
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Steven Dake [Sat, 7 Jan 2012 01:15:17 +0000 (18:15 -0700)]
Add Requires: libxslt if BUILD_XMLCONF is defined
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkled <asalkeld@redhat.com>
Steven Dake [Fri, 6 Jan 2012 15:27:34 +0000 (08:27 -0700)]
Improve make rpm to work properly
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Fabio Di Nitto <fdinitto@redhat.com>
Steven Dake [Fri, 6 Jan 2012 15:14:41 +0000 (08:14 -0700)]
Move coroapi out of external headers
Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkled <asalkeld@redhat.com>