Commit Graph

585 Commits

Author SHA1 Message Date
Steven Dake
a58243c239 add default section to testcase.
(Logical change 1.172)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@585 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-11 21:25:27 +00:00
Steven Dake
1ff6f56a48 Add default section support to checkpoints.
(Logical change 1.172)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@584 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-11 21:25:27 +00:00
Steven Dake
d16b436749 (Logical change 1.172)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@583 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-11 21:25:27 +00:00
Steven Dake
0b45731bbc testckpt.c, ckpt-rd.c, ckpt-wr:
add default section to testcase.
ckpt.c:
  Add default section support to checkpoints.

BKrev: 425aeb47Mb_N8HKGtX_BdmRGaLP-Jg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@582 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-11 21:25:27 +00:00
Steven Dake
bd9d3419cd ckpt.c:
Patch from Muni and Mark to properly calculate the header size
  field so that the totem delivery assertion doesn't assert when
  using ckpt services.

BKrev: 4256f3d0FFsh6CwpsXs-w4_225C4Wg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@581 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-08 21:12:48 +00:00
Steven Dake
50f9bbdf24 Patch from Muni and Mark to properly calculate the header size
field so that the totem delivery assertion doesn't assert when
using ckpt services.

(Logical change 1.171)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@580 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-08 21:12:48 +00:00
Mark Haverkamp
b7be6acce0 Make sure that the message count in the message matches the actual length
of the message.

BKrev: 42543a7aj_fChUtiZ_ZWH0wdZ6JN3Q


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@579 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-06 19:37:30 +00:00
Mark Haverkamp
5f1e727245 Make sure that the message count in the message matches the actual length
of the message.

(Logical change 1.170)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@578 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-06 19:37:30 +00:00
Mark Haverkamp
4002f9b5fb Merge markh@bk.osdl.org:/var/bk/openais
into markh1.pdx.osdl.net:/home/localmarkh/views/BK/openais_work

2005/04/05 08:56:39-07:00 osdl.net!markh
Replace assert with a return.  This will allow the custer to continue
to run.  This happens when a joining node receives a message from a node
that it doesn't know about yet.  This is a temporary fix for now.

BKrev: 4252b541e1CWSNFoD816nTIzzKKPDg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@577 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-05 15:56:49 +00:00
Mark Haverkamp
fe62f602f1 Replace assert with a return. This will allow the custer to continue
to run.  This happens when a joining node receives a message from a node
that it doesn't know about yet.  This is a temporary fix for now.

(Logical change 1.169)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@576 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-05 15:56:49 +00:00
Steven Dake
ee38b3da97 Patch from Miyotaka Sakai to fix access to free area defect 426.
(Logical change 1.168)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@575 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-05 01:51:09 +00:00
Steven Dake
3afff77412 totemsrp.c:
Patch from Miyotaka Sakai to fix access to free area defect 426.

BKrev: 4251ef0dubnPmmnqD-elKTQ_vgpq9Q


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@574 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-05 01:51:09 +00:00
Steven Dake
3c98ff2d84 change around this_ip to better support ifup/ifdown
(Logical change 1.167)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@573 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-01 21:20:11 +00:00
Steven Dake
64e4978f00 add some support functions relating to this_ip
(Logical change 1.167)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@572 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-01 21:20:11 +00:00
Steven Dake
2f594f9a28 add ifup/ifdown binding to totem single ring protocol
(Logical change 1.167)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@571 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-01 21:20:11 +00:00
Steven Dake
3111e9f5eb minor improvements to the ckpt tests
(Logical change 1.167)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@570 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-01 21:20:11 +00:00
Steven Dake
9e9881ac41 testckpt.c:
minor improvements to the ckpt tests
totemsrp.h, totemsrp.c:
  add ifup/ifdown binding to totem single ring protocol
main.h, main.c:
  add some support functions relating to this_ip
clm.c, ckpt.c, amf.c:
  change around this_ip to better support ifup/ifdown

BKrev: 424dbb0bUeDXpnbGn8TxJlPYWRvT6A


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@569 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-01 21:20:11 +00:00
Miyotaka Sakai
09628d7212 fix not to transit state when process terminate
(Logical change 1.166)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@568 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-30 22:29:58 +00:00
Miyotaka Sakai
fdf3214a34 amf.c:
fix not to transit state when process terminate

