]> git.proxmox.com Git - mirror_corosync.git/log
mirror_corosync.git
12 years agoCTS: handle socket exceptions better
Angus Salkeld [Tue, 24 Jan 2012 23:56:26 +0000 (10:56 +1100)]
CTS: handle socket exceptions better

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoCTS: fix shell script variable name
Angus Salkeld [Tue, 24 Jan 2012 23:55:35 +0000 (10:55 +1100)]
CTS: fix shell script variable name

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoupdate TODO list
Fabio M. Di Nitto [Thu, 26 Jan 2012 13:26:34 +0000 (14:26 +0100)]
update TODO list

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
12 years agovotequorum: fix expected_votes propagation
Fabio M. Di Nitto [Thu, 26 Jan 2012 12:14:26 +0000 (13:14 +0100)]
votequorum: fix expected_votes propagation

it is not correct to randomly accept expected_votes from any node in
the cluster. We can only allow expected_votes from quorate nodes.

A quorate cluster is "always" right and have the correct expected_votes.

One of the different bug triggers:

quorum {
  expected_votes: 8
  auto_tie_breaker: 1
  last_man_standing: 1
}

start all 8 nodes.
clean shut down 2 nodes.
wait for lms to kick in.
kill 3 nodes with highest nodeid
(we want to retain a quorate partition of 3 nodes)
start one node again -> cluster will be unquorate

This happens because the node rebooting/rejoining with
non current cluster status will propagate an expected_votes of 8,
while in reality the cluster is down to expected_votes: 3.

4 nodes are still < 5 (quorum for 8 nodes/votes).

In order to avoid this condition, we need to exchange expected_votes
information among nodes but we cannot randomly trust everybody.

1) Allow expected_votes to be changed cluster-wide only if the
   information is coming from a quorate node.
2) Fix node->expected_votes based on quorate status
3) allow a joining node to decrease quorum and expected_votes
   if the node is not yet quorate, but it's joining a quorate
   cluster

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
12 years agovotequorum: fix auto_tie_breaker design and simplify code a lot
Fabio M. Di Nitto [Thu, 26 Jan 2012 11:22:47 +0000 (12:22 +0100)]
votequorum: fix auto_tie_breaker design and simplify code a lot

auto_tie_breaker requires to know the lowest node id in the currently
quorate partition and not of the whole cluster.

this allow us to determine the lowest node id as soon as we are quorate
and remove the complexity to read it from WFA or nodelist. Add
the same time it adds the flexibility for dynamic nodeids in a cluster.

drop requirement on WFA if nodelist is not specified

update man page

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
12 years agovotequorum: drop NODESTATE_LEAVING
Fabio M. Di Nitto [Thu, 26 Jan 2012 10:17:10 +0000 (11:17 +0100)]
votequorum: drop NODESTATE_LEAVING

this is another leftover from cman compatibility layer

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
12 years agoupdate TODO list
Fabio M. Di Nitto [Wed, 25 Jan 2012 12:16:07 +0000 (13:16 +0100)]
update TODO list

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
12 years agovotequorum: add documentation and man pages
Fabio M. Di Nitto [Wed, 25 Jan 2012 12:15:00 +0000 (13:15 +0100)]
votequorum: add documentation and man pages

fix a few typos on the way and separate config / library bits

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
12 years agovotequorum: change quorum.expected_votes override behavior
Fabio M. Di Nitto [Wed, 25 Jan 2012 11:08:47 +0000 (12:08 +0100)]
votequorum: change quorum.expected_votes override behavior

as agreed on the mailing list, quorum.expected_votes should override
automatically calculated expected_votes from nodelist.

Also simplify the code to handle expected_votes. "silly defaults" is now
unnecessary because votequorum does config sanity checks upfront.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
12 years agovotequorum: two_node should enable wait_for_all by default
Fabio M. Di Nitto [Wed, 25 Jan 2012 05:55:29 +0000 (06:55 +0100)]
votequorum: two_node should enable wait_for_all by default

This avoids fencing races at startup of a cluster.

It is still possible to override WFA by explicitly setting
wait_for_all: 0

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Angus Salkeld <asalkeld@redhat.com>
12 years agoCTS: make basic tests config-generic
Angus Salkeld [Tue, 24 Jan 2012 13:00:19 +0000 (00:00 +1100)]
CTS: make basic tests config-generic

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoCTS: fix starting/stopping of test_agents
Angus Salkeld [Tue, 24 Jan 2012 12:20:39 +0000 (23:20 +1100)]
CTS: fix starting/stopping of test_agents

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoCTS: tidy up the shutdown of cpg_test_agent
Angus Salkeld [Mon, 23 Jan 2012 02:51:32 +0000 (13:51 +1100)]
CTS: tidy up the shutdown of cpg_test_agent

