Commit Graph

342 Commits

Author SHA1 Message Date
Steven Dake
d7b4430e70 Some changes for log services.
(Logical change 1.96)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@342 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-18 18:41:10 +00:00
Steven Dake
4ef0eb9845 Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@341 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-18 18:41:09 +00:00
Mark Haverkamp
61926b9c64 Merge markh@bk.osdl.org:/var/bk/openais
into markh1.pdx.osdl.net:/home/localmarkh/views/BK/openais_event

2004/10/15 07:34:46-07:00 osdl.net!markh
Fix some problems in the open channel recovery code that could cause
remaining nodes to have an incorrect count when a node left the
membership.

BKrev: 416fe0393RmyVFqRVwmPFENov-OyGw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@340 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-15 14:35:37 +00:00
Mark Haverkamp
486ecf2099 Fix some problems in the open channel recovery code that could cause
remaining nodes to have an incorrect count when a node left the
membership.

(Logical change 1.95)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@339 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-15 14:35:37 +00:00
Steven Dake
40e0554c19 Make testevs exit on evs_initialize if the return code is not EVS_OK.
(Logical change 1.94)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@338 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-15 00:37:47 +00:00
Steven Dake
871f862c8b Add handle instance destructor code. Previously it was set to
null and was being called which caused a null jump.

(Logical change 1.94)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@337 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-15 00:37:47 +00:00
Steven Dake
341998c18b testevs.c:
Make testevs exit on evs_initialize if the return code is not EVS_OK.
evs.c:
  Add handle instance destructor code.  Previously it was set to
  null and was being called which caused a null jump.

BKrev: 416f1bdbIKOv0YEK2JzYcGImsLWrsA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@336 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-15 00:37:47 +00:00
Mark Haverkamp
f370d6961e Fix some compiler warnings with gcc 3.4
(Logical change 1.93)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@335 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-12 21:59:46 +00:00
Mark Haverkamp
a4a49757ad Auto merged
2004/10/12 14:57:45-07:00 osdl.net!markh
Message type support for tracking open channels

(Logical change 1.93)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@334 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-12 21:59:46 +00:00
Mark Haverkamp
0527f7a66b Auto merged
2004/10/12 14:57:45-07:00 osdl.net!markh
This takes care of tracking open channels through configuration
changes.  The channel structures and data are maintained until the last
instance is closed and there are no unexpired retained events.  Then the
data is freed up.

(Logical change 1.93)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@333 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-12 21:59:46 +00:00
Mark Haverkamp
b0b6bd5b78 Merge markh@bk.osdl.org:/var/bk/openais
into markh1.pdx.osdl.net:/home/localmarkh/views/BK/openais_event

2004/10/12 14:57:46-07:00 osdl.net!markh
Handle open channels cluster wide and track opens.  Free up channel
data when there are no more references.

Also, fix some compiler warnings in lib/evt.c

BKrev: 416c53d279cT2JNVM_jQ5qBjLGe6EQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@332 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-12 21:59:46 +00:00
Miyotaka Sakai
3691a0588a correct defalut component name
(Logical change 1.92)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@331 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-11 09:12:20 +00:00
Miyotaka Sakai
e1b8653f9b testamf5.c, testamf3.c:
correct defalut component name
testamf4.c:
   correct defalut component name

BKrev: 416a4e740QCv2KoVOb0lbFRJYINodA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@330 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-11 09:12:20 +00:00
Miyotaka Sakai
f2c994b9db correct defalut component name
(Logical change 1.92)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@329 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-11 09:12:20 +00:00
Miyotaka Sakai
eb57bac8c6 main.c, handlers.h, evt.c, evs.c, clm.c, ckpt.c, amf.c:
exec_dump_fn support as SIGUSR2 handler to easy to debug

BKrev: 416a3b42053878SDRpbH_G7EUB4rAQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@328 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-11 07:50:26 +00:00
Miyotaka Sakai
3a05293f91 exec_dump_fn support as SIGUSR2 handler to easy to debug
(Logical change 1.91)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@327 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-11 07:50:26 +00:00
Steven Dake
018d786945 Auto merged
2004/10/04 16:08:46-07:00 mvista.com!sdake
Remove unneeded debug printf

(Logical change 1.90)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@326 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-05 20:20:12 +00:00
Steven Dake
b003253b26 Change req_header to res_header to match rest of
library, especially for out of order queued messages.

(Logical change 1.90)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@325 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-05 20:20:12 +00:00
Steven Dake
0ad467ca41 Merge sdake@bk.osdl.org:/var/bk/openais
into persist.az.mvista.com:/home/sdake/openais

2004/10/04 16:10:02-07:00 mvista.com!sdake
testamf.c:
  Change testamf to just test protection group tracking
  and componentcapabilitymodelget.
amf.c:
  Change req_header to res_header to match rest of
  library, especially for out of order queued messages.
  Remove unneeded debug printf

BKrev: 416301fc-l-UbKOcLV0FMuNqzCEQIw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@324 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-05 20:20:12 +00:00
Steven Dake
a212b03fa1 Auto merged
2004/10/04 16:09:33-07:00 mvista.com!sdake
Change testamf to just test protection group tracking
and componentcapabilitymodelget.

(Logical change 1.90)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@323 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-05 20:20:12 +00:00
Miyotaka Sakai
865d4fd47c amf.h, main.c, amf.c:
add Amfcomponent state dump mechanism