BKrev: 424b286648uPUwF_B-hMgKOF5Mgwzw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@567 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-30 22:29:58 +00:00
Steven Dake
f63d0e5c0a Updated with comments from Michael Howard
added evt and evs service tests to quickstart information
added text about running as root
removed default route setup instructions since they are no longer needed.

(Logical change 1.165)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@566 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-30 21:26:35 +00:00
Steven Dake
dd9ab617ea QUICKSTART:
Updated with comments from Michael Howard
  added evt and evs service tests to quickstart information
  added text about running as root
  removed default route setup instructions since they are no longer needed.

BKrev: 424b198bYLqB2blTRdYtgLgjFmHjIA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@565 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-30 21:26:35 +00:00
Steven Dake
86b26b0480 Merge sdake@bk.osdl.org:/var/bk/openais
into persist.az.mvista.com:/home/sdake/openais

2005/03/29 15:03:30-07:00 mvista.com!sdake
testckpt.c:
  Create section after section is unlinked in test code.
ckpt.c:
  Patch from Muni Bajpai to not setup a cleanup handler for a
  checkpoint when a checkpoint open fails.  Patch also fixes up
  checkpoint iterators so they do not crash on process exit.

BKrev: 4249da03fKPlzZG0QP8eZriaAtoM-w


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@564 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-29 22:43:15 +00:00
Steven Dake
46c6c4f47c Patch from Muni Bajpai to not setup a cleanup handler for a
checkpoint when a checkpoint open fails.  Patch also fixes up
checkpoint iterators so they do not crash on process exit.

(Logical change 1.164)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@563 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-29 22:43:15 +00:00
Steven Dake
46e2bad993 Create section after section is unlinked in test code.
(Logical change 1.164)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@562 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-29 22:43:15 +00:00
Miyotaka Sakai
6b512c3231 fix configuration change
(Logical change 1.163)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@561 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-28 22:49:18 +00:00
Miyotaka Sakai
ffd546701d amf.c:
fix configuration change

BKrev: 424889eehbHC-A5YNtbXzaEzVMhcVQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@560 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-28 22:49:18 +00:00
Steven Dake
688323e33d Remove extra debug printf.
(Logical change 1.162)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@559 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-28 18:57:21 +00:00
Steven Dake
d37166568b totemsrp.c:
Remove extra debug printf.

BKrev: 42485391qM7HG2et7RcmNIHInqXxTA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@558 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-28 18:57:21 +00:00
Steven Dake
7d0da71edc defect 368
A report of totemsrp not merging configurations led to this
enhancement.

totemsrp.c:
  The totem protocol would not previously merge a configuration
  until a multicast message was sent.  This change sends a special
  "merge detect" message if no message has been multicast in some
  time from the representative.  This merge detect message will
  trigger other processors to enter the gather state and form
  a new configuration if they were not previously part of the
  current configuration.
Makefile:
  Build aisexec when libtotem.a changes.

BKrev: 42484f5453Wf6HN2Gbyg9dznFaQGtw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@557 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-28 18:39:16 +00:00
Steven Dake
29585e709f The totem protocol would not previously merge a configuration
until a multicast message was sent.  This change sends a special
"merge detect" message if no message has been multicast in some
time from the representative.  This merge detect message will
trigger other processors to enter the gather state and form
a new configuration if they were not previously part of the
current configuration.

(Logical change 1.161)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@556 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-28 18:39:16 +00:00
Steven Dake
60049623b6 Build aisexec when libtotem.a changes.
(Logical change 1.161)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@555 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-28 18:39:16 +00:00
Mark Haverkamp
26e2fa2638 This update allows retained events from a merging partition to
be delivered to applications with the associated channels already
open at the time of the merge.

BKrev: 42484b6f0IXKK1Bql-GCaHwTbXg0dQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@554 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-28 18:22:39 +00:00
Mark Haverkamp
790c36084c This update allows retained events from a merging partition to
be delivered to applications with the associated channels already
open at the time of the merge.

