[Openais] [PATCH 01/13] libqb: fix error conversion from errno to cs_error_t in confdb

2010-12-21 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- lib/confdb.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/confdb.c b/lib/confdb.c index 39732aa..b2b79d8 100644 --- a/lib/confdb.c +++ b/lib/confdb.c @@ -146,7 +146,7 @@ cs_error_t confdb_initialize

[Openais] [PATCH 03/13] libqb: add a cs_strerror() to get a more meaningful message

2010-12-21 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- lib/util.h | 99 1 files changed, 99 insertions(+), 0 deletions(-) diff --git a/lib/util.h b/lib/util.h index f581092..1d86deb 100644 --- a/lib/util.h +++ b/lib/util.h @@ -50,4

[Openais] [PATCH 02/13] libqb: change errno_to_cs to qb_to_cs_error

2010-12-21 Thread Angus Salkeld
--- include/corosync/corotypes.h |1 - lib/cfg.c| 30 +- lib/confdb.c | 47 - lib/cpg.c| 12 +- lib/pload.c |2 +- lib/quorum.c

[Openais] [PATCH 04/13] libqb: fix some confusing error conversions.

2010-12-21 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- exec/util.h |2 +- include/corosync/corotypes.h |4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/exec/util.h b/exec/util.h index 519254a..729ef34 100644 --- a/exec/util.h +++ b/exec/util.h

[Openais] [PATCH 08/13] CPG: fix cpg_finalize()

2010-12-21 Thread Angus Salkeld
It was failing with -ENOBUFS as we passed the incorrect size into the recv. Signed-off-by: Angus Salkeld asalk...@redhat.com --- lib/cpg.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/cpg.c b/lib/cpg.c index 9a463d4..0bbc61c 100644 --- a/lib/cpg.c +++ b/lib/cpg.c

[Openais] [PATCH 05/13] libqb: use the new cs_strerror() to print out the error message.

2010-12-21 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- tools/corosync-objctl.c | 73 +++--- 1 files changed, 43 insertions(+), 30 deletions(-) diff --git a/tools/corosync-objctl.c b/tools/corosync-objctl.c index f9bce65..0705bb1 100644 --- a/tools/corosync

[Openais] [PATCH 09/13] CPG: call disconnect even if corosync has gone.

2010-12-21 Thread Angus Salkeld
If corosync segfaults we will leak shared memory. Signed-off-by: Angus Salkeld asalk...@redhat.com --- lib/cpg.c |9 - 1 files changed, 0 insertions(+), 9 deletions(-) diff --git a/lib/cpg.c b/lib/cpg.c index 0bbc61c..560e04d 100644 --- a/lib/cpg.c +++ b/lib/cpg.c @@ -250,20 +250,11

[Openais] [PATCH 10/13] TEST: fix the print out when cpg_finalize() fails

2010-12-21 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- test/cpgbench.c |2 +- test/cpgbenchzc.c |5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/cpgbench.c b/test/cpgbench.c index aab29fa..efd0f28 100644 --- a/test/cpgbench.c +++ b/test/cpgbench.c @@ -190,7

[Openais] [PATCH 07/13] CTS: make test agent shutdown more gracefully

2010-12-21 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/agents/common_test_agent.c | 44 +++- cts/agents/common_test_agent.h |3 +- cts/agents/confdb_test_agent.c | 10 +-- cts/agents/cpg_test_agent.c| 33

[Openais] [PATCH 06/13] CTS: add an audit to check for leaking shared memory

2010-12-21 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/agents/Makefile.am |4 +- cts/agents/shm_leak_audit.sh | 47 ++ cts/corolab.py |3 +- cts/corosync.py | 39 ++ 4 files

[Openais] [PATCH 12/13] libqb: missing * QB_TIME_NS_IN_MSE

2010-12-21 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- exec/totemsrp.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/exec/totemsrp.c b/exec/totemsrp.c index 53d0b0f..29267dc 100644 --- a/exec/totemsrp.c +++ b/exec/totemsrp.c @@ -1432,7 +1432,7 @@ static void

[Openais] [PATCH 11/13] libqb: set the timeout on recv's to -1 (wait forever)

2010-12-21 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- include/corosync/corotypes.h |1 + lib/cfg.c| 28 +--- lib/confdb.c | 40 lib/cpg.c|4 ++-- lib/evs.c

[Openais] [PATCH 13/13] libqb: fix timer handle definition

2010-12-21 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- include/corosync/engine/coroapi.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/corosync/engine/coroapi.h b/include/corosync/engine/coroapi.h index 47962de..63aa97a 100644 --- a/include/corosync/engine

