]> git.proxmox.com Git - mirror_corosync.git/log
mirror_corosync.git
13 years agoAdd calls to pthread_attr_destroy().
Russell Bryant [Tue, 15 Feb 2011 02:51:29 +0000 (20:51 -0600)]
Add calls to pthread_attr_destroy().

This patch adds a couple of missing calls to pthread_attr_destroy().

There were a couple of instances where pthread_attr_init() was being
used without a cooresponding call to pthread_attr_destroy().  This also
localizes the pthread_attr_t to the function where it is needed instead
of having it persist (the man page specifically states that destroying
the attributes structure has no effect on threads created using the
attributes).

Signed-off-by: Russell Bryant <russell@russellbryant.net>
Reviewed-by: Steven Dake <sdake@redhat.com>
13 years agoCTS: wait (consistently) for 15 minutes for events
Angus Salkeld [Mon, 14 Feb 2011 02:40:17 +0000 (13:40 +1100)]
CTS: wait (consistently) for 15 minutes for events

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoautobuild: clean the build dir first.
Angus Salkeld [Sun, 13 Feb 2011 21:13:36 +0000 (08:13 +1100)]
autobuild: clean the build dir first.

This deletes files like .version that cause problems.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoCTS: temp remove troublesome tests.
Angus Salkeld [Fri, 11 Feb 2011 05:57:49 +0000 (16:57 +1100)]
CTS: temp remove troublesome tests.

Right I know - not so good to comment out tests.
BUT they are passing but there is some weirdness
in ssh reconnecting to these nodes that causes CTS false
negatives.
So the nodes are watchdogged (as expected) but when they come
back up cts gets stuck in a loop re-trying to ssh into
them. It odd as a manual ssh works fine.

Basically I think it's more important the we get reliable
testing than have these test in there.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
13 years agoMake node state a string (not an integer)
Angus Salkeld [Sat, 5 Feb 2011 08:38:04 +0000 (19:38 +1100)]
Make node state a string (not an integer)

Ryan noticed this inconsistency, all other status's
are string so this should be too.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Seven Dake <sdake@redhat.com>
Reviewed-by: Ryan O'Hara <rohara@redhat.com>
13 years agoCONFDB: fix parent_get response id
Angus Salkeld [Wed, 12 Jan 2011 02:28:12 +0000 (13:28 +1100)]
CONFDB: fix parent_get response id

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Seven Dake <sdake@redhat.com>
13 years agoMIB: expand the descriptions of the notifications
Angus Salkeld [Thu, 3 Feb 2011 23:46:00 +0000 (10:46 +1100)]
MIB: expand the descriptions of the notifications

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
13 years agoMatch up MIB to notifyd & add SNMP quorum events
Lon Hohberger [Fri, 28 Jan 2011 23:56:13 +0000 (18:56 -0500)]
Match up MIB to notifyd & add SNMP quorum events

Signed-off-by: Lon Hohberger <lhh@redhat.com>
Reviewed-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoMake SNMP MIB match what is being sent over DBUS
Lon Hohberger [Fri, 28 Jan 2011 23:55:34 +0000 (18:55 -0500)]
Make SNMP MIB match what is being sent over DBUS

Signed-off-by: Lon Hohberger <lhh@redhat.com>
Reviewed-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoAdd dbus and snmp notifier
Angus Salkeld [Wed, 12 Jan 2011 09:40:00 +0000 (20:40 +1100)]
Add dbus and snmp notifier

This is to send dbus events on major cluster events:
 - membership changes
 - application connect/dissconnet from corosync
 - quorum changes

dbus events can then be converted into snmp traps by foghorn or
corosync-notifyd can be run to directly send snmp traps.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Signed-off-by: Lon Hohberger <lhh@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Russell Bryant <russell@russellbryant.net>
Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
13 years agoCONFDB: add confdb_object_name_get()
Angus Salkeld [Wed, 12 Jan 2011 02:27:35 +0000 (13:27 +1100)]
CONFDB: add confdb_object_name_get()

