Commit Graph

1188 Commits

Author SHA1 Message Date
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
Hans Feldt
1675a43aef This patch improves AMF's behaviour for handling component instantiation level.
AMF is complemented to handle termination and instantiation with respect to
instantiation level also for the following scenarios:
- SU restart
- termination/instantiation errors during component/SU restart
- instantiation error during cluster start up



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1352 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-01-26 13:03:55 +00:00
Hans Feldt
06b87e1322 Was writing to random mem using an uninitialized pointer
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1351 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-01-25 08:19:38 +00:00
Steven Dake
aec3f25bc8 Display the names of the configuration files used by openais.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1350 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-01-23 17:39:43 +00:00
Steven Dake
9c2beff446 Add two notifications about things to avoid to ensure proper operation of the parser.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1349 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-01-23 17:38:58 +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
77668738f6 - improves the inclosed dokumentation in amfsu,amfsg and amnode.
- improves error handling  caused by the INSTANTIATE or CLEANUP  command
  while recovering  with component_restart or su_restart


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1347 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-01-18 07:39:42 +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
1c58c5ad21 Fix unaligned access for ia64 arch.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1343 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-12-18 15:22:59 +00:00
Steven Dake
cae628987f Fix typo in pthread_mutex_destroy.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1342 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-12-18 15:21:28 +00:00
Steven Dake
b2a537a90c Execute pthread destroy in queue_free in trunk.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1341 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-12-18 15:09:31 +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
Steven Dake
3ce56d3f8f Remove leak when pthread mutex isn't released
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1335 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-12-12 18:40:01 +00:00
Steven Dake
da4225f83d Fix leak by forward porting a change already in whitetank.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1333 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-12-12 18:35:58 +00:00
Steven Dake
bdb586e2a4 Change timing parameters for trunk to something more reasonable for a busy network.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1332 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-12-12 18:33:13 +00:00
Steven Dake
acfc7e5b48 Convert some spaces to tabs that was already in the whitetank branch.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1331 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-12-12 18:21:33 +00:00
Steven Dake
30065ae175 Fix leak in uid and gid determination.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1328 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-12-12 18:08:06 +00:00
Steven Dake
978f4d55e8 Fix flow control problem in trunk.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1327 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-12-12 18:03:55 +00:00
Steven Dake
76e46a1d60 Add rundir patch to /var/lib/openais.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1326 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-12-12 17:58:41 +00:00
Patrick Caulfield
2a12de36f2 Fix ordering of join messages
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1324 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-12-12 17:47:33 +00:00
Lon Hohberger
931abd5380 Correct not initialized value of amf_comp in
amf_comp_find_from_conn_info () 


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1322 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-12-11 06:06:21 +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
Hans Feldt
47a5d65e33 Corrected amf.c bug that could cause segv
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1320 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-12-06 09:02:25 +00:00
Hans Feldt
ea286d6457 Correction to segv handler
Added abort handler


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1318 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-12-05 12:36:29 +00:00
Hans Feldt
3d68074945 - Use of sync_request() in SYNC service
- sync_abort() callback implemented



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1317 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-12-04 14:28:40 +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
Hans Feldt
97919b8d16 Cleaning up and preparing for later patch.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1310 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-11-17 06:57:00 +00:00
Fabien Thomas
238278ad12 set default downcheck value to 1000ms
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1309 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-11-16 17:36:52 +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
b91be7a028 Print information about when we enter the gather state and what state the
membership protocol is in when the token is lost.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1304 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-11-13 18:08:32 +00:00
Steven Dake
22d3403a6f Forward port of IPC code from whitetank branch to fix known defects.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1303 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-11-13 17:55:51 +00:00
Steven Dake
53d0f551e4 Flushed printing for trunk branch.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1302 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-11-13 17:47:42 +00:00
Steven Dake
9db9cb1263 Improve behavior of IPC flow control for CPG service during configuration
changes.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1301 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-11-13 17:39:10 +00:00
Steven Dake
f9f0931cb4 Update checkpoint service from all qualifications that have occured in
whitetank branch.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1299 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-11-10 17:46:22 +00:00
Steven Dake
3a34cba28b Recovery algorithms described in this document.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1298 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-11-10 17:45:38 +00:00
Lon Hohberger
22f7289a28 improved cluster_applications_are_starting_sgs
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1297 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-11-10 14:10:46 +00:00
Hans Feldt
1b78482202 removed compiler warning in amfcomp.c
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1292 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-11-08 12:13:39 +00:00
Lon Hohberger
9c64bb9878 This patch contains several corrections concerning SU and Node fail
over and some hardening concerning health check handling.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1291 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-11-08 11:55:16 +00:00
Patrick Caulfield
b58bed720f 2.6.19 kernel headers do not include IFA_RTA so we provide it.
Patch from Fabio Massimo Di Nitto


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1290 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-11-07 14:47:01 +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
Steven Dake
b424236d1d Updated readme.devmap file
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1287 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-11-04 22:20:24 +00:00
Hans Feldt
4e7e222aea * Improvement of SU fail over to handle remove of those standby assignments
that doesn't directly is associated to the failing over SU's active assignments
 in other SU's 