[Openais] topic-libqb patch series

2010-12-12 Thread Angus Salkeld
This improves the CTS test results (the messaging test now passes). The results are not perfect just yet, but we are getting there. Regards -Angus ___ Openais mailing list Openais@lists.linux-foundation.org

[Openais] [PATCH 01/17] AUGEAS: fix tags log field

2010-12-12 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- conf/lenses/corosync.aug|2 +- conf/lenses/tests/test_corosync.aug |4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/conf/lenses/corosync.aug b/conf/lenses/corosync.aug index f3257e9..b012742 100644

[Openais] [PATCH 03/17] CTS: impove debug during msgSend test

2010-12-12 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/agents/cpg_test_agent.c | 25 + 1 files changed, 17 insertions(+), 8 deletions(-) diff --git a/cts/agents/cpg_test_agent.c b/cts/agents/cpg_test_agent.c index 0e44adf..5922a19 100644 --- a/cts/agents

[Openais] [PATCH 06/17] CTS: add exit handler to test_agents

2010-12-12 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/agents/common_test_agent.c | 13 + cts/corosync.py|2 +- 2 files changed, 14 insertions(+), 1 deletions(-) diff --git a/cts/agents/common_test_agent.c b/cts/agents/common_test_agent.c index b3f4e04

[Openais] [PATCH 04/17] CPG: downgrade some log messages

2010-12-12 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- services/cpg.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/cpg.c b/services/cpg.c index be78676..dafa54e 100644 --- a/services/cpg.c +++ b/services/cpg.c @@ -789,11 +789,11 @@ static void

[Openais] [PATCH 07/17] libqb: add dispatch memory buffer

2010-12-12 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- exec/ipc_glue.c | 146 +- 1 files changed, 132 insertions(+), 14 deletions(-) diff --git a/exec/ipc_glue.c b/exec/ipc_glue.c index f34046d..9d6e8c8 100644 --- a/exec/ipc_glue.c +++ b/exec

[Openais] [PATCH 10/17] CTS: rename flatiron to needle

2010-12-12 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/corolab.py |4 ++-- cts/corosync.py |4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cts/corolab.py b/cts/corolab.py index 3541f47..d5d5241 100755 --- a/cts/corolab.py +++ b/cts/corolab.py @@ -118,8 +118,8

[Openais] [PATCH 05/17] CTS: add Too many open files to the BadNews pattern

2010-12-12 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/corosync.py |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/cts/corosync.py b/cts/corosync.py index 1df3851..8705b8d 100644 --- a/cts/corosync.py +++ b/cts/corosync.py @@ -132,6 +132,7 @@ class corosync_flatiron

[Openais] [PATCH 11/17] CTS: log cfg results

2010-12-12 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/agents/cpg_test_agent.c | 11 --- cts/corotests.py|7 +++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/cts/agents/cpg_test_agent.c b/cts/agents/cpg_test_agent.c index 5922a19..542dcf2 100644

[Openais] [PATCH 08/17] libqb: remove repeat try loop in lib/cpg.c