This is useful when tracking object changes.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Seven Dake <sdake@redhat.com>
13 years agoSTATS: fix key name length on "join_count"
Angus Salkeld [Wed, 12 Jan 2011 02:26:05 +0000 (13:26 +1100)]
STATS: fix key name length on "join_count"

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Seven Dake <sdake@redhat.com>
13 years agoSTATS: increase the space for application names
Angus Salkeld [Wed, 12 Jan 2011 02:25:31 +0000 (13:25 +1100)]
STATS: increase the space for application names

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Seven Dake <sdake@redhat.com>
13 years agoHandle "nocluster" kernel parameter in init script
Jan Friesse [Fri, 28 Jan 2011 10:00:20 +0000 (11:00 +0100)]
Handle "nocluster" kernel parameter in init script

Init script checks kernel parameters and refuses to start corosync if
nocluster parameter exist on boot time. The init script will
continue to work as expected from console/tty after boot.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
13 years agoAdd objdb firewall_enabled_or_nic_failure
Jan Friesse [Mon, 10 Jan 2011 13:40:27 +0000 (14:40 +0100)]
Add objdb firewall_enabled_or_nic_failure

New objdb var runtime.totem.pg.mrp.srp.firewall_enabled_or_nic_failure
is set to 1 if continuous_gather is larger then MAX_NO_CONT_GATHER.
Under normal conditions, value of variable is 0.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
13 years agoAdd missing entries into .gitignore
Angus Salkeld [Mon, 10 Jan 2011 23:59:02 +0000 (10:59 +1100)]
Add missing entries into .gitignore

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
13 years agoremove unused function declaration
Angus Salkeld [Mon, 10 Jan 2011 23:56:24 +0000 (10:56 +1100)]
remove unused function declaration

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
13 years agofix timersub warning on freebsd
Angus Salkeld [Mon, 10 Jan 2011 23:55:56 +0000 (10:55 +1100)]
fix timersub warning on freebsd

Make them all protected by #ifndef timersub

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
13 years agoHandle delayed multicast packets that occur with switches
Steven Dake [Mon, 10 Jan 2011 17:33:34 +0000 (10:33 -0700)]
Handle delayed multicast packets that occur with switches

Some switches delay multicast packets vs the unicast token.  This patch works
around that problem by providing a new tuneable called miss_count_const.  This
tuneable works by counting the number of times a message is found missing
and once reaching the const value, marks it as missing in the retransmit list.

This improves performance and doesn't display warning messages about missed
multicast messages when operating in these switching environments.

Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoCPG: make sure coroipcc_service_disconnect() is always called.
Angus Salkeld [Wed, 22 Dec 2010 23:30:11 +0000 (10:30 +1100)]
CPG: make sure coroipcc_service_disconnect() is always called.

This prevents a shared mem leak if corosync dies while clients
are connected.

Calling cpg_finalize() did not release the shared mem as
coroipcc_msg_send_reply_receive() returned an error and
thus coroipcc_service_disconnect() did not get called.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
13 years agoIPC: send failure message to client if memory maps fail
Angus Salkeld [Wed, 22 Dec 2010 03:02:40 +0000 (14:02 +1100)]
IPC: send failure message to client if memory maps fail

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
13 years agoDisplay warning when not possible to form cluster
Jan Friesse [Thu, 2 Dec 2010 13:35:00 +0000 (14:35 +0100)]
Display warning when not possible to form cluster

This may typically happen if local firewall is enabled. Patch adds new
item to statistics called continuous_gather where is number of
continuous entered gather state. If this number is bigger then
MAX_NO_CONT_GATHER, warning message is displayed. This is also used on
exiting, so stop of corosync is now possible even with enabled firewall.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
13 years agobuild: fix make srpm from release tarball
Fabio M. Di Nitto [Wed, 1 Dec 2010 18:31:44 +0000 (19:31 +0100)]
build: fix make srpm from release tarball

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
13 years agobuild: fix rpm build to include corosync-blackbox
Fabio M. Di Nitto [Wed, 1 Dec 2010 18:31:45 +0000 (19:31 +0100)]
build: fix rpm build to include corosync-blackbox

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
13 years agoRevert "Always autogen the tree when building an RPM"
Steven Dake [Wed, 1 Dec 2010 18:18:19 +0000 (11:18 -0700)]
Revert "Always autogen the tree when building an RPM"

