Commit Graph

147 Commits

Author SHA1 Message Date
Steven Dake
8205ddc94c Fix two node cluster membership event not appearing on leave problem
reported by Chris Friesen.

BKrev: 40e477d75L2YauKHr18UGUlPGfAEoA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@47 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-01 20:45:11 +00:00
Steven Dake
56f87814a1 remove dead code.
BKrev: 40e451f2-IOwwPNaNm65NetyBme-nw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@46 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-01 18:03:30 +00:00
Steven Dake
59dd1f28a1 remove dead code.
(Logical change 1.18)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@45 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-01 18:03:30 +00:00
Steven Dake
b655d9de7e The group messaging interface has been exported as a library for use
in other programs.  The key interfaces are exec/gmi.h and exec/poll.h.
gmi.h describes the interface for group messaging, while poll.h
describes the interface for abstracting poll system call with timers
and integrated with gmi.
By including these headers in programs and linking with libgmi, it is
possible to use the virtual synchrony layer (group messaging interface)
used in AIS for other applications.

BKrev: 40e30f7bM1KpRbp3-Bf2qVPRH1EsFA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@44 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 19:07:39 +00:00
Steven Dake
f3ad14ab08 Initialize logging function in group messaging interface.
(Logical change 1.17)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@43 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 19:07:39 +00:00
Steven Dake
78e871d1ec Build gmi static and shared library for use in other programs.
(Logical change 1.17)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@42 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 19:07:39 +00:00
Steven Dake
3091ebaac9 Add logging function init interface.
(Logical change 1.17)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@41 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 19:07:39 +00:00
Steven Dake
fd8978487f Add ability to pass in logging function for people that want to
use their own logging functions in their own programs.

(Logical change 1.17)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@40 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 19:07:39 +00:00
Steven Dake
b7579dec5d add debug checking version of logging function.
(Logical change 1.17)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@39 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 19:07:39 +00:00
Steven Dake
21f189dde9 make clean didn't remove ckptbench and ckptbenchth binaries
(Logical change 1.17)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@38 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 19:07:39 +00:00
Steven Dake
f5e88e1858 Chris Friesen reported the testamf programs don't work correctly.
Error in description of quickstart guide about how they
should work which has been corrected.
Also added information about using the ckptbench and
ckptbenchth programs to benchmark checkpoint writes.

(Logical change 1.16)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@37 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 07:23:45 +00:00
Steven Dake
18dcd5fe2a (Logical change 1.16)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@36 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 07:23:45 +00:00
Steven Dake
350913a9a8 Modify QUICKSTART to clarify how testamf{1-6} work and added some
text about using the ckptbench and ckptbenchth test programs.  Also
added the ckptbench and ckptbenchth programs to the build environment.

BKrev: 40e26a810DYCs3LU79Ne-q51pO2TgA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@35 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 07:23:45 +00:00
Steven Dake
83d1cab4e2 Add ckptbench and ckptbenchth targets
(Logical change 1.16)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@34 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 07:23:45 +00:00
Steven Dake
13b875c505 Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@33 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 07:23:44 +00:00
Steven Dake
ab76be55e4 Cluster membership API not being authenticated by openais executive.
This results in testclm locking on start in saClmInitialize.

BKrev: 40e095e4VUojyuQYOBeAUqjZnbBTCA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@32 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-28 22:04:20 +00:00
Steven Dake
7f24c23651 Fix cluster membership API not being authenticated bug.
(Logical change 1.15)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@31 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-28 22:04:20 +00:00
Steven Dake
86c3d01bf4 Make bind to a device really work properly. Now
it is possible to specify the bind network and
the networking will take place over that interface.

(Logical change 1.14)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@30 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-27 21:01:24 +00:00
Steven Dake
3640e7d346 Add priv drop so process doesn't have to run
as root in order to lock, set RR 99, and
bind to a specific ethernet interface for multicast.

(Logical change 1.14)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@29 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-27 21:01:24 +00:00
Steven Dake
9c18fa1fd6 Make binding to a specific network really work. Also added priv
dropping so process doesn't have to run as root for process lifetime.

BKrev: 40df35a4eUCTfC660C7oBwg-P9YE2g


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@28 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-27 21:01:24 +00:00
Steven Dake
39cbad6fc8 Yixiong Zou reported a problem where on some OSes the aisexec
couldn't join the multicast group.  This problem fixed.  Also
changed binding rules for sockets relating to the group messaging.
see detailed changlogs for more details.

BKrev: 40d9efacQooUDhv3APjn55QVVjMueg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@27 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-23 21:01:32 +00:00
Steven Dake
577163d6fb Fix binding rules so that instead of binding to INADDR_ANY for
UDP sockets, bind to specific interface defined in network.conf.
This is done by creating two fds.  gmi_fd_token is used for all
token communication.  gmi_fd_mcast is used for all mcast
communication.  I'm not sure if gmi_fd_mcast binding rules is
correct.  Once work begins on multipathing, this will have to
be figured out :)

2004/06/23 13:55:52-07:00 mvista.com!sdake
Use portable mreq instead of mreqn when joining the multicast
group.

