Steven Dake
cb154572a2
Patch from Renaud to report some broken Solaris porting from past.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1353 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-03-06 16:18:44 +00:00
Steven Dake
49c06ba23b
Fixes from Zoltan regarding AMF mispellings and type errors.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1348 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-01-23 17:07:50 +00:00
Lon Hohberger
79df855070
1 The patch contains mainly updates of the header documentation in the
...
amf_files
2 Correction of the misspelling in lib/cfg.c
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1346 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-12-21 12:33:39 +00:00
Steven Dake
d86a47c5c6
Fix mutex leak on various platforms.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1336 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-12-12 18:44:19 +00:00
Lon Hohberger
8f87e5f413
This patch contians:
...
- AMF handles a component report of injurious health.
- AMF handles saAmfHealthcheckConfirm() SA_AIS_ERR_FAILED_OPERATION
so that if it's a recent recovery ongoing amf does nothing but if it's
no immediate recovery in progress, AMF invokes the recovery action
specified by the component when the health check is started If
the individual recommendation was SA_AMF_NO_RECOMMENDATION,
then AMF uses the configured recovery action for the component
(saAmfCompRecoveryOnError). If this recommendation also is
SA_AMF_NO_RECOMMENDATION, then AMF makes a component restart or
component/SU fail over counts on the value of
saAmfCompDisableRestart and saAmfSUFailover.
- Handling of cleanup of a component and health check response hardened.
- Time supervision and check return value of clc-cli CLEANUP command.
- Handle 'recommended recovery' specified by a component in an error
report. The potential recovery action to choose
implemented is - component restart - and - node fails over.
- The attribute saAmfCompDisableRestart is now recognizable which means
that if the component specifies 'Component restart' and restart is
disabled
then the SU in which the component is contained shall fall over.
- The attribute saAmfSUFailover will not be recognized. SU will always
fail
over as a single entity.
- A component can report an error on another component than itself.
- Implementation 'Instantiation Level' according to chapter 3.9.2 in the
AMF specification.
- Implementation of the escalation levels, component restart, SU
restart, SU fail over and Node fail over.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1321 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-12-11 05:37:07 +00:00
Fabien Thomas
cdb8452805
handle case where POLLHUP or POLLERR are not supported by OS
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1311 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-11-23 08:49:21 +00:00
Fabien Thomas
b07e2dee27
remove invalid code / warnings detected by Intel compiler
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1308 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-11-16 17:34:44 +00:00
Steven Dake
336dc17daa
Forward port of flow control work from whitetank branch.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1289 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-11-04 22:29:14 +00:00
Hans Feldt
9506e6528d
I found some (copy paste I guess) errors in the AMF library. It was
...
the reason for why component invoked healthchecks did not work at all.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1273 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-10-20 11:28:51 +00:00
Fabien Thomas
2013f60c7f
add missing clean for libcfg
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1231 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-08-28 12:19:59 +00:00
Fabien Thomas
76bffbc3e4
correct fd leak on error case
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1229 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-08-24 15:54:10 +00:00
Fabien Thomas
7f1ba08543
correct broken POLLHUP, POLLERR under BSD
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1228 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-08-24 15:48:25 +00:00
Fabien Thomas
c5b004ad05
return SA_AIS_ERR_INVALID_PARAM when vector ptr is NULL or len equal to 0
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1225 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-08-23 09:33:08 +00:00
Steven Dake
1eeaa2d4bc
Return ERR_TIMEOUT if timeout value is zero in saEvtChannelOpen
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1211 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-08-16 01:21:52 +00:00
Steven Dake
90ccff6bbc
Solaris port for openais
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1175 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-08-05 02:22:12 +00:00
Hans Feldt
99948bf07b
- Handling of HUP and other poll errors improved in saAmfDispatch.
...
- Termination of testamf1 when saAmfDispatch returns an error.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1171 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-08-01 05:56:30 +00:00
Steven Dake
6a00f63ff9
Patch so realloc reverts to old buffer if reallocation fails.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1170 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-28 23:34:28 +00:00
Steven Dake
4946f988eb
Fix processor count in evs interface.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1157 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-26 06:51:17 +00:00
Steven Dake
b9b771b391
Validate IO Vector elements in a saCkptCheckpointWrite operation
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1147 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-21 03:26:22 +00:00
Steven Dake
064c3588a1
Remove TODO comment that has long been fixed in the code.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1146 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-21 03:18:03 +00:00
Steven Dake
19ad21f536
Correct malloc of checkpoint iteration size from 500 bytes to max section id
...
size bytes for the created checkpoint
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1145 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-21 03:07:14 +00:00
Steven Dake
c32045f303
Remove marshall TODO items as they are not needed
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1143 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-21 02:33:13 +00:00
Steven Dake
24777c184f
Make checkpoint service work according to specifications with regards to the
...
unlink operation.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1139 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-20 04:50:15 +00:00
Steven Dake
640cfba2ab
Add support for reenabling a failed redundant ring and printing ring status
...
through the test/opeanis-cfgtool application.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1137 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-19 19:31:01 +00:00
Steven Dake
a0c8b0c9d9
Event marshalling patch for 32/64/endian support.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1131 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-17 20:16:14 +00:00
Steven Dake
bca534f38c
If version field is NULL as passed to saClmInitialize, return INVALID_PARAM
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1130 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-17 06:18:19 +00:00
Steven Dake
4b14eb0001
If TRACK_CURRENT is specified in CLM service and notify buffer is null,
...
return tracking data in callback as per specification.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1129 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-17 06:17:47 +00:00
Steven Dake
f44141fe11
Remove debug printf in track stop operation
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1128 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-17 06:15:47 +00:00
Steven Dake
cb5e848f3b
Check for invalid handles first in API calls.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1127 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-17 06:14:33 +00:00
Steven Dake
5a45b27fdc
The open flags are used before they are verified to be valid.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1122 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-16 21:49:36 +00:00
Steven Dake
75b73bc3e0
Fix library renames to 2.0.0 as needed by distros.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1119 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-13 21:57:35 +00:00
Steven Dake
e167fbc727
Update to checkpoint service to use new APIs as rest of services do.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1118 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-11 23:41:56 +00:00
Steven Dake
a569293a27
Remove dead definition of struct queue
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1116 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-10 22:22:21 +00:00
Steven Dake
cb148dbdc8
Missing commit from previous rename of saServiceConnectTwo
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1115 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-10 22:19:46 +00:00
Steven Dake
bcc232dcbc
Rename saConnectServiceTwo to saConnectService
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1114 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-10 22:18:32 +00:00
Steven Dake
cd52f094b0
Rev versions to 2.0 and update versions script for all services
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1112 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-10 22:11:43 +00:00
Steven Dake
ec8b3a4214
The recent endian/32/64 changes broke cpg callbacks. The left list address
...
was incorrectly calculated.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1102 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-06 22:33:41 +00:00
Steven Dake
d0d088cdf8
marshall of cpg_join name field is wrong.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1100 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-30 19:21:30 +00:00
Steven Dake
b98d0e3824
Finally remove all references to ais_amf.h and replace with saAmf.h.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1090 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-26 21:02:00 +00:00
Steven Dake
1f60232e88
Make cpg 32/64 userland safe and endian safe.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1085 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-23 18:38:25 +00:00
Steven Dake
01afe82393
32/64/mixed endian support for checkpoint service.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1074 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-21 21:15:16 +00:00
Steven Dake
e73c6a8a9d
32/64/endian everything should work now for openais clm service.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1059 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-05 22:14:46 +00:00
Steven Dake
6fa2d1e767
This sanitizes the makefiles in several ways
...
* .so and .so.1 files are linked to library.so.1.0.0 and installed with
make install
* renames all build targets to library.so.1.0.0 from library.so.1.0
* puts ld.so.conf.d files in the correct place
* allows not installing static libraries by using make install
STATICLIBS=NO
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1054 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-27 02:19:09 +00:00
Steven Dake
953a21eab8
commit for redundant ring take 4 was only done from exec directory missing all
...
of the commits for the rest of the directories. This commit will now allow the
tree to compile.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1035 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-21 23:11:42 +00:00
Steven Dake
afe1867a80
First take at doxygen support for openais APIs.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1034 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-21 23:01:34 +00:00
Hans Feldt
5b30c0a120
Introduction of SA Forum information model for AMF as specified in
...
SAI-Overview-B.02.01.pdf. Other AMF changes as specified in
SAI-AIS-AMF-B.02.01.
Summary:
- SA Forum B.02 Information model for AMF
- groups.conf renamed to amf.conf
- amf.conf syntax changed heavily to follow SA Forum specs.
- AMF works when daemon.
- linux lists removed from AMF
- component cmd environment variables support
- component argv support
- multi value csi attributes
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1026 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-17 07:22:43 +00:00
Steven Dake
5bd057566c
Add invalid handle definition
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1014 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-27 20:18:44 +00:00
Steven Dake
3c7f8b7c05
This patch reworks IPC to use threads instead of the main poll loop
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1011 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-27 01:39:10 +00:00
Steven Dake
3bab5bffb4
Make install now works along with different search paths for openais's
...
lcrsos.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@996 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-19 20:39:25 +00:00
Fabien Thomas
c15234bfea
defect 1178: use synchronous lock structure on reply
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@961 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-31 08:14:55 +00:00