This reverts commit d145838a21fb636461a2bceeada34db439f4a9ec.

13 years agoAlways autogen the tree when building an RPM
Steven Dake [Wed, 1 Dec 2010 17:27:06 +0000 (10:27 -0700)]
Always autogen the tree when building an RPM

Since the source tarball never includes the autogen'ed tree in the new source
repo methodology, always autogen the tree.

Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoSet the max buffer size for sockets
Steven Dake [Wed, 1 Dec 2010 16:27:14 +0000 (09:27 -0700)]
Set the max buffer size for sockets

Set the recv buffer to a large size and the send buffer to a large size to
allow the kernel to store more messages before dropping messages.

Amended to change optlen type to socklen_t

Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
13 years agoThe flushing code was introducing data corruption because of recursion errors
Steven Dake [Sun, 28 Nov 2010 08:45:08 +0000 (01:45 -0700)]
The flushing code was introducing data corruption because of recursion errors
that occur as a result of the design of udpu.  Totem no longer requires
the flushing technique because we don't mark a packet as missing until it has
not been seen by a certain number of token rotations per a previous patch.  This
mechanism was introduced to work around a problem in switches where multicast
messages may be delayed by long periods compared to the unicast token.

This patch removes the flushing logic from udpu since it is no longer necessary.

Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoAdd totem/interface/ttl config option.
Angus Salkeld [Wed, 24 Nov 2010 03:35:56 +0000 (14:35 +1100)]
Add totem/interface/ttl config option.

This adds a per-interface config option to
adjust the TTL.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
13 years agobuild: fix makefile to ship corosync.conf.example.udpu
Fabio M. Di Nitto [Fri, 19 Nov 2010 08:21:47 +0000 (09:21 +0100)]
build: fix makefile to ship corosync.conf.example.udpu

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by Angus Salkeld <asalkeld@redhat.com>

13 years agoMerge branch 'topic-udpu'
Steven Dake [Thu, 18 Nov 2010 22:03:19 +0000 (15:03 -0700)]
Merge branch 'topic-udpu'

Conflicts:
Makefile.am

Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoRemove dead soresueaddr code
Steven Dake [Thu, 18 Nov 2010 21:51:17 +0000 (14:51 -0700)]
Remove dead soresueaddr code

Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoAdd the UDPU transport
Steven Dake [Thu, 18 Nov 2010 16:31:49 +0000 (09:31 -0700)]
Add the UDPU transport

The UDPU transport is useful for those deployments which can't use multicast.
UDPU works by using UDP unicast, which is fully supported by every switch
manufacturer by default and doesn't rely on a functional IGMP implementation.

An example of the UDPU transport is contained in the corosync.conf.example.udpu
file which shows a 16 node cluster.  This file should be copied to each node
in the cluster and IP addresses changed as appropriate.

Amended to remove dead udpu REUSEADDR socket option.

Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agobuild: fix spec file and srpm/rpm generation
Fabio M. Di Nitto [Wed, 10 Nov 2010 16:31:36 +0000 (17:31 +0100)]
build: fix spec file and srpm/rpm generation

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
13 years agoadd release script and git based versioning
Fabio M. Di Nitto [Wed, 10 Nov 2010 14:36:31 +0000 (15:36 +0100)]
add release script and git based versioning

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
13 years agoMerge branch 'master', remote branch 'origin/master'
Steven Dake [Wed, 10 Nov 2010 14:08:54 +0000 (07:08 -0700)]
Merge branch 'master', remote branch 'origin/master'

13 years agoAdd license information to LICENSE file about build process files
Steven Dake [Wed, 10 Nov 2010 04:49:58 +0000 (21:49 -0700)]
Add license information to LICENSE file about build process files

A few files licensed under GPLv3+ produce text output but are not used as
part of the runtime or libraries provided by Corosync.  Make that notification
in the LICENSE file.

Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Fabio Di Nitto <fdinitto@redhat.com>
13 years agoAdd -i <num-iterations> to cpgverify
Angus Salkeld [Thu, 21 Oct 2010 23:29:31 +0000 (10:29 +1100)]
Add -i <num-iterations> to cpgverify

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
13 years agoNew topic descriptions based upon work community wants to do
Steven Dake [Thu, 21 Oct 2010 22:44:00 +0000 (15:44 -0700)]
New topic descriptions based upon work community wants to do