it is not neccessary to close the fd and remove it
from the mainloop

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoCTS: temp comment out quorum tests
Angus Salkeld [Tue, 24 Jan 2012 12:57:31 +0000 (23:57 +1100)]
CTS: temp comment out quorum tests

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoCTS: fix quourm command
Angus Salkeld [Tue, 24 Jan 2012 12:21:04 +0000 (23:21 +1100)]
CTS: fix quourm command

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoCTS: fix up the formt strings
Angus Salkeld [Mon, 23 Jan 2012 04:19:31 +0000 (15:19 +1100)]
CTS: fix up the formt strings

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoAdd debug log messages to corosync for join/leave
Angus Salkeld [Tue, 24 Jan 2012 12:54:17 +0000 (23:54 +1100)]
Add debug log messages to corosync for join/leave

This is needed by cts.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoLOG: make sure that debug works to syslog
Angus Salkeld [Mon, 23 Jan 2012 05:51:55 +0000 (16:51 +1100)]
LOG: make sure that debug works to syslog

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agototemiba: Remove unused wthread.h include
Jan Friesse [Tue, 24 Jan 2012 12:38:47 +0000 (13:38 +0100)]
totemiba: Remove unused wthread.h include

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Angus Salkeld <asalkeld@redhat.com>
12 years agoMake xmlconf in SPEC conditional
Jan Friesse [Tue, 24 Jan 2012 12:33:48 +0000 (13:33 +0100)]
Make xmlconf in SPEC conditional

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Angus Salkeld <asalkeld@redhat.com>
12 years agoChange the last references from objctl to cmapctl v1.99.0
Angus Salkeld [Mon, 23 Jan 2012 22:46:40 +0000 (09:46 +1100)]
Change the last references from objctl to cmapctl

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
12 years agoUpdate TODO list
Fabio M. Di Nitto [Mon, 23 Jan 2012 10:12:28 +0000 (11:12 +0100)]
Update TODO list

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
12 years agovotequorum: add support for nodelist config bits
Fabio M. Di Nitto [Mon, 23 Jan 2012 10:06:47 +0000 (11:06 +0100)]
votequorum: add support for nodelist config bits

expected votes is now calculated automatically and quorum.expected_votes
can be used to override nodelist calculation. The highest of the two
value is used for runtime.

quorum_votes can be specified either in the node list or in quorum.votes.
The node list has priority over global.

propagate votequorum initalization errors (due to config inconsistencies)
back to vsf_quorum.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
12 years agoRemove all unneccessary "\n" from log messages
Angus Salkeld [Mon, 23 Jan 2012 01:31:59 +0000 (12:31 +1100)]
Remove all unneccessary "\n" from log messages

These look ugly, are inconsistently done and just have
to be removed later in libqb before calling syslog.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoShorten some really long lines in main.c
Angus Salkeld [Mon, 23 Jan 2012 01:02:55 +0000 (12:02 +1100)]
Shorten some really long lines in main.c

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agocmap: add a delete with prefix (needed by cts)
Angus Salkeld [Mon, 23 Jan 2012 00:35:23 +0000 (11:35 +1100)]
cmap: add a delete with prefix (needed by cts)

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agocmap: change -t and -T around (capital == with prefix)
Angus Salkeld [Mon, 23 Jan 2012 00:32:22 +0000 (11:32 +1100)]
cmap: change -t and -T around (capital == with prefix)

I want to add a prefic delete option and then these will
not be consistent.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agocmap: tweek the usage text
Angus Salkeld [Mon, 23 Jan 2012 00:29:46 +0000 (11:29 +1100)]
cmap: tweek the usage text

1) It wasn't obvious to me what -b did
2) -a has been removed

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agocmap: add a load option for cts "-p"
Angus Salkeld [Mon, 23 Jan 2012 00:27:56 +0000 (11:27 +1100)]
cmap: add a load option for cts "-p"

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoCTS: convert the test agents to use qb logging
Angus Salkeld [Mon, 23 Jan 2012 00:15:32 +0000 (11:15 +1100)]
CTS: convert the test agents to use qb logging

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoCTS: fix the corosync start/stop settings
Angus Salkeld [Mon, 23 Jan 2012 00:01:06 +0000 (11:01 +1100)]
CTS: fix the corosync start/stop settings

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoCTS: set the syslog restart commands up correctly
Angus Salkeld [Sun, 22 Jan 2012 23:59:50 +0000 (10:59 +1100)]
CTS: set the syslog restart commands up correctly

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoAdd nodelist informations to manual page
Jan Friesse [Thu, 19 Jan 2012 12:58:07 +0000 (13:58 +0100)]
Add nodelist informations to manual page

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoMake local_node ring0 address read-only
Jan Friesse [Thu, 19 Jan 2012 12:40:16 +0000 (13:40 +0100)]
Make local_node ring0 address read-only

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoSupport for dynamic nodelist udpu member change
Jan Friesse [Thu, 19 Jan 2012 10:26:10 +0000 (11:26 +0100)]
Support for dynamic nodelist udpu member change

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoUse nodeid provided in nodelist
Jan Friesse [Thu, 19 Jan 2012 10:06:56 +0000 (11:06 +0100)]
Use nodeid provided in nodelist

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoSupport udpu members in nodelist
Jan Friesse [Thu, 19 Jan 2012 09:51:56 +0000 (10:51 +0100)]
Support udpu members in nodelist

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoAdd local_node_pos icmap key
Jan Friesse [Wed, 18 Jan 2012 14:29:10 +0000 (15:29 +0100)]
Add local_node_pos icmap key

