Steven Dake
24cc0d7f15
Remove compile warning from cfgtool commit.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1138 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-19 19:33:20 +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
Patrick Caulfield
b776747e9a
Send the new joinlists using the sync service, so it happens atomically.
...
This should fix some odd sequencing bugs.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1136 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-19 15:32:25 +00:00
Patrick Caulfield
5d7b5f7fdd
printing ipv6 addresses often needs more than a 32 byte buffer. THis could
...
causes a crash with sone ipv6 installations.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1135 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-18 06:33:39 +00:00
Steven Dake
45ec255e2c
Fix synchronization not working properly.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1132 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-17 21:52:55 +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
3cde5246a6
If the max section size is less then the read size, return INVALID_PARAM.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1126 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-17 06:12:11 +00:00
Steven Dake
b67675edc5
Return INVALID_PARAM when section read is larger then checkpoint section
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1125 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-17 02:20:37 +00:00
Steven Dake
918da2cd8d
CheckpointRead wasn't checking the active replica was set.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1124 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-16 21:58:35 +00:00
Steven Dake
1af43fd206
The creation attributes set bit wasn't set from the library to executive
...
message handlers causing significant problems with open was called from a app.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1123 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-16 21:50:39 +00:00
Steven Dake
a778bba481
Proper barrier operation as requested.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1121 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-14 21:09:57 +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
ef039b2973
Fix broken timers when release type set to RELEASE
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1117 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-10 23:51:43 +00:00
Steven Dake
5d47c5f81c
The member list, joined list, and left list in configuration changes
...
was not valid.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1111 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-07 19:44:11 +00:00
Fabien Thomas
ee17f851cb
remove commited conflict
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1110 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-07 16:35:21 +00:00
Hans Feldt
62bc733e2e
- Error escalation improved, SU failover recovery action added
...
- Most runtime attributes in the inf. model calculated in runtime from
more fundamental information. (improves consistency)
- sg_assign_si can now recalculate workloads considering existing
assignments
- Logging improvements, similar to what is required as notification in
AMF spec.
- CLC-CLI INSTANTIATE now exits aisexec when it fails (should later be
sent as an NTF alarm)
- CLC-CLI CLEANUP correctly handles already terminated processes
- testamf1.c printouts removed for normal operation
- Iterator functions for SI/CSI assignments
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1108 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-07 08:04:01 +00:00
Steven Dake
30d3eae80b
Make sure RELEASE version detaches from tty
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1105 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-07 01:34:55 +00:00
Steven Dake
8f21967d74
The totem rrp incorrectly increased the wrong failure counter.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1101 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-06 21:08:48 +00:00
Steven Dake
ba70bff546
Rework of the timer system to allow timers to be added in dispatch handlers.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1099 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-29 22:03:08 +00:00
Steven Dake
cdfa2c00bf
set serialize lock to proper function.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1097 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-29 04:05:47 +00:00
Steven Dake
2c42f9e9a5
Rework of IPC layer once again
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1096 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-29 00:01:10 +00:00
Steven Dake
b800167c9f
Fix problem where AMF locks up system if two or more components are members
...
of the same service unit. Also fixes problem where AMF asserts if two or
more components are specified in a service unit.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1095 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-27 23:42:38 +00:00
Steven Dake
71ca38d92f
Fix 32/64 endian for all services from a previous missed commit.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1094 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-27 23:37:06 +00:00
Steven Dake
c2f95b2c1d
Fix double free problem in ipc by reworking libais_disconnect to match previous
...
rewritten model in picacho.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1092 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-27 23:31:21 +00:00
Hans Feldt
154a857c3b
AMF changes:
...
- Revised cluster start
- Includes Steven's "amf invalid write patch"
- Includes "components not started with 0.76" patch
- New timer API use backed out of AMF (temporary)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1091 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-27 08:49:07 +00:00
Steven Dake
e0f1ae2f88
Corrected timer deadlock that occurs when a timer add or delete operation
...
occurs within a timer expiration event.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1089 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-26 20:30:44 +00:00
Steven Dake
e6516df88c
Removed ais_amf.h and instead point all refs to saAmf.h
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1088 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-26 20:30:15 +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
Patrick Caulfield
d84e890831
Fix message alignment in CPG.
...
we now unpack the message in the same way as we pack it.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1084 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-22 16:07:30 +00:00
Steven Dake
a58dd5a88e
New make release in top level makefile
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1077 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-21 23:03:11 +00:00
Steven Dake
f9abb3899e
Modify AMF to use new timer.c/timer.h routines properly
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1076 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-21 21:32:03 +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
bf6fb91a1c
Fix for early logging from Hans.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1073 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-21 21:13:34 +00:00
Hans Feldt
e993689ac5
Refactoring of AMF into several files (based on classed in inf.
...
model). A central header file (amf.h) keeps all the definitions and
prototypes needed.
New things apart from that:
- some doxygen html generated from AMF e.g. each file has a description
- saAmfHAStateGet() now works
- component invoked healthchecks implemented (but not tested)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1071 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-20 06:45:16 +00:00
Steven Dake
b0c735ee64
Fix off by one error in totemsrp.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1070 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-19 22:59:32 +00:00
Steven Dake
526d81bf91
Missed timer commit.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1069 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-19 10:51:41 +00:00
Steven Dake
f4a40626f8
missed commit
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1068 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-19 10:50:34 +00:00
Steven Dake
ad2fa27191
deferred timer system so that timers may be deferred during synchronization.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1067 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-16 19:51:55 +00:00
Steven Dake
d223eda745
Fix dependencies and install all header files for external service handlers.
...
New defination required to build external service handlers.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1066 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-16 19:16:22 +00:00
Steven Dake
d193826724
Allow CFLAGS and LDFLAGS to be overridden through the environment or command
...
line.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1065 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-16 19:07:28 +00:00
Steven Dake
33d89ae7db
Remove warnings in AMF executive service.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1061 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-05 22:39:07 +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
Hans Feldt
ef284f2b30
- (Re-)introduction of event based multicast messages (not all yet)
...
- Use of Distinguished Names (DN) in API and multicast messages
- CSI resassignment properly handled (by using restarting state)
- State 'setter' functions with uniform printouts
- Simple 'assign SU to host' algorithm:
- based on saAmfSUHostedByNode config attribute
- see config file for example
- Debug print runtime attributes upon user request:
$ pkill -USR2 aisexec
- Object-oriented naming of functions started (but not finished)
- testamf1.c updated with some new tests
- Minor fix in print.h and print.c
- AMF can be started on two nodes (example config file needs
modification for this)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1058 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-31 13:20:43 +00:00
Steven Dake
e691aedbb8
Set to SCHED_RR:1 to match ipc layer
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1057 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-28 22:14:44 +00:00
Steven Dake
31e4df4d79
sched_setscheduler was passing wrong argument
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1056 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-28 22:13:52 +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
45e249b91b
Under load, it was observed that the token could be lost because the
...
totem protocol was not being scheduled above the other I/O processes.
This patch reinstalls the sched_setscheduler call which for some reason
was commented out.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1051 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-27 02:16:21 +00:00
Steven Dake
985d2f3989
defect 1270
...
Fix checkpoint read operation which would return invalid operation in some
circumstances.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1050 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-26 19:41:01 +00:00
Steven Dake
a8c449fbae
Fix segfault if rrp_mode: MODE isn't set in configuration file.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1047 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-26 04:22:55 +00:00
Steven Dake
252fc54461
Remove warning about memb_set_print not being used. This is only useful for
...
debugging.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1046 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-26 04:19:40 +00:00