This file describes the topics of interest for development, their start and
finish date, their main developer, and a description of the topic.

Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoAdd .gitignore files.
Angus Salkeld [Thu, 21 Oct 2010 09:31:17 +0000 (20:31 +1100)]
Add .gitignore files.

Otherwise "git status" is a pain.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@edhat.com>
13 years agoAdd -n option to corosync-objctl to create a new object/key combo
Steven Dake [Wed, 20 Oct 2010 21:16:56 +0000 (14:16 -0700)]
Add -n option to corosync-objctl to create a new object/key combo

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 mode.

Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoRemove delay in library on corosync shutdown
Jan Friesse [Tue, 12 Oct 2010 13:03:37 +0000 (13:03 +0000)]
Remove delay in library on corosync shutdown

Patch removes 2 seconds delay in library on normal corosync shutdown.
Delay is still present on abnormal shutdown.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3059 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoautobuild: fix the continous build
Angus Salkeld [Tue, 28 Sep 2010 23:42:57 +0000 (23:42 +0000)]
autobuild: fix the continous build

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3058 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoCheck for a properly configured multicast address.
Angus Salkeld [Mon, 27 Sep 2010 22:41:26 +0000 (22:41 +0000)]
Check for a properly configured multicast address.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3057 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoCTS: add sam/wd integration tests.
Angus Salkeld [Mon, 27 Sep 2010 21:14:59 +0000 (21:14 +0000)]
CTS: add sam/wd integration tests.

- fix send_dynamic() exception
- fix basic sam integration test
- fixup calls to sam tests
- fix startup when using testquorum (currently only handles votequorum)
- improve SAM test case with better checking.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3056 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoAUG: add support for resources section & quorum/quorate
Angus Salkeld [Mon, 27 Sep 2010 21:14:06 +0000 (21:14 +0000)]
AUG: add support for resources section & quorum/quorate

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3055 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoWD/SAM integration.
Angus Salkeld [Mon, 27 Sep 2010 21:13:15 +0000 (21:13 +0000)]
WD/SAM integration.

- timestamps -> uint64_t and in nanosecs
- use clock_gettime
- common object naming
- common state names
- timeouts in milliseconds

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3054 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoAdd monitoring and watchdog services.
Angus Salkeld [Mon, 27 Sep 2010 21:12:03 +0000 (21:12 +0000)]
Add monitoring and watchdog services.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3053 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoAdd a Finite State Machine.(fsm.h)
Angus Salkeld [Mon, 27 Sep 2010 21:11:04 +0000 (21:11 +0000)]
Add a Finite State Machine.(fsm.h)

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3052 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoAdd a Finite State Machine.
Angus Salkeld [Mon, 27 Sep 2010 21:08:01 +0000 (21:08 +0000)]
Add a Finite State Machine.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3051 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoSAM Confdb integration
Jan Friesse [Mon, 27 Sep 2010 07:34:21 +0000 (07:34 +0000)]
SAM Confdb integration

Patch add support for Confdb integration with SAM. It's now possible to
use SAM_RECOVERY_POLICY_CONFDB as flag to previous policies.

Also new function sam_mark_failed is added for ability to use RECOVERY
policy together with confdb and get expected results (specially with
integration with corosync watchdog)