(Logical change 1.13)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@26 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-23 21:01:32 +00:00
Steven Dake
8b9afa4f23 QUICKSTART:
Modified quickstart guide thanks to comments from Yixiong Zou
  Information about adding groups added
  Information about testclm blocking until cluster membership
  event occurs added.

BKrev: 40d920ffgjnZO35fZ2d947AV5TWGWQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@25 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-23 06:19:43 +00:00
Steven Dake
e78aa7a84c Modified quickstart guide thanks to comments from Yixiong Zou
Information about adding groups added
Information about testclm blocking until cluster membership
event occurs added.

(Logical change 1.12)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@24 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-23 06:19:43 +00:00
Steven Dake
e19a4959ad Buffer with message data used outside lock. This creates a possible race
where data from another response could be used to execute a dispatch.

2004/06/21 00:59:54-07:00 mvista.com!sdake
Remove double pthread_mutex_unlock on saAmfDispatch routine.  Unlock could
unlock another thread's unlock midthread.

(Logical change 1.11)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@23 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-21 08:08:30 +00:00
Steven Dake
4b4fa58ab5 Fix race with saClmDispatch where two threads could race
for access to the response data from the AIS Executive.

(Logical change 1.11)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@22 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-21 08:08:30 +00:00
Steven Dake
22ba043dbe Fix race relating to threads and saClmDispatch/saAmfDispatch.
BKrev: 40d6977ewZ8VFYD8mJyEaPWxg0tI7w


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@21 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-21 08:08:30 +00:00
Steven Dake
fec5549b1f Add support for C++ linkage to cluster membership API.
Without this change, C++ programs will not link to the library.

BKrev: 40d53e4bzcKNiPnfX523_065NBw4gg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@20 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-20 07:35:39 +00:00
Steven Dake
22508bd302 Add support for C++ linkage to cluster membership APIs.
(Logical change 1.10)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@19 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-20 07:35:39 +00:00
Steven Dake
bc6b30ab04 Port not actually set to correct port as found with tcpdump.
BKrev: 40d53d26QDtzR8msp2zMvJ-9Mq6-Tw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@18 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-20 07:30:46 +00:00
Steven Dake
df8eda0280 x86 was not setting port to network byte order, which resulted in
port being byte swapped.  This of course, doesn't work well with
xscale boards.

(Logical change 1.9)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@17 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-20 07:30:46 +00:00
Steven Dake
f667e6de8e quickstart gives incorrect info about multicast addresses, now corrected.
BKrev: 40d35b80BGcr_8TvtSlrbEZBn14zZA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@16 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-18 21:15:44 +00:00
Steven Dake
294b4f06b5 fix error in quickstart
(Logical change 1.8)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@15 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-18 21:15:44 +00:00
Steven Dake
9519c38841 Fix single-node AMF assertion failure (cause runaway recursion).
BKrev: 40d22e42IsByk3WqoRIGSlETLqdUgw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@14 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-17 23:50:26 +00:00
Steven Dake
7e1a275900 single node AMF would fail because of a recursion bug. Removed
the recursion by queueing single node message delivery as a timer
with 0 timeout.  This was happening before, but the logic was
wrong.

(Logical change 1.7)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@13 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-17 23:50:26 +00:00
Steven Dake
970b3e9caa Crash when no network.conf file present (missing error checking).
(Logical change 1.6)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@12 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-17 21:54:28 +00:00
Steven Dake
703c619079 Fix crash when error reading network.conf file.
BKrev: 40d21314UfLNnjjrMSt_4U9rJZSVHA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@11 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-17 21:54:28 +00:00
Steven Dake
4130763665 Fix bug in membership protocol where form token sometimes times out
because the initial send of the token is sent to the wrong address.

2004/06/16 15:42:49-07:00 mvista.com!sdake
Performance enhancements: Allow more messages to be multicast per
token possession to reach 8.8MB/sec checkpoint performance without
remcasts.  Trim gather/commit timeouts to 100 msec to speed up the
membership gathering process.

(Logical change 1.5)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@10 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-16 22:50:39 +00:00
Steven Dake
7507daee87 Bug fix and performance enhancements to the group messaging protocol.
BKrev: 40d0cebf3iPVrudikdxGEhhTs-CQMw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@9 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-16 22:50:39 +00:00
Steven Dake
9bd2a2f34f QUICKSTART:
Test change

BKrev: 40cfe45fPOa0mbN6jPO9bRiSG_tZWA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@8 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-16 06:10:39 +00:00
Steven Dake
60c27f0fea Test change
(Logical change 1.4)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@7 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-16 06:10:39 +00:00
John Cherry
f71b782518 Import changeset
BKrev: 40cf759cAkpvgQbZ43nWNRClHYqlXQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@6 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-15 22:18:04 +00:00
John Cherry
95f17845c6 (Logical change 1.3)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@5 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-15 22:18:04 +00:00
John Cherry
7bede9c4bb Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@4 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-15 22:18:03 +00:00
cem
81b9cfc950 Initial repository create
BKrev: 40cf7521T7yNtYdteqiCUMgD7RdOCA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-15 22:16:01 +00:00
cem
913863d5f8 Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-15 22:16:00 +00:00
Steven Dake
ffec333e51 New repository initialized by cvs2svn.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-15 22:16:00 +00:00