Key contains local node position in nodelist

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoParse nodelist in coroparse
Jan Friesse [Wed, 18 Jan 2012 11:05:57 +0000 (12:05 +0100)]
Parse nodelist in coroparse

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agomon: Remove leftover print of debug output to err
Jan Friesse [Wed, 18 Jan 2012 14:22:51 +0000 (15:22 +0100)]
mon: Remove leftover print of debug output to err

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Angus Salkeld <asalkeld@redhat.com>
12 years agoSet default multicast port if not specified
Jan Friesse [Mon, 16 Jan 2012 13:09:11 +0000 (14:09 +0100)]
Set default multicast port if not specified

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agovotequorum: drop protocol versioning in favour of extra space on the wire
Fabio M. Di Nitto [Thu, 19 Jan 2012 12:37:13 +0000 (13:37 +0100)]
votequorum: drop protocol versioning in favour of extra space on the wire

protocol needs to stay compatible across a corosync MAJOR release.
Implementing internal protocol version compat is at best suicidal.

Add extra space to the net struct and we can use flags to determine
feature sets.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
12 years agoautobuild: make sure systemd is enabled on f15+
Angus Salkeld [Wed, 18 Jan 2012 12:34:36 +0000 (23:34 +1100)]
autobuild: make sure systemd is enabled on f15+

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reriewed-by: Steven Dake <sdake@redhat.com>
12 years agoautobuild: ssh into node as root
Angus Salkeld [Wed, 18 Jan 2012 12:17:01 +0000 (23:17 +1100)]
autobuild: ssh into node as root

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com
12 years agoFix spec file when passed "--with-testagents"
Angus Salkeld [Wed, 18 Jan 2012 12:13:49 +0000 (23:13 +1100)]
Fix spec file when passed "--with-testagents"

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoCTS: remove the test service agent
Angus Salkeld [Wed, 18 Jan 2012 12:10:22 +0000 (23:10 +1100)]
CTS: remove the test service agent

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agovotequorum: ifdef qdiskd API out
Fabio M. Di Nitto [Wed, 18 Jan 2012 05:16:31 +0000 (06:16 +0100)]
votequorum: ifdef qdiskd API out

as agreed, the API has not been tested yet. Adding later is better than
removing it.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agovotequorum: be slightly more efficent and consistent
Fabio M. Di Nitto [Tue, 17 Jan 2012 21:35:08 +0000 (22:35 +0100)]
votequorum: be slightly more efficent and consistent

reduce req_exec_quorum_nodeinfo from 40 to 16 bytes (onwire)

add 4 bytes to req_exec_quorum_reconfigure to be consisent
with feature/version checking (onwire data)

make all nodeid definition "unsigned int" instead of some random mix.

reduce size of different vars

remove lots of unnecessary swab due to reducing size of data

drop join_time from cluster_node, it's never used

fix printing of nodeids from random mix to uint for consistency

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
12 years agoUpdate TODO with recent mcast addr changes
Jan Friesse [Mon, 16 Jan 2012 15:00:09 +0000 (16:00 +0100)]
Update TODO with recent mcast addr changes

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoStore auto generated mcast addr and port to icmap
Jan Friesse [Mon, 16 Jan 2012 13:58:34 +0000 (14:58 +0100)]
Store auto generated mcast addr and port to icmap

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoAdd cluster_name option
Jan Friesse [Mon, 16 Jan 2012 10:48:05 +0000 (11:48 +0100)]
Add cluster_name option

Option is used for automatic generating of multicast address. If both
cluster_name and mcastaddr options are specified, mcastaddr takes
precedence.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
12 years agoquorum: fix votequorum service initialization
Fabio M. Di Nitto [Tue, 17 Jan 2012 13:32:19 +0000 (14:32 +0100)]
quorum: fix votequorum service initialization

the problem is that votequorum was listed as part of default
services.

At service_link_and_init, votequorum library and exec were being
made available, even when votequorum was not in used at all, creating
all kind of problems.