Patch also makes SAM thread safe.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3050 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoconfigure: cleanup formatting.
Angus Salkeld [Sat, 25 Sep 2010 07:05:54 +0000 (07:05 +0000)]
configure: cleanup formatting.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3049 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoobjdb: fix some ugly indentation.
Angus Salkeld [Sat, 25 Sep 2010 06:51:36 +0000 (06:51 +0000)]
objdb: fix some ugly indentation.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3048 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoobjdb: delete trackers when an object is deleted
Angus Salkeld [Sat, 25 Sep 2010 06:50:21 +0000 (06:50 +0000)]
objdb: delete trackers when an object is deleted

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3047 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoobjdb: object_created_notification() fix the order of the parent and object handles.
Angus Salkeld [Sat, 25 Sep 2010 06:49:28 +0000 (06:49 +0000)]
objdb: object_created_notification() fix the order of the parent and object handles.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3046 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoobjdb: fix some strange types (uint8_t* -> void*).
Angus Salkeld [Sat, 25 Sep 2010 06:48:24 +0000 (06:48 +0000)]
objdb: fix some strange types (uint8_t* -> void*).

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3045 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoadd float and double support to corosync-objctl
Angus Salkeld [Sat, 25 Sep 2010 06:47:30 +0000 (06:47 +0000)]
add float and double support to corosync-objctl

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3044 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoCPG: remove irratating log "downlist received left_list:"
Angus Salkeld [Sat, 25 Sep 2010 06:46:34 +0000 (06:46 +0000)]
CPG: remove irratating log "downlist received left_list:"

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3043 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoPatch from Kacper Kowalik to support honoring user defined LDFLAGS.
Steven Dake [Tue, 14 Sep 2010 18:10:12 +0000 (18:10 +0000)]
Patch from Kacper Kowalik to support honoring user defined LDFLAGS.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3042 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoPatch from Kacper Kowalik to add support for --enable-user-flags configure
Steven Dake [Tue, 14 Sep 2010 17:27:27 +0000 (17:27 +0000)]
Patch from Kacper Kowalik to add support for --enable-user-flags configure
option.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3041 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agochange shutdown priority to 80 in generic.in.
Steven Dake [Fri, 3 Sep 2010 17:04:42 +0000 (17:04 +0000)]
change shutdown priority to 80 in generic.in.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3039 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoPatch from Keisuke Mori to add proper dependeny on syslog to corosync init
Steven Dake [Fri, 3 Sep 2010 15:42:22 +0000 (15:42 +0000)]
Patch from Keisuke Mori to add proper dependeny on syslog to corosync init
script.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3038 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoFix few xopen tsafe issues.
Steven Dake [Tue, 31 Aug 2010 20:16:20 +0000 (20:16 +0000)]
Fix few xopen tsafe issues.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3037 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoBump version to 1.2.8.
Steven Dake [Tue, 31 Aug 2010 19:02:19 +0000 (19:02 +0000)]
Bump version to 1.2.8.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3034 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoBuild properly with different versions of libc by including all posix APIs
Steven Dake [Tue, 31 Aug 2010 18:55:27 +0000 (18:55 +0000)]
Build properly with different versions of libc by including all posix APIs
in header definitions.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3030 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoIPC: return CS_ERR_NO_RESOURCES to library when low on fds.
Angus Salkeld [Wed, 25 Aug 2010 01:13:14 +0000 (01:13 +0000)]
IPC: return CS_ERR_NO_RESOURCES to library when low on fds.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3029 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoPOLL: gracefully handle running out of file descriptors.
Angus Salkeld [Wed, 25 Aug 2010 01:07:37 +0000 (01:07 +0000)]
POLL: gracefully handle running out of file descriptors.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3028 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoRemove checking of sub parameters in service.d files.
Steven Dake [Tue, 24 Aug 2010 18:45:43 +0000 (18:45 +0000)]
Remove checking of sub parameters in service.d files.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3024 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoProperly detect shutdown of corosync process
Steven Dake [Tue, 17 Aug 2010 18:08:13 +0000 (18:08 +0000)]
Properly detect shutdown of corosync process

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3022 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoRemove cancel token retransmit timeout.
Steven Dake [Tue, 3 Aug 2010 17:31:33 +0000 (17:31 +0000)]
Remove cancel token retransmit timeout.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3012 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoCheck that Corosync was not runned by cman
Jan Friesse [Mon, 2 Aug 2010 12:38:19 +0000 (12:38 +0000)]
Check that Corosync was not runned by cman

Patch fixes init script so it's tested, if corosync was runned
by cman or not. If so, it refuses to stop Corosync.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3011 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoAllow running only one instance of Corosync
Jan Friesse [Mon, 2 Aug 2010 12:36:20 +0000 (12:36 +0000)]
Allow running only one instance of Corosync