* Improvement of Node fail over to handle remove of those standby assignments
 that doesn't directly is associated to the failing over  Node SU's active assignments
 in other SU's.

* Improvement of SU fail over to handle si assignments to spare SU:s

* Improvement of Node fail over to handle si assignments to spare SU:s



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1285 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-10-27 09:58:59 +00:00
Hans Feldt
4cc7dad0b0 AMF healthcheck keylen was not compared before matching key values
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1281 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-10-24 06:45:35 +00:00
Hans Feldt
5796de0f76 - sync_abort is called if there is a new config change during synchronization
- a new function sync_request() that can be called by a user to execute
synchronization on request of a specified service. 



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1280 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-10-24 06:30:50 +00:00
Hans Feldt
1b0ff5e92e Changes to testamf1.c to have two healthchecks running at the same time.
One of type 'AMF invoked' and one of type 'component invoked'. testamf1.c
code got a bit restructured at the same time.

Changes in amf.conf to complement testamf1 


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1274 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-10-20 15:03:42 +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
Hans Feldt
d6820692e4 A couple of errors was found when I did unit (component) testing of amf.c
using CUnit. With this patch, amf.c can handle a full totem send queue.
This is not easily reproducable with function test.

amf.c is also prepared for further component testing with this patch. 


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1272 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-10-20 11:20:59 +00:00
Lon Hohberger
f983d37a2f Patch contains:
A mechanism to defer and recall simultaneous
events in the state machines for amf_cluster,
amf_application and amf_sg.

The implication of this defer and recall mechanism is
that it's now possible to to recover from e.g. several
simultaneous SU failures in an ordered serialized manner.

The events that could be deferred/recalled so far is
SG_FAILOVER_NODE_EV,SG_START_EV,SG_FAILOVER_SU_EV,
CLUSTER_SYNC_READY_EV,APPLICATION_START_EV and
APPLICATION_ASSIGN_WORKLOAD_EV.

Files involved:

Index: exec/amfnode.c
Index: exec/amfsg.c
Index: exec/amfutil.c
Index: exec/amfapp.c
Index: exec/amfcomp.c
Index: exec/amfcluster.c
Index: exec/amf.h



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1266 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-10-13 10:18:04 +00:00
Hans Feldt
4abe4a6fbd This simple patch solves a problem we see when testing AMF. If a node leaves
and joins the cluster quickly (within one second is default), the config
change messages will not indicate that the node left and rejoined. The patch
introduces a short delay in main() to make sure the token_timeout expires. 


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1259 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-10-12 06:54:14 +00:00
Steven Dake
0032c765bc Enable commit tokens to be processed properly in all circumstances.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1255 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-10-09 07:41:46 +00:00