2010-12-12 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- lib/cpg.c |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/lib/cpg.c b/lib/cpg.c index c0c8954..48296c0 100644 --- a/lib/cpg.c +++ b/lib/cpg.c @@ -953,13 +953,7 @@ cs_error_t cpg_mcast_joined ( iov[0

[Openais] [PATCH 12/17] IPC: improve handling of async calls

2010-12-12 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- exec/ipc_glue.c | 49 - exec/main.c |8 +++- services/cpg.c | 10 +++--- 3 files changed, 46 insertions(+), 21 deletions(-) diff --git a/exec/ipc_glue.c b/exec/ipc_glue.c

[Openais] [PATCH 13/17] CTS: log bind() errors better

2010-12-12 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/agents/common_test_agent.c | 24 1 files changed, 20 insertions(+), 4 deletions(-) diff --git a/cts/agents/common_test_agent.c b/cts/agents/common_test_agent.c index 5d5f859..ceb311d 100644 --- a/cts/agents

[Openais] [PATCH 15/17] CTS: get GenStopAllBeekhof working a bit better

2010-12-12 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/corosync.py |1 + cts/corotests.py |7 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/cts/corosync.py b/cts/corosync.py index 1eb2716..18691c1 100644 --- a/cts/corosync.py +++ b/cts/corosync.py @@ -437,6

[Openais] [PATCH 14/17] CPG: fix zero copy mcast

2010-12-12 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/agents/cpg_test_agent.c |7 ++--- lib/cpg.c |2 +- services/cpg.c | 57 ++- 3 files changed, 60 insertions(+), 6 deletions(-) diff --git a/cts/agents

[Openais] [PATCH 16/17] CPG: use newer return codes

2010-12-12 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- services/cpg.c | 84 1 files changed, 42 insertions(+), 42 deletions(-) diff --git a/services/cpg.c b/services/cpg.c index 7610156..88e5eee 100644 --- a/services/cpg.c +++ b/services

[Openais] [PATCH 17/17] Add ENOTCONN to qb_to_cs_error()

2010-12-12 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- include/corosync/corotypes.h |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/include/corosync/corotypes.h b/include/corosync/corotypes.h index 8ac3859..df747c7 100644 --- a/include/corosync/corotypes.h +++ b/include

Re: [Openais] question abou qb_ipcs_msg_process_fn()

2010-12-09 Thread Angus Salkeld
On Thu, Dec 09, 2010 at 10:35:15AM +, Dietmar Maurer wrote: Hi all, Can we move this to the libqb mailing list? https://fedorahosted.org/mailman/listinfo/quarterback-devel I am playing around with libqb writing my first test server. Normal operation work quite good so far. I just

Re: [Openais] [PATCH] Add totem/interface/ttl config option.

2010-11-23 Thread Angus Salkeld
On Tue, Nov 23, 2010 at 07:53:06PM -0700, Steven Dake wrote: Good Work Reviewed-by: me applied. -Angus Regards -steve ___ Openais mailing list Openais@lists.linux-foundation.org https://lists.linux-foundation.org/mailman/listinfo/openais

Re: [Openais] status of topic-libqb branch cts testing

2010-11-18 Thread Angus Salkeld
Just to correct/clarify this should read: --- SCHED_RR --- The other thing is corosync-v2 does not work properly with SCHED_RR on a single CPU'ed VM so I have it commented it out in the code. I am not sure what to do about this right now but be aware. I can look into this a bit further

[Openais] [PATCH 3/6] CTS: test all with udpu config

2010-11-18 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/corotests.py | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/cts/corotests.py b/cts/corotests.py index 514ca3a..6b331ce 100644 --- a/cts/corotests.py +++ b/cts/corotests.py @@ -33,6 +33,7 @@ Copyright (c

[Openais] [PATCH 5/6] CTS: catch exception if pipe breaks

2010-11-18 Thread Angus Salkeld
else the remainder of the tests will not complete Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/corotests.py |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/cts/corotests.py b/cts/corotests.py index f456938..45a9269 100644 --- a/cts/corotests.py +++ b/cts

[Openais] [PATCH 4/6] CTS: support new pacemaker-cts API

2010-11-18 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/corosync.py |6 +++--- cts/corotests.py |2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cts/corosync.py b/cts/corosync.py index 7ba5bb4..c75989f 100644 --- a/cts/corosync.py +++ b/cts/corosync.py @@ -206,7

[Openais] [PATCH 2/6] CTS: make sure the config keys are sorted

2010-11-18 Thread Angus Salkeld
else this: totem/interface[1]/member[1]/memberaddr = x totem/interface[1]/member[3]/memberaddr = z totem/interface[1]/member[2]/memberaddr = y would result in 2 overwriting 3 Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/corosync.py |3 ++- 1 files changed, 2 insertions(+), 1

[Openais] [PATCH 01/13] CTS: support new pacemaker-cts

2010-11-16 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/.gitignore |1 + cts/corosync.py |8 cts/corotests.py |4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/cts/.gitignore b/cts/.gitignore index 6f99c8f..e9e3b0c 100644 --- a/cts/.gitignore +++ b

[Openais] [PATCH 04/13] CTS: increse wait for node to reboot

2010-11-16 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/corotests.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cts/corotests.py b/cts/corotests.py index 3b7e53e..623b75f 100644 --- a/cts/corotests.py +++ b/cts/corotests.py @@ -1240,7 +1240,7 @@ confirm watchdog

[Openais] [PATCH 06/13] libqb: use the main loop to shutdown

2010-11-16 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/agents/syncv2.c | 13 exec/ipc_glue.c |5 ++- exec/main.c | 77 +--- exec/service.c | 81 +- 4 files changed, 78

[Openais] [PATCH 08/13] libqb: only init IPC on service engines that need it.

2010-11-16 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- exec/ipc_glue.c | 17 + 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/exec/ipc_glue.c b/exec/ipc_glue.c index ff9b288..a8f0e92 100644 --- a/exec/ipc_glue.c +++ b/exec/ipc_glue.c @@ -203,7 +203,9 @@ static

[Openais] [PATCH 10/13] libqb: fix timer handles (don't alloc on stack)

2010-11-16 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/agents/cpg_test_agent.c |4 ++-- exec/ipc_glue.c |4 ++-- exec/main.c |3 ++- exec/totemsrp.c |2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/cts/agents

[Openais] [PATCH 12/13] libqb: fix valgring warnings in mon/wd

2010-11-16 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- services/mon.c |5 - services/wd.c | 17 + 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/services/mon.c b/services/mon.c index d07254d..6c068f6 100644 --- a/services/mon.c +++ b/services/mon.c

[Openais] [PATCH 11/13] libqb: add missing error conversions

2010-11-16 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- lib/evs.c| 24 lib/pload.c |4 ++-- lib/quorum.c |5 + lib/votequorum.c | 48 4 files changed, 39 insertions(+), 42 deletions(-) diff

[Openais] [PATCH 09/13] libqb: rip out objdb serialize locks

2010-11-16 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- exec/main.c | 38 --- exec/objdb.c | 96 -- 2 files changed, 0 insertions(+), 134 deletions(-) diff --git a/exec/main.c b/exec/main.c index c24b304..7778454

[Openais] [PATCH 13/13] libqb: fix iov_len in pcmk_test

2010-11-16 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/agents/cpg_test_agent.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cts/agents/cpg_test_agent.c b/cts/agents/cpg_test_agent.c index 3729fe9..a608844 100644 --- a/cts/agents/cpg_test_agent.c +++ b/cts/agents

Re: [Openais] More patches for the topic-libqb: branch

2010-11-16 Thread Angus Salkeld
On Tue, Nov 16, 2010 at 08:56:05AM -0700, Steven Dake wrote: On 11/16/2010 03:17 AM, Angus Salkeld wrote: These are fixes to problems found by our CTS tests. There are still some (4) test cases in need of sorting out. -Angus

[Openais] status of topic-libqb branch cts testing

2010-11-16 Thread Angus Salkeld
Hi This is just a status update on what I am doing on the topic-libqb branch. --- CTS --- I currently have 4 tests commented out (all others pass): 1] CpgMsgOrderBasic 2] CpgMsgOrderZcb - The issue here is qb_ipcs_event_send() returns try again as the ringbuffer is full. Steven remember

Re: [Openais] [PATCH 4/7] libqb: rip out unneccessary locks

2010-11-09 Thread Angus Salkeld
logsys in a seperate process we can. To simply convert logsys from pthead to process would not be difficult (I can investigate some more). - mainly objdb - confdb Angus Regards -steve On 11/08/2010 03:58 PM, Angus Salkeld wrote: Signed-off-by: Angus Salkeldasalk...@redhat.com --- exec

Re: [Openais] [PATCH 5/7] libqb: use the main loop to shutdown

2010-11-09 Thread Angus Salkeld
before returning 0). It would help having some logical test assertions. Angus Regards -steve On 11/08/2010 03:58 PM, Angus Salkeld wrote: Signed-off-by: Angus Salkeldasalk...@redhat.com --- cts/agents/syncv2.c | 13 +++ exec/main.c | 96

[Openais] [PATCH 5/7] libqb: use the main loop to shutdown

2010-11-08 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/agents/syncv2.c | 13 +++ exec/main.c | 96 --- exec/service.c | 79 -- 3 files changed, 80 insertions(+), 108 deletions(-) diff

[Openais] [PATCH 7/7] libqb: remove tsafe.c

2010-11-08 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- exec/Makefile.am |4 +- exec/main.c |4 - exec/tsafe.c | 1058 -- exec/tsafe.h | 43 --- 4 files changed, 2 insertions(+), 1107 deletions(-) delete mode 100644 exec

Re: [Openais] Corosync repo converted to git - read for policies

2010-10-21 Thread Angus Salkeld
- integration with libqb - main developer Angus Salkeld topic-rr - redundant ring hardening - main developer Steven Dake topic-snmp - snmp integration - main developer Steven Dake topic-udpu - udpu integration - main developer Steven Dake topic-onecrypt - make one crypto module for all totemnet

[Openais] [PATCH] Add .gitignore files.

2010-10-21 Thread Angus Salkeld
Otherwise git status is a pain. Signed-off-by: Angus Salkeld asalk...@redhat.com --- .gitignore | 19 +++ cts/.gitignore |2 ++ exec/.gitignore |1 + include/corosync/.gitignore |3 +++ init/.gitignore |1

[Openais] [PATCH] Add -i num-iterations to cpgverify

2010-10-21 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- test/cpgverify.c | 32 1 files changed, 24 insertions(+), 8 deletions(-) diff --git a/test/cpgverify.c b/test/cpgverify.c index c7b400a..56a9b8b 100644 --- a/test/cpgverify.c +++ b/test/cpgverify.c @@ -34,6

Re: [Openais] [PATCH] Add -n option to corosync-objctl to create a new object/key combo

2010-10-20 Thread Angus Salkeld
On Wed, Oct 20, 2010 at 02:16:56PM -0700, Steven Dake wrote: Find an existing parent object and add the last object/key name of the command to the object database. This allows the runtime addition of ip addresses to the list of IPs corosync knows about for the purpose of the UDPU transport

Re: [Openais] corosync objctl object+key creation

2010-10-11 Thread Angus Salkeld
On Mon, Oct 11, 2010 at 12:30:40PM -0700, Steven Dake wrote: The attached patch helps us add entries to the objdb to do things like tell corosync about new nodes when using udpu transport mode: Ack. [r...@mrg-02 ~]# corosync-objctl | grep interface totem.interface.ringnumber=0

[Openais] [PATCH] fix the continous build

2010-09-28 Thread Angus Salkeld
Hi I for got to update autobuild.sh to cater for the new configure options. -Angus Index: autobuild.sh === --- autobuild.sh(revision 3057) +++ autobuild.sh(working copy) @@ -26,7 +26,7 @@ ./autogen.sh echo 'running configure

Re: [Openais] [PATCH] fix the continous build

2010-09-28 Thread Angus Salkeld
On Tue, Sep 28, 2010 at 04:45:26PM -0700, Steven Dake wrote: On 09/28/2010 04:02 PM, Angus Salkeld wrote: Hi I for got to update autobuild.sh to cater for the new configure options. -Angus good to go committed. ___ Openais mailing

Re: [Openais] [PATCH 09/13] Add a Finite State Machine.

2010-09-27 Thread Angus Salkeld
On Sat, Sep 25, 2010 at 05:08:33PM +1000, Angus Salkeld wrote: On Fri, Sep 24, 2010 at 09:33:10AM -0700, Steven Dake wrote: On 09/23/2010 06:55 PM, Angus Salkeld wrote: Signed-off-by: Angus Salkeldasalk...@redhat.com --- exec/Makefile.am |2 +- exec/fsm.h | 125

Re: [Openais] [PATCH 12/13] AUG: add support for resources section quorum/quorate

2010-09-27 Thread Angus Salkeld
On Fri, Sep 24, 2010 at 09:42:42AM -0700, Steven Dake wrote: good for merge Committed. -Angus On 09/23/2010 06:55 PM, Angus Salkeld wrote: Signed-off-by: Angus Salkeldasalk...@redhat.com --- conf/lenses/corosync.aug| 32 +++- conf/lenses

Re: [Openais] [PATCH 13/13] CTS: add sam/wd integration tests.

2010-09-27 Thread Angus Salkeld
On Fri, Sep 24, 2010 at 09:43:08AM -0700, Steven Dake wrote: good for merge Committed. -Angus On 09/23/2010 06:55 PM, Angus Salkeld wrote: - fix send_dynamic() exception - fix basic sam integration test - fixup calls to sam tests - fix startup when using testquorum (currently only

[Openais] [PATCH] Check for a properly configured multicast address.

2010-09-27 Thread Angus Salkeld
If we are not in the range 224.0.0.0 - 239.255.255.255 then exit with a configuration error. (mcastaddr is not a correct multicast address.) -Angus Signed-off-by: Angus Salkeld asalk...@redhat.com --- exec/totemconfig.c |4 exec/totemip.c | 18

Re: [Openais] [PATCH 10/13] Add monitoring and watchdog services.

2010-09-27 Thread Angus Salkeld
On Mon, Sep 27, 2010 at 08:27:13AM -0700, Steven Dake wrote: On 09/25/2010 11:40 PM, Angus Salkeld wrote: On Fri, Sep 24, 2010 at 09:38:48AM -0700, Steven Dake wrote: This patch looks good but there are some poll apis used which are available via coroapi. Hi Yes, I have seperated

Re: [Openais] [PATCH 11/13] WD/SAM integration.

2010-09-27 Thread Angus Salkeld
On Fri, Sep 24, 2010 at 09:42:08AM -0700, Steven Dake wrote: good for merge Committed. -Angus On 09/23/2010 06:55 PM, Angus Salkeld wrote: - timestamps - uint64_t and in nanosecs - use clock_gettime - common object naming - common state names - timeouts in milliseconds Signed-off

Re: [Openais] [PATCH] Check for a properly configured multicast address.

2010-09-27 Thread Angus Salkeld
On Mon, Sep 27, 2010 at 02:43:42PM -0700, Steven Dake wrote: On 09/27/2010 02:19 PM, Angus Salkeld wrote: If we are not in the range 224.0.0.0 - 239.255.255.255 then exit with a configuration error. (mcastaddr is not a correct multicast address.) -Angus Signed-off-by: Angus Salkeldasalk

Re: [Openais] [PATCH 10/13] Add monitoring and watchdog services.

2010-09-26 Thread Angus Salkeld
for the stats (you were initially concerned about blocking calls). In my next patch I remove the pthread and change the poll_() calls to api-timer..() calls. If you want I can squash these into one patch. -Angus Regards -steve On 09/23/2010 06:55 PM, Angus Salkeld wrote: Signed-off

Re: [Openais] [PATCH 02/13] add float and double support to corosync-objctl

2010-09-25 Thread Angus Salkeld
On Fri, Sep 24, 2010 at 09:25:54AM -0700, Steven Dake wrote: On 09/23/2010 06:55 PM, Angus Salkeld wrote: Signed-off-by: Angus Salkeldasalk...@redhat.com --- tools/corosync-objctl.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/tools/corosync-objctl.c b

Re: [Openais] [PATCH 01/13] CPG: remove irratating log downlist received left_list:

2010-09-25 Thread Angus Salkeld
On Fri, Sep 24, 2010 at 09:24:31AM -0700, Steven Dake wrote: On 09/23/2010 06:55 PM, Angus Salkeld wrote: Signed-off-by: Angus Salkeldasalk...@redhat.com --- services/cpg.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/services/cpg.c b/services/cpg.c index

Re: [Openais] [PATCH 03/13] objdb: fix some strange types (uint8_t* - void*).

2010-09-25 Thread Angus Salkeld
good for merge Committed. ___ Openais mailing list Openais@lists.linux-foundation.org https://lists.linux-foundation.org/mailman/listinfo/openais

Re: [Openais] [PATCH 04/13] objdb: object_created_notification() fix the order of the parent and object handles.

2010-09-25 Thread Angus Salkeld
good for merge Committed. ___ Openais mailing list Openais@lists.linux-foundation.org https://lists.linux-foundation.org/mailman/listinfo/openais

Re: [Openais] [PATCH 05/13] objdb: delete trackers when an object is deleted

2010-09-25 Thread Angus Salkeld
On Fri, Sep 24, 2010 at 09:27:56AM -0700, Steven Dake wrote: On 09/23/2010 06:55 PM, Angus Salkeld wrote: good for merge Committed. ___ Openais mailing list Openais@lists.linux-foundation.org https://lists.linux-foundation.org/mailman/listinfo

Re: [Openais] [PATCH 08/13] configure: cleanup formatting.

2010-09-25 Thread Angus Salkeld
On Fri, Sep 24, 2010 at 09:31:55AM -0700, Steven Dake wrote: On 09/23/2010 06:55 PM, Angus Salkeld wrote: Signed-off-by: Angus Salkeldasalk...@redhat.com --- configure.ac | 16 1 files changed, 8 insertions(+), 8 deletions(-) good for merge committed

Re: [Openais] [PATCH 09/13] Add a Finite State Machine.

2010-09-25 Thread Angus Salkeld
On Fri, Sep 24, 2010 at 09:33:10AM -0700, Steven Dake wrote: On 09/23/2010 06:55 PM, Angus Salkeld wrote: Signed-off-by: Angus Salkeldasalk...@redhat.com --- exec/Makefile.am |2 +- exec/fsm.h | 125 ++ 2 files changed

[Openais] Watchdog and Monitoring services

2010-09-23 Thread Angus Salkeld
=corosync-angus.git;a=shortlog;h=refs/heads/watchdog1 Regards Angus Salkeld ___ Openais mailing list Openais@lists.linux-foundation.org https://lists.linux-foundation.org/mailman/listinfo/openais

[Openais] [PATCH 05/13] objdb: delete trackers when an object is deleted

2010-09-23 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- exec/objdb.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/exec/objdb.c b/exec/objdb.c index ecb8547..73fc8c7 100644 --- a/exec/objdb.c +++ b/exec/objdb.c @@ -672,6 +672,7 @@ static int _clear_object

[Openais] [PATCH 02/13] add float and double support to corosync-objctl

2010-09-23 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- tools/corosync-objctl.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/tools/corosync-objctl.c b/tools/corosync-objctl.c index 693c312..f9bce65 100644 --- a/tools/corosync-objctl.c +++ b/tools/corosync-objctl.c

[Openais] [PATCH 06/13] objdb: fix some ugly indentation.

2010-09-23 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- exec/objdb.c | 168 +- 1 files changed, 84 insertions(+), 84 deletions(-) diff --git a/exec/objdb.c b/exec/objdb.c index 73fc8c7..dc36236 100644 --- a/exec/objdb.c +++ b/exec/objdb.c

[Openais] [PATCH 01/13] CPG: remove irratating log downlist received left_list:

2010-09-23 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- services/cpg.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/services/cpg.c b/services/cpg.c index 94f29eb..a0336ed 100644 --- a/services/cpg.c +++ b/services/cpg.c @@ -1031,10 +1031,6 @@ static void

[Openais] [PATCH 08/13] configure: cleanup formatting.

2010-09-23 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- configure.ac | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index 59078ea..b57fdd2 100644 --- a/configure.ac +++ b/configure.ac @@ -216,15 +216,15 @@ LIB_SONAME_IMPORT

[Openais] [PATCH 09/13] Add a Finite State Machine.

2010-09-23 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- exec/Makefile.am |2 +- exec/fsm.h | 125 ++ 2 files changed, 126 insertions(+), 1 deletions(-) create mode 100644 exec/fsm.h diff --git a/exec/Makefile.am b/exec/Makefile.am

[Openais] [PATCH 04/13] objdb: object_created_notification() fix the order of the parent and object handles.

2010-09-23 Thread Angus Salkeld
No one must be using this as the parent is passed into object_handle and visa-versa. Signed-off-by: Angus Salkeld asalk...@redhat.com --- exec/objdb.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/exec/objdb.c b/exec/objdb.c index 92b0205..ecb8547 100644

[Openais] [PATCH 03/13] objdb: fix some strange types (uint8_t* - void*).

2010-09-23 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- include/corosync/engine/coroapi.h |4 ++-- include/corosync/engine/objdb.h | 18 +- services/confdb.c |8 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/include/corosync

[Openais] [PATCH 12/13] AUG: add support for resources section quorum/quorate

2010-09-23 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- conf/lenses/corosync.aug| 32 +++- conf/lenses/tests/test_corosync.aug | 24 2 files changed, 55 insertions(+), 1 deletions(-) diff --git a/conf/lenses/corosync.aug b/conf

[Openais] [PATCH 11/13] WD/SAM integration.

2010-09-23 Thread Angus Salkeld
- timestamps - uint64_t and in nanosecs - use clock_gettime - common object naming - common state names - timeouts in milliseconds Signed-off-by: Angus Salkeld asalk...@redhat.com --- include/corosync/corotypes.h | 33 +- lib/sam.c| 15 +-- man/sam_overview.8

[Openais] [PATCH 10/13] Add monitoring and watchdog services.

2010-09-23 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- configure.ac| 36 ++ corosync.spec.in| 14 + exec/Makefile.am|2 +- exec/service.c | 12 + include/corosync/corodefs.h |4 +- services/Makefile.am|6 + services

[Openais] [PATCH 07/13] SAM Confdb integration

2010-09-23 Thread Angus Salkeld
results (specially with integration with corosync watchdog) Signed-off-by: Angus Salkeld asalk...@redhat.com Signed-off-by: Jan Friesse jfrie...@redhat.com Signed-off-by: Angus Salkeld asalk...@redhat.com --- cts/agents/Makefile.am |2 +- include/corosync/sam.h | 13 + lib/Makefile.am

Re: [Openais] cpg checkpoint functionality

2010-09-21 Thread Angus Salkeld
On Tue, Sep 21, 2010 at 02:32:18PM -0700, Steven Dake wrote: Attached is a brief patch which exposes some new APIs and callbacks I am considering adding to the CPG interface. The general use for this is to synchronize state after a configuration change. The initialization is as follows:

[Openais] [PATCH] object_created_notification: fix the order of the parent and object handles.

2010-09-14 Thread Angus Salkeld
No one must be using this as the parent is passed into object_handle and visa-versa. Signed-off-by: Angus Salkeld asalk...@redhat.com --- exec/objdb.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/exec/objdb.c b/exec/objdb.c index 92b0205..ecb8547 100644

[Openais] [PATCH] Fix configure tests for rdma

2010-08-24 Thread Angus Salkeld
Infiniband libraries don't currently have .pc files so the configure always fails. This uses more basic tests to determine it's presence. -Angus Signed-off-by: Angus Salkeld asalk...@redhat.com --- configure.ac | 14 -- 1 files changed, 12 insertions(+), 2 deletions(-) diff

Re: [Openais] [PATCH 1/2] POLL: gracefully handle running out of file descriptors.

2010-08-24 Thread Angus Salkeld
On Tue, Aug 24, 2010 at 01:34:12PM -0700, Steven Dake wrote: Looks good for commit - can you bump up the 20 limit to something more, like perhaps 50? Ok, bumped to 50 and committed. -Angus Thanks -steve On 08/23/2010 07:21 PM, Angus Salkeld wrote: These 2 patches result in the library

Re: [Openais] [PATCH 2/2] IPC: return CS_ERR_NO_RESOURCES to library when low on fds

2010-08-24 Thread Angus Salkeld
On Tue, Aug 24, 2010 at 01:35:49PM -0700, Steven Dake wrote: good for commit Committed. -Angus regards -steve On 08/23/2010 07:22 PM, Angus Salkeld wrote: Signed-off-by: Angus Salkeldasalk...@redhat.com --- exec/coroipcs.c | 50

[Openais] [PATCH 2/2] IPC: return CS_ERR_NO_RESOURCES to library when low on fds

2010-08-23 Thread Angus Salkeld
Signed-off-by: Angus Salkeld asalk...@redhat.com --- exec/coroipcs.c | 50 +++--- exec/main.c |4 +++- exec/util.h | 21 + lib/util.h |6 ++ 4 files changed, 61 insertions(+), 20 deletions(-) diff --git

[Openais] [PATCH 1/2] POLL: gracefully handle running out of file descriptors.

2010-08-23 Thread Angus Salkeld
These 2 patches result in the library returning NO_RESOURCES when corosync is running out of file descriptors. I think it's better... -Angus Signed-off-by: Angus Salkeld asalk...@redhat.com --- exec/coropoll.c | 69 + exec/main.c

Re: [Openais] Configurability of Corosync

2010-08-11 Thread Angus Salkeld
On Thu, Aug 12, 2010 at 08:30:17AM +0530, Sampathkumar, Kishore wrote: On Saturday, August 07, 2010 10:49 PM, Steven Dake wrote: + + On 08/05/2010 03:13 AM, Sampathkumar, Kishore wrote: + Hi, + + I wanted to understand what aspects of Corosync are configurable today. + + So far, what

[Openais] [PATCH corosync trunk] IPC: gracefully handle running out of file descriptors.

2010-08-08 Thread Angus Salkeld
Whenever we accept a new connection or close an existing one, check the number of available file descriptors and either publish or withdraw the IPC listening socket. Signed-off-by: Angus Salkeld asalk...@redhat.com --- exec/coroipcs.c | 104

[Openais] [PATCH openais whitetank] IPC: gracefully handle running out of file descriptors. (version

2010-08-08 Thread Angus Salkeld
Whenever we accept a new connection or close an existing one, check the number of available file descriptors and either publish or withdraw the IPC listening socket. Signed-off-by: Angus Salkeld asalk...@redhat.com --- exec/ipc.c | 92

Re: [Openais] [PATCH openais whitetank] IPC: gracefully handle running out of file descriptors. (version

2010-08-08 Thread Angus Salkeld
PM, Angus Salkeld wrote: Whenever we accept a new connection or close an existing one, check the number of available file descriptors and either publish or withdraw the IPC listening socket. Signed-off-by: Angus Salkeldasalk...@redhat.com --- exec/ipc.c | 92

Re: [Openais] corosync syslog dependencies

2010-08-06 Thread Angus Salkeld
On Fri, Aug 06, 2010 at 11:06:14AM +0200, Alain.Moulle wrote: Hi, About corosync Pacemaker use : in my current release on RHEL6 : corosync-1.2.1-2.el6.x86_64 , the start of corosync requires the service syslog-ng to be started before, otherwise, corosync does not start correctly (and

Re: [Openais] Configurability of Corosync

2010-08-05 Thread Angus Salkeld
On Thu, Aug 05, 2010 at 03:43:52PM +0530, Sampathkumar, Kishore wrote: Hi, I wanted to understand what aspects of Corosync are configurable today. So far, what I have found is the following: - ENVIRONMENT VARIABLES listed in corosync_overview(8) man page - All configurable values

[Openais] [PATCH openais whitetank] IPC: handle maximum use of file descriptors gracefully.

2010-08-04 Thread Angus Salkeld
If we get EMFILE from accept() then withdraw the published server listening socket. Then when a connection closes see if we need to re-publish the server sockect. I'll need a bit more testing, but posting for review. Signed-off-by: Angus Salkeld asalk...@redhat.com --- exec/ipc.c | 161

<    1   2   3   4   5   6   >