Commit Graph

492 Commits

Author SHA1 Message Date
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
Steven Dake
bda4420351 Remove deliver_fn which is not the ipc delivery function handler but the
executive multicasted messages delivery function.  This was inadvertantly copied
and pasted from main.c


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1045 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-26 04:08:18 +00:00
Steven Dake
562a8d87b4 Remove warning about unsigned/signed passed to strcpy
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1043 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-26 02:31:04 +00:00
Steven Dake
62a453da47 Return unsigned char as needed by gcc 4.1
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1041 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-26 02:21:03 +00:00
Steven Dake
c3ad9d1330 code analysis found a memset overwrote a data structure.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1040 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-26 02:09:48 +00:00
Patrick Caulfield
48ebfdc432 Add missing endian conversion to memb_merge_detect
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1039 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-25 07:33:12 +00:00
Steven Dake
4da5612bd3 Endian fixes for the recent redundant ring protocol work plus the cluster
membership API support.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1033 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-19 20:31:35 +00:00
Steven Dake
483a9baac7 The redundant ring take 4 patch. This includes modes for active, passive,
and none.  Read openais.conf.5 for information regarding how to configure
redundant ring.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1032 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-19 19:49:40 +00:00
Patrick Caulfield
1afe7db63a Don't crash if we get an unathenticated connection from a library.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1030 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-19 07:38:30 +00:00
Patrick Caulfield
1948867924 Allow the syslog facility type to be set in the configuration file.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1029 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-19 07:36:49 +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
Patrick Caulfield
29bdf6bcdc getaddrinfo() doesn't actually set errno, it has its own error variable, so
returning -errno is not useful (it may be zero even if getaddrinfo failed).

So, simply return -1 if getaddrinfo fails, to indicate a name resolution
or badly formed address.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1025 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-15 13:38:25 +00:00
Steven Dake
734dce9972 Environment variable cleanup, documentation of environment variables in
man pages, and rename of one of the environment variables used to specify
the main openais configuration file.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1024 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-11 00:40:06 +00:00
Hans Feldt
a5019f2edc - Preprocessor flags to control user, group and directory for
configuration files removed.

- Environment variables for the same thing added:
	OPENAIS_AISPARSER_FILE
	OPENAIS_AMF_CONFIG_FILE
	OPENAIS_TOTEM_AUTHKEY_FILE

- Make depend target in exec makefile updated with missing source files.




git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1022 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-10 06:20:00 +00:00
Hans Feldt
905ba3b406 - printouts buffered before log_setup() has been called, flushed at early exit.
- rests of old logging removed from all code (#define LOG_SERVICE...).
- line feed added if not in message.
- new trace() function added so that trace macros adds minimum of code and runtime penalties to user code.
- ENTER_ARGS macro changed to ENTER. ENTER macro now requires arguments.
- openais.conf.5 man page updated with logger directives.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1021 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-03 08:45:44 +00:00
Patrick Caulfield
e92a77598b Cope with >32 groups on a node that goes down.
Add a missing endian conversion.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1020 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-02 14:49:23 +00:00
Steven Dake
b6543dd3c4 Fix comile failures for BSD/Darwin port
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1019 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-30 04:57:22 +00:00
Steven Dake
e92d65ba90 add vsf none option for those that don't want a virtual synchrony filter
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1018 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-30 04:52:21 +00:00