Patch makes Corosync more compliant with common practices
for writing daemon. It creates pid file (usually
/var/run/corosync.pid) and flocks it. So only one instance
of Corosync can be executed now.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3010 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoChange trunk version to 1.2.7.
Steven Dake [Tue, 27 Jul 2010 21:32:39 +0000 (21:32 +0000)]
Change trunk version to 1.2.7.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3007 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoRemove consensus check for two node cluster cases which can have smaller
Steven Dake [Tue, 27 Jul 2010 19:00:37 +0000 (19:00 +0000)]
Remove consensus check for two node cluster cases which can have smaller
consensus values.  Document in man page the behavior of consensus.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3005 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoFix merge error with revision 3001.
Steven Dake [Wed, 21 Jul 2010 20:48:40 +0000 (20:48 +0000)]
Fix merge error with revision 3001.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3002 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoFix problem where flow control could lock up ipc under very heavy load in very
Steven Dake [Wed, 21 Jul 2010 17:03:36 +0000 (17:03 +0000)]
Fix problem where flow control could lock up ipc under very heavy load in very
rare circumstances.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3001 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoFix logging_daemon config parser code.
Fabio M. Di Nitto [Mon, 19 Jul 2010 06:36:48 +0000 (06:36 +0000)]
Fix logging_daemon config parser code.

Resolves: rhbz#615203

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2997 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoSYNC: always call sync_aborted() in sync_confchg_fn().
Angus Salkeld [Sat, 17 Jul 2010 04:59:40 +0000 (04:59 +0000)]
SYNC: always call sync_aborted() in sync_confchg_fn().

1) sync_callbacks.sync_abort can be null.
2) sync_processing is set to 0 after syncv1 is done.
   Then syncv2 processing is down. If we get a config change
   after syncv1 is down, but before syncv2 is done then it won't
   get aborted.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2995 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoCTS: add a test case for Andrew's bug
Angus Salkeld [Fri, 16 Jul 2010 02:13:04 +0000 (02:13 +0000)]
CTS: add a test case for Andrew's bug

Bug:
sometimes shutdown can take a long time if all nodes
are shutdown together.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2994 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoSYNCV2: add debug when messages are discarded
Angus Salkeld [Fri, 16 Jul 2010 02:11:25 +0000 (02:11 +0000)]
SYNCV2: add debug when messages are discarded

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2993 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoSYNC: add some ENTER() trace points.
Angus Salkeld [Fri, 16 Jul 2010 02:09:51 +0000 (02:09 +0000)]
SYNC: add some ENTER() trace points.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2992 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years ago SYNCV2: reset the my_memb_determine_ring_id in sync_v2_memb_list_abort()
Angus Salkeld [Fri, 16 Jul 2010 02:08:54 +0000 (02:08 +0000)]
 SYNCV2: reset the my_memb_determine_ring_id in sync_v2_memb_list_abort()

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2991 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoSYNC: remove unused primary_designated from sync_primary_callback_fn()
Angus Salkeld [Fri, 16 Jul 2010 02:07:09 +0000 (02:07 +0000)]
SYNC: remove unused primary_designated from sync_primary_callback_fn()

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2990 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoRemove reset of token timeout on retransmitted token reception. The timer
Steven Dake [Wed, 14 Jul 2010 18:35:36 +0000 (18:35 +0000)]
Remove reset of token timeout on retransmitted token reception.  The timer
should only be reset when a real token is received or membership protocol
could run into problems with certain timing parameters.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2988 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoSpeed up IPC connection process.
Steven Dake [Wed, 7 Jul 2010 21:43:15 +0000 (21:43 +0000)]
Speed up IPC connection process.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2986 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoFix fail list fault that occurs in very rare circumstances.
Steven Dake [Sat, 3 Jul 2010 21:54:22 +0000 (21:54 +0000)]
Fix fail list fault that occurs in very rare circumstances.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2984 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoBump trunk revision to 1.2.6.
Steven Dake [Wed, 30 Jun 2010 19:42:04 +0000 (19:42 +0000)]
Bump trunk revision to 1.2.6.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2980 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoHave makefile create /var/log/cluster rather then corosync.spec file.
Steven Dake [Wed, 30 Jun 2010 19:39:55 +0000 (19:39 +0000)]
Have makefile create /var/log/cluster rather then corosync.spec file.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2979 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoSafely redirect stderr/in/out to /dev/null to prevent fork() from crashing
Andrew Beekhof [Wed, 30 Jun 2010 10:20:42 +0000 (10:20 +0000)]
Safely redirect stderr/in/out to /dev/null to prevent fork() from crashing

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2976 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoPatch to fix stack protector sig abort that occurs when ipc buffer is too
Steven Dake [Tue, 29 Jun 2010 18:15:20 +0000 (18:15 +0000)]
Patch to fix stack protector sig abort that occurs when ipc buffer is too
short.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2974 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoipc: Fix error handling of mmap util functions.
Angus Salkeld [Tue, 29 Jun 2010 05:31:44 +0000 (05:31 +0000)]
ipc: Fix error handling of mmap util functions.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2972 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoHave corosync spec file own /var/log/cluster/corosync.log
Steven Dake [Mon, 28 Jun 2010 23:30:49 +0000 (23:30 +0000)]
Have corosync spec file own /var/log/cluster/corosync.log
have example use /var/log/cluster/cluster.log as default log file

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2970 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoFix problem where flight data leaks files in /dev/shm when corosync is
Steven Dake [Mon, 28 Jun 2010 22:15:48 +0000 (22:15 +0000)]
Fix problem where flight data leaks files in /dev/shm when corosync is
restarted continuously via init scripts.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2964 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoFix OBJDB locking
Jan Friesse [Mon, 28 Jun 2010 13:32:56 +0000 (13:32 +0000)]
Fix OBJDB locking

