Commit Graph

1309 Commits

Author SHA1 Message Date
Steven Dake
b0fc630eab totemsrp.c:
Fixes a condition which would result in a proc set and failed set
  being equal which would force the algorithm to never reach
  consensus in the membership algorithm.

BKrev: 42604e9fCBYactncuQuguPZ_IEfQsQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@609 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 23:30:39 +00:00
Steven Dake
0bf800e0db Fixes a condition which would result in a proc set and failed set
being equal which would force the algorithm to never reach
consensus in the membership algorithm.

(Logical change 1.181)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@608 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 23:30:39 +00:00
Steven Dake
c64f378df1 totem packet size changed from 1408 to 1404 because a field was
added to the mcast header.

(Logical change 1.180)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@607 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 23:29:31 +00:00
Steven Dake
623cd29dbc add some sort queue functions.
(Logical change 1.180)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@606 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 23:29:31 +00:00
Steven Dake
8368fa8387 turn off random dropping of packets by default.
2005/04/15 16:27:14-07:00 mvista.com!sdake
Major fixes to the recovery phase of the totem protocol.  The
remainder of the protocol remains unchanged.
The protocol now properly adds the right messages to the right
queues during recovery.  The protocol properly handles failures
in the recovery state.

(Logical change 1.180)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@605 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 23:29:31 +00:00
Steven Dake
778311f3cd totemsrp.c:
turn off random dropping of packets by default.
totemsrp.h:
  totem packet size changed from 1408 to 1404 because a field was
  added to the mcast header.
sq.h:
  add some sort queue functions.
totemsrp.c:
  Major fixes to the recovery phase of the totem protocol.  The
  remainder of the protocol remains unchanged.
  The protocol now properly adds the right messages to the right
  queues during recovery.  The protocol properly handles failures
  in the recovery state.
totempg.c:
  add an assert to catch a weird case.

BKrev: 42604e5bSfwCdUnySrgU1nlV7yDYNQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@604 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 23:29:31 +00:00
Steven Dake
e14520f859 add an assert to catch a weird case.
(Logical change 1.180)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@603 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 23:29:31 +00:00
Steven Dake
6244f37c49 crypto.c:
autodetect endian and wordsize with gnuisms

BKrev: 42602efdZ8LfQwIHBFrdtsjrK3BtCg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@602 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 21:15:41 +00:00
Steven Dake
bfe42ca422 autodetect endian and wordsize with gnuisms
(Logical change 1.179)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@601 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 21:15:41 +00:00
Steven Dake
bb1a4d9a53 evs.c:
fix defect 477 - header size calculated incorrectly results in assert

BKrev: 42602cf5j6Zi2RZtyz9xB83lZW9R6g


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@600 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 21:07:01 +00:00
Steven Dake
0dd9d0999f fix defect 477 - header size calculated incorrectly results in assert
(Logical change 1.178)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@599 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 21:07:01 +00:00
Steven Dake
0fb3480ac6 Merge sdake@bk.osdl.org:/var/bk/openais
into persist.az.mvista.com:/home/sdake/openais

2005/04/15 13:48:35-07:00 mvista.com!sdake
Makefile, util.h, util.c, evt.c, evs.c, clm.c, ckpt.c, amf.c:
  defect 188 missed initial checkin

BKrev: 426028b9DQDC6BgUEBBsQmVJmhyxOg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@598 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 20:48:57 +00:00
Steven Dake
37fb3fca52 defect 188 missed initial checkin
(Logical change 1.177)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@597 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 20:48:57 +00:00
Mark Haverkamp
8c90624817 Test updates to handle SA_AIS_ERR_TRY_AGAIN return codes.
(Logical change 1.176)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@596 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 20:05:46 +00:00
Mark Haverkamp
f333ad49d9 Merge markh@bk.osdl.org:/var/bk/openais
into markh1.pdx.osdl.net:/home/localmarkh/views/BK/openais_work

2005/04/15 13:01:00-07:00 osdl.net!markh
Test updates to handle SA_AIS_ERR_TRY_AGAIN return codes.

BKrev: 42601e9aBWGIREypBcTjO5NC8bK8uA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@595 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 20:05:46 +00:00
Steven Dake
7d1b8e0d11 defect 188 - use two fds instead of one fd for I/Os to executive
(Logical change 1.175)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@594 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 19:08:20 +00:00
Steven Dake
1ea29dc7ce Many files:
defect 188 - use two fds instead of one fd for I/Os to executive
testevsth.c:
  test evs threading

BKrev: 42601124xiPxCobiccGpS7CZ62Ol7w


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@593 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 19:08:20 +00:00
Steven Dake
94a50283e7 (Logical change 1.175)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@592 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 19:08:20 +00:00
Steven Dake
fc25218921 Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@591 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 19:08:19 +00:00
Steven Dake
c3e125b165 defect 478 - remove extra parameter to config change.
(Logical change 1.174)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@590 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 19:03:18 +00:00
Steven Dake
d413e64044 Many files:
defect 478 - remove extra parameter to config change.

BKrev: 42600ff6Tg7hfUjwYnckeK8uBxBGrg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@589 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 19:03:18 +00:00
Steven Dake
194511a39b Fix defect 456
when checkpoint expirse, the executive crashes if no bind address was specified

(Logical change 1.173)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@588 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-11 21:33:33 +00:00
Steven Dake
da1daf2051 main.c:
Fix defect 456
  when checkpoint expirse, the executive crashes if no bind address was specified

BKrev: 425aed2d6P3dBt_7UO1Cv6d5kt4haQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@587 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-11 21:33:33 +00:00
Steven Dake
6d74d8760c add default section to testcase
(Logical change 1.172)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@586 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-11 21:25:27 +00:00
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