By changing the service_link_and_init to be clever, we restore the
original and wanted behavior to link the service only when required.

This also fixed N*votequorum API calls segfaults, init segfaults
and a few dozen other small issues...

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
12 years agoquorumtool: fix node display regression in monitoring option
Fabio M. Di Nitto [Tue, 17 Jan 2012 11:49:32 +0000 (12:49 +0100)]
quorumtool: fix node display regression in monitoring option

make display_nodes code common with show_nodes

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
12 years agovotequorum: fix include to match definition name (cosmetic)
Fabio M. Di Nitto [Tue, 17 Jan 2012 11:05:33 +0000 (12:05 +0100)]
votequorum: fix include to match definition name (cosmetic)

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
12 years agoquorum: integrate votequorum and ykd correctly
Fabio M. Di Nitto [Tue, 17 Jan 2012 10:48:59 +0000 (11:48 +0100)]
quorum: integrate votequorum and ykd correctly

the problem is mostly in votequorum here, where votequorum_exec is
initialized with or without votequorum being configured as quorum
provider.

re-establish init order (regression from dropping lcrso) and make
sure we init correctly only the module configured.

ykd changes are for consistency only at this point in time.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
12 years agobuild: fix distcheck regression introduced from ykd binding
Fabio M. Di Nitto [Tue, 17 Jan 2012 10:17:24 +0000 (11:17 +0100)]
build: fix distcheck regression introduced from ykd binding

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
12 years agovotequorum: fix standalone build
Fabio M. Di Nitto [Tue, 17 Jan 2012 10:11:26 +0000 (11:11 +0100)]
votequorum: fix standalone build

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
12 years agomain: drop unrequired vars
Fabio M. Di Nitto [Tue, 17 Jan 2012 10:06:18 +0000 (11:06 +0100)]
main: drop unrequired vars

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
12 years agoquorum: link ykd back into quorum and fix build warning
Fabio M. Di Nitto [Tue, 17 Jan 2012 10:05:10 +0000 (11:05 +0100)]
quorum: link ykd back into quorum and fix build warning

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
12 years agovotequorum: check for parameters and return proper error
Fabio M. Di Nitto [Tue, 17 Jan 2012 10:04:35 +0000 (11:04 +0100)]
votequorum: check for parameters and return proper error

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
12 years agovsf_quorum: fix potential memory leak
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>
12 years agocoroparse: fix include path after drop lcrso merge
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>
12 years agoupdate .gitignore
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>
12 years agoSilent a warning from coverity about handle being used without assign
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>
12 years agoSilent a warning from coverity about icmap_track being used without assign
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>
12 years agoSilent a warning from coverity about icmap_track being used without assign
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>
12 years agoSilent a warning from coverity about icmap_track being used without assign
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>
12 years agoSilent a coverity warning about a variable being uninit when it actually is
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>
12 years agoSilent a coverity warning about handle being unset (when it really is)
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>
12 years agoSilent a warning from coverity about icmap_track being used without assign
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>
12 years agoSilent a warning from coverity about icmap_track being used without assign
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>
12 years agoSilent a warning from coverity about icmap_track being used without assign
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>
12 years agoSilent a warning from coverity about icmap_track being used without assign
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>
12 years agoSilent a warning from coverity about icmap_track being used without assign
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>
12 years agoSilent a warning from coverity about icmap_track being used without assign
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>
12 years agoAdd break where one was missing
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>
12 years agoRemove unchecked coverity error
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>
12 years agoFix missing rebase problem that causes make rpm to fail
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>
12 years agoAdd missing votequorum.h file from previous commit
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>
12 years agoRemove main_get_config_modules since it is no longer needed
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>
12 years agoFinish up quorum integration
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>
12 years agoRemove some lcr ifdef'ed code in service.c
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>
12 years agoRemove services directory from loc command
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>
12 years agoGet rid of external config loader in include/engine/config.h
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>
12 years agoRemove service.d directory since plugins are gone
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>
12 years agoRemove lcr directory, files, and references since it is no longer needed
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>
12 years agoInitial removal of plugins
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>
12 years agoMove cs_error into global header so that third party applications can use it
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>
12 years agovotequorum: fix name and version
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>
12 years agovotequorum: drop unused define
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>
12 years agovotequorum: rearrange code
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>
12 years agovotequorum/quorum-tools: drop unnecessary includes
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>
12 years agovotequorum: network data should be packed
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>
12 years agoUse fast inc for service statistics
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>
12 years agoicmap: Add fast version of inc and dec operation
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>
12 years agoFix spec file to reflect documentation changes
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>
12 years agoman: improve index.html a bit
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>
12 years agoman: sort interfaces alphabetically
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>
12 years agoman: cosmetic index.html changes
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>
12 years agoman: drop confdb from man pages
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>