(Logical change 1.160)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@553 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-28 18:22:39 +00:00
Mark Haverkamp
ba546499ad Async open and subscribe needed to check for registered call back
functions and retrun an error if there were no assocated callbacks.

BKrev: 42483e43sOS_W8zCqoAZNHTy43FhkA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@552 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-28 17:26:27 +00:00
Mark Haverkamp
9da13b631e Async open and subscribe needed to check for registered call back
functions and retrun an error if there were no assocated callbacks.

(Logical change 1.159)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@551 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-28 17:26:27 +00:00
Mark Haverkamp
6b9a85376c Only dispatch a callback if it is non-null.
(Logical change 1.158)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@550 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-23 20:12:44 +00:00
Mark Haverkamp
6ef7bdb950 Only dispatch a callback if it is non-null.
BKrev: 4241cdbcbgCCwsZLJEXicZZTvGpuGQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@549 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-23 20:12:44 +00:00
Steven Dake
e1b14b28be defect325 - rename saCkptActiveCheckpointSet to saCkptActiveReplicaSet
(Logical change 1.157)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@548 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-22 23:37:45 +00:00
Steven Dake
4441abc73f ckpt.c:
defect325 - rename saCkptActiveCheckpointSet to saCkptActiveReplicaSet

BKrev: 4240ac49svEd0Uoaf0zn8-6YXK5akw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@547 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-22 23:37:45 +00:00
Steven Dake
f02733f736 Makefile:
Link to seperate libraries.
  Provide seperate libraries per service as well as the consolidated libais library.

BKrev: 4240ac15wtabDEmO2ooaShdbFZP-wg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@546 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-22 23:36:53 +00:00
Steven Dake
1faf416af7 Link to seperate libraries.
(Logical change 1.156)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@545 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-22 23:36:53 +00:00
Steven Dake
7c2548db8a Provide seperate libraries per service as well as the consolidated libais library.
(Logical change 1.156)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@544 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-22 23:36:53 +00:00
Mark Haverkamp
f8f841f31e Fix an off by one error causing a bad event ID to be sent after
a recovery in some cases.

BKrev: 4240a8ba6cGIAgqLoTZNAUZJJOgyrg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@543 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-22 23:22:34 +00:00
Mark Haverkamp
00fc37a307 Fix an off by one error causing a bad event ID to be sent after
a recovery in some cases.

(Logical change 1.155)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@542 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-22 23:22:34 +00:00
Mark Haverkamp
81b83714ec Event service now reconciles open channels and retained events between active
merging partitions.

(Logical change 1.154)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@541 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-17 22:44:28 +00:00
Mark Haverkamp
2623910cf4 Merge markh@bk.osdl.org:/var/bk/openais
into markh1.pdx.osdl.net:/home/localmarkh/views/BK/openais_work

2005/03/17 14:44:09-08:00 osdl.net!markh
Event service now reconciles open channels and retained events between active
merging partitions.

BKrev: 423a084c-3ULQ_tcgSf5isGBiqzUWA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@540 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-17 22:44:28 +00:00
Steven Dake
4cdb14fa53 Merge sdake@bk.osdl.org:/var/bk/openais
into persist.az.mvista.com:/home/sdake/openais

2005/03/17 14:25:22-07:00 mvista.com!sdake
ckpt.c:
  Change few ERROR loggings to DEBUG loggings from Muni Bajpai.

BKrev: 4239f5cbSrwx6_k9jxG2_GjW1OoVHQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@539 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-17 21:25:31 +00:00
Steven Dake
0affa78f7d Change few ERROR loggings to DEBUG loggings from Muni Bajpai.
(Logical change 1.153)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@538 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-17 21:25:31 +00:00
Mark Haverkamp
6c7a81b616 Handle possible SA_AIS_ERR_TRY_AGAIN status.
BKrev: 4239c886n6J6MzMfIVjaN1QvFnsfzg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@537 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-17 18:12:22 +00:00
Mark Haverkamp
6de1db9ba4 Handle possible SA_AIS_ERR_TRY_AGAIN status.
(Logical change 1.152)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@536 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-17 18:12:22 +00:00