Commit Graph

147 Commits

Author SHA1 Message Date
Steven Dake
97649da204 (Logical change 1.47)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@147 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 19:53:46 +00:00
Steven Dake
0385d9ba49 Add function in exec/clm to get the full cluster node information
for any node in the cluster membership

(Logical change 1.47)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@146 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 19:53:46 +00:00
Mark Haverkamp
02b4016105 Merge bk://bk.osdl.org/openais
into markh1.pdx.osdl.net:/home/localmarkh/views/BK/openais_stage

2004/07/29 12:26:46-07:00 mvista.com!sdake
clm.c:
  Add function in exec/clm to get the full cluster node information
  for any node in the cluster membership

BKrev: 410955capPzVdVwzpMJetS80seWS7g


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@145 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 19:53:46 +00:00
Mark Haverkamp
b04e9c5d16 Added event code and dependencies.
(Logical change 1.46)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@144 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
f6bad576fa added event message types and associated data structures.
(Logical change 1.46)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@143 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
170efe67d4 Event service data types.
(Logical change 1.46)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@142 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
36563bbf7c This adds the start of the AIS event service code. The library code
is mostly complete.  The aisexec part just has placeholders for now
and will be filled in later.

BKrev: 410944e7-oXL5OZSJvizPPH9dGS2GA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@141 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
ad6301d50d Added event library and depend target.
(Logical change 1.46)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@140 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
3cdfc4a3ec added event service handler.
(Logical change 1.46)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@139 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
7f9da22767 added event service.
(Logical change 1.46)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@138 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
6da8305de8 Added clustTimeNow to get current time in nanoseconds.
(Logical change 1.46)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@137 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
1f60d9b56e Added event test program and depend target.
(Logical change 1.46)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@136 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
cba04f10c5 (Logical change 1.46)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@135 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
9dc4b066ad Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@134 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:42 +00:00
Steven Dake
4b6839b96e README.devmap:
Document new changes to exec handler function prototype
  and recommend using the source_addr for deferring requests
  instead of recording the ip address in the message itself.
main.c, handlers.h, clm.c, ckpt.c, amf.c:
  Add source_addr to exec message handler for event service.

BKrev: 41082a5cY6cLQK7NG_rxZrkb7lERfw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@133 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-28 22:36:12 +00:00
Steven Dake
48601c8797 Document new changes to exec handler function prototype
and recommend using the source_addr for deferring requests
instead of recording the ip address in the message itself.

(Logical change 1.45)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@132 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-28 22:36:12 +00:00
Steven Dake
9783e8d172 Add source_addr to exec message handler for event service.
(Logical change 1.45)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@131 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-28 22:36:12 +00:00
Steven Dake
71bf042ce9 Major cleanup and use hdb.c abstracted out functions
now instead of internal hacked together stuff that was
there previously.

(Logical change 1.44)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@130 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-27 23:30:47 +00:00
Steven Dake
21d72de996 Remove "old-style" handle database code from aispoll.c and include
instead hdb.c/hdb.h.  These files are copies of the handle database
code used for the library without mutexes.

This work for Mark Haverkamp to use the handle database functionality
as part of the event service.

BKrev: 4106e5a7ANCdXqe3zoIfO1tcYyrQhQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@129 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-27 23:30:47 +00:00
Steven Dake
105dfeb76e Major cleanup to use hdb.c handle database functions.
(Logical change 1.44)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@128 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-27 23:30:47 +00:00
Steven Dake
3d098438ec Add hdb.c to the build.
(Logical change 1.44)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@127 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-27 23:30:47 +00:00
Steven Dake
f6c12e54d9 (Logical change 1.44)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@126 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-27 23:30:47 +00:00
Steven Dake
13180ca19b Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@125 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-27 23:30:46 +00:00
Steven Dake
4ab8129ccb Remove handle state and handle instance information.
Also cleanup saHandleCreate to return unsigned int
handle instead of int handle.

(Logical change 1.43)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@124 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-27 23:27:13 +00:00
Steven Dake
2cdf0b28d6 Hide handle state and handle instance information
in this file instead of in global header file.

(Logical change 1.43)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@123 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-27 23:27:13 +00:00
Steven Dake
9ad2184513 util.h:
Remove handle state and handle instance information.
  Also cleanup saHandleCreate to return unsigned int
  handle instead of int handle.
util.c:
  Hide handle state and handle instance information
  in this file instead of in global header file.

BKrev: 4106e4d1-Ntb973S5ymyNwgL6e0PDw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@122 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-27 23:27:13 +00:00
Steven Dake
f446ed6a5b Remove BINDTODEVICE socket option and replace with MULTICAST_IF
to be more portable and require less root privs.

(Logical change 1.42)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@121 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-26 22:17:36 +00:00
Steven Dake
093cccd334 gmi.c:
Remove BINDTODEVICE socket option and replace with MULTICAST_IF
  to be more portable and require less root privs.

BKrev: 410583008afZgkQ66_jDep-8pFf_nw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@120 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-26 22:17:36 +00:00
Steven Dake
c6a4b25b12 Additional information for using the saRecvQueue call in a
library.

(Logical change 1.41)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@119 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-23 22:15:04 +00:00
Steven Dake
61d7f71031 README.devmap:
Additional information for using the saRecvQueue call in a
  library.

BKrev: 41018de8tOmRhu_QtrtzbSGzWHSMKA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@118 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-23 22:15:04 +00:00
Steven Dake
32ff7abeb8 (Logical change 1.40)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@117 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-20 23:47:28 +00:00
Steven Dake
48aa1bfad9 SECURITY:
Description of the security policy of the openais project.  Includes a
  description of the techniques used in openais.

BKrev: 40fdaf10zR42cuBrfB9UB-Bc-edNsQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@116 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-20 23:47:28 +00:00
Steven Dake
1f45493f13 Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@115 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-20 23:47:27 +00:00
Steven Dake
7298c7d9c0 Major improvements to fragmentation. It works alot better now.
(Logical change 1.39)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@114 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-15 00:03:02 +00:00
Steven Dake
70749c2bbd Major improvements to quality in the GMI. Previously with 12 processors
and running ckptstress from two nodes, one node would fail to make
forward progress.  Sometimes the nodes would assert or crash.  All the
fragmentation code has been rewritten to be more stable and of better
design (at the cost of a little more memory).

BKrev: 40f5c9b6KnXRw3_UyUgLV-cIvI7YpA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@113 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-15 00:03:02 +00:00
Steven Dake
69c97fb5ff Allow NULL delivery_fn in gmi_join. This basically has no
effect but allows the processor to participate in multicasting
and membership.

(Logical change 1.38)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@112 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 17:20:56 +00:00
Steven Dake
0ee13ef6b5 gmi.c:
Allow NULL delivery_fn in gmi_join.  This basically has no
  effect but allows the processor to participate in multicasting
  and membership.

BKrev: 40f419f8lTr8W134C7CXrtXRnzoMzw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@111 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 17:20:56 +00:00
Steven Dake
7f49b68e27 Extraneous tokens were not being rejected on token retransmits
that occurred during configuration changes.  The result was bad
behavior, especially with larger rings.  Also cleaned up the
token retransmit timer to be deleted if necessary.

(Logical change 1.37)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@110 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 17:19:43 +00:00
Steven Dake
edb6179338 gmi.c:
Extraneous tokens were not being rejected on token retransmits
  that occurred during configuration changes.  The result was bad
  behavior, especially with larger rings.  Also cleaned up the
  token retransmit timer to be deleted if necessary.

BKrev: 40f419afbeZlmKywfUpsrDkU5kMnHg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@109 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 17:19:43 +00:00
Steven Dake
dc3e957f9b Add ip to deliver_fn callback
(Logical change 1.36)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@108 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 03:51:52 +00:00
Steven Dake
ffbb2cb19f Add ip to deliver_fn callback
BKrev: 40f35c58ypi89e5Nq53F73OF8QGakA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@107 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 03:51:52 +00:00
Steven Dake
7e0c9753ea Add ip to deliver_fn callback
Add ip to deliver_fn callback
Add ip to deliver_fn callback

(Logical change 1.36)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@106 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 03:51:52 +00:00
Steven Dake
6e980d7b47 Removed something that was necessary in last changeset.
(Logical change 1.35)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@105 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 03:48:48 +00:00
Steven Dake
a99007e491 gmi.c:
Removed something that was necessary in last changeset.

BKrev: 40f35ba0CGzAzJZVAZx-QxSIYzQlNQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@104 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 03:48:48 +00:00
Steven Dake
a8514efa00 gmi.c:
Fix debug exit.

BKrev: 40f3069ao4cKWSuICZHrMdMIqJDlMw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@103 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-12 21:46:02 +00:00
Steven Dake
33a8e4f137 Fix debug exit.
(Logical change 1.34)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@102 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-12 21:46:02 +00:00
Steven Dake
39d0551093 Merge sdake@bk.osdl.org:/var/bk/openais
into persist.az.mvista.com:/home/sdake/openais

2004/07/12 14:40:19-07:00 mvista.com!sdake
gmi.c:
  When a processor left the membership, the next configuration would sometimes
  cause a form token timeout.  While not particularly harmful, it was wasteful
  and not part of the original design of the group messaging protocol.
  There was some extra junk code that was added to workaround some other bug
  that has since been fixed.
  This junk code removed and now the form token never times out (woohoo).
  Also removed some extra code that calculates the next ORF processor twice.
  We only really need to do it once.

BKrev: 40f3054fipDDp-KdB8CJpzw0vS3PfA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@101 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-12 21:40:31 +00:00
Steven Dake
263b91f277 Auto merged
2004/07/12 14:37:13-07:00 mvista.com!sdake
When a processor left the membership, the next configuration would sometimes
cause a form token timeout.  While not particularly harmful, it was wasteful
and not part of the original design of the group messaging protocol.
There was some extra junk code that was added to workaround some other bug
that has since been fixed.
This junk code removed and now the form token never times out (woohoo).
Also removed some extra code that calculates the next ORF processor twice.
We only really need to do it once.

(Logical change 1.33)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@100 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-12 21:40:31 +00:00
Steven Dake
0d16710464 Retransmit orf token if no multicast or token received within a timeout
period.  This could mean that the token was lost, but no configuration
change has really occured.  Rather then execute the heavyweight
membership protocol, just retry the token and if it fails after the
token timeout, execute a configuration change sequence.

BKrev: 40f21082dvUxH0aOPvKmpqoqlkEgEA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@99 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-12 04:16:02 +00:00
Steven Dake
d886159e29 Add retransmit of token if no multicast or token received
within a timeout period (100 msec).  This helps avoid
a reconfiguration when only the token is lost, but no
real configuration changes have occured.

(Logical change 1.32)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@98 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-12 04:16:02 +00:00