BKrev: 4162c542Q_AtRTLkaWtprRi7H3ew7w


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@322 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-05 16:01:06 +00:00
Miyotaka Sakai
31b9847790 add Amfcomponent state dump mechanism
(Logical change 1.89)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@321 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-05 16:01:06 +00:00
Miyotaka Sakai
17a2b4ed1a add surpressing health check printf message
(Logical change 1.88)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@320 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-02 09:30:26 +00:00
Miyotaka Sakai
69af53836a testamf.c:
add to reduce health check printf message
testamf6.c, testamf5.c, testamf4.c, testamf3.c, testamf2.c, testamf1.c:
  add to reduce health check printf message

BKrev: 415e7532j5RNbHSwQl4tF2HzMJjayQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@319 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-02 09:30:26 +00:00
Miyotaka Sakai
ce9948db45 add suppressing healthcheck pritf message
(Logical change 1.88)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@318 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-02 09:30:26 +00:00
Steven Dake
6b42f21c83 Fix a bunch of errors in node get and async node get.
(Logical change 1.87)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@317 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-02 01:23:54 +00:00
Steven Dake
3e8c9fdda6 Increase code coverage of clm code.
(Logical change 1.87)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@316 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-02 01:23:54 +00:00
Steven Dake
22e000e5bc testclm.c:
Increase code coverage of clm code.
clm.c, ais_msg.h:
  Fix a bunch of errors in node get and async node get.

BKrev: 415e032aF1mVsl5HqRqEZTGL5S90VA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@315 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-02 01:23:54 +00:00
Miyotaka Sakai
33e5ad01bb get rid of compile warning
(Logical change 1.86)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@314 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-29 01:22:03 +00:00
Miyotaka Sakai
d4f5bb3f7a testckpt.c:
get rid of compile warning

BKrev: 415a0e3b7pcmfNPh8_SQDhuaxhArpQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@313 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-29 01:22:03 +00:00
Mark Haverkamp
6c9bc30151 Auto merged
2004/09/28 11:29:35-07:00 mvista.com!sdake
Configuration change support from Miyotaka Sakai.

(Logical change 1.85)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@312 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 19:28:57 +00:00
Mark Haverkamp
b95e79edbc Merge markh@bk.osdl.org:/var/bk/openais
into markh1.pdx.osdl.net:/home/localmarkh/views/BK/openais_event

2004/09/28 11:29:45-07:00 mvista.com!sdake
parse.h, amf.c:
  Configuration change support from Miyotaka Sakai.

BKrev: 4159bb79gTMIV1ezWSXqMb61zwoXkg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@311 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 19:28:57 +00:00
Mark Haverkamp
520cb0585d Auto merged
2004/09/28 11:29:17-07:00 mvista.com!sdake
Configuration change support from Miyotaka Sakai.

(Logical change 1.85)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@310 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 19:28:57 +00:00
Mark Haverkamp
a823dba831 Moved the SaNameTisNNameT function to util.c and called it name_match.
(Logical change 1.84)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@309 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:14 +00:00
Mark Haverkamp
2f5f081798 Replace SaNameTisNameT with name_match from util.[ch]
(Logical change 1.84)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@308 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:14 +00:00
Mark Haverkamp
c87e9631fe evt code updated to handle cluster config changes better. Now,
when a node joins, it is sent any retained events that have time
left on them. Also, if the joining node had been a part of the cluster
in the past, it is sent the next event ID that it should use so as to
not generate duplicate event IDs. Channel open requests are now
completed in the exec handler, with channel close code to follow later.

(Logical change 1.84)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@307 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:14 +00:00
Mark Haverkamp
4677666ccb Mostly event service updates to handle recovery after a
configuration change. (Selecting next event ID and sending retained
events to the joiner).

BKrev: 4159ad7atHUdo0CF1QjlYHOM-fjAvQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@306 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:14 +00:00
Mark Haverkamp
2d0b3519c7 testparse.c needs util.o now.
(Logical change 1.84)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@305 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:14 +00:00
Mark Haverkamp
c572772487 (Logical change 1.84)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@304 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:14 +00:00
Mark Haverkamp
f2671ba36b Remove some old TODO comments.
(Logical change 1.84)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@303 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:14 +00:00
Mark Haverkamp
b88cb68ddf Added util.[ch] for time and SaNameT match functions. Also updated
dependencies.

(Logical change 1.84)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@302 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:14 +00:00
Mark Haverkamp
c4252460d2 Updates for evt to handle recovery after a config change.
(Logical change 1.84)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@301 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:14 +00:00
Mark Haverkamp
0d3aafd32f added a semi-quiet mode.
(Logical change 1.84)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@300 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:14 +00:00
Mark Haverkamp
070a8295c1 Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@299 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:13 +00:00
Steven Dake
6256363476 Add token callback for recovery routines.
(Logical change 1.83)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@298 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:14:38 +00:00
Steven Dake
fe9118557c Add token callback for recovery.
gmi.h:
  Add token callback functions to header.
gmi.c:
  Add token callback for recovery routines.

BKrev: 4159aa0ejs1nwJhT7hT1XL-gr9wv2Q


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@297 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:14:38 +00:00
Steven Dake
24a32a21a4 Add token callback functions to header.
(Logical change 1.83)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@296 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:14:38 +00:00
Mark Haverkamp
0f50a877d5 Check to see that the message can be sent before proceeding.
(Logical change 1.82)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@295 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-24 19:44:28 +00:00
Mark Haverkamp
b9950ca373 add assert around clmNodeJoinSend since the call to
gmi_mcast can return a failure now.

(Logical change 1.82)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@294 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-24 19:44:28 +00:00
Mark Haverkamp
2392be8d57 add assert around gmi_mcast calls since it can return a failure now.
BKrev: 4154791ch3ag3FHVGxaUfrVFsvN3sQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@293 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-24 19:44:28 +00:00