Patch fixes following situation:

1. objdb receives reload notification and ends in function
object_reload_config. This will call objdb_wrlock. I will call this
thread #1

2. Another thread will decide to update corosync statistics and calls
object_key_increment. This calls objdb_rdlock. This thread is #2. But
because condition (lock_thread != pthread_self()) is satisfied, it will
also calls pthread_rwlock_rdlock. This will blocks, because thread #1
holds the lock.

3. object_reload_config will call reload functions (as real example
xml2objdb). xml2objdb needs to calls object_create. This calls
objdb_rdlock, but will hang on pthread_mutex_lock(&meta_lock), because
this lock is held by thread #2.

-> deadlock

It is handled by using recursive mutex.

Also every function is now really locked.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2963 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoRemove pathconf which may fall
Jan Friesse [Wed, 23 Jun 2010 08:39:49 +0000 (08:39 +0000)]
Remove pathconf which may fall

Corosync has problem with readdir_r if pathconf function fails.

Main problem is hidden in calling pathconf (internally calls statfs)
which may fail. After this fail, newly allocated memory for readdir_r
was smaller than expected and memory was overwritten by readdir_r.

Patch removes calling of pathconf and rather use NAME_MAX constant which
is always large enough for all file systems.

Also return value of malloc SHOULD be checked.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2962 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoAdd make/spec file changes for corosync & blackbox man pages.
Angus Salkeld [Mon, 21 Jun 2010 21:03:36 +0000 (21:03 +0000)]
Add make/spec file changes for corosync & blackbox man pages.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2961 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoAdd a simple man page for corosync
Angus Salkeld [Mon, 21 Jun 2010 20:43:22 +0000 (20:43 +0000)]
Add a simple man page for corosync

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2960 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoAdd a man page for corosync-blackbox
Angus Salkeld [Mon, 21 Jun 2010 20:42:28 +0000 (20:42 +0000)]
Add a man page for corosync-blackbox

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2959 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoChange version to 1.2.5 in trunk.
Steven Dake [Mon, 21 Jun 2010 18:17:47 +0000 (18:17 +0000)]
Change version to 1.2.5 in trunk.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2956 fd59a12c-fef9-0310-b244-a6a79926bd2f

14 years agoStop the totem stats updater timer during shutdown to prevent references to
Steven Dake [Sat, 19 Jun 2010 00:27:46 +0000 (00:27 +0000)]
Stop the totem stats updater timer during shutdown to prevent references to
invalid memory.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2953 fd59a12c-fef9-0310-b244-a6a79926bd2f