Cluster Project branch, master, updated. cluster-2.99.05-13-g3b32463
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Cluster Project".
The branch, master has been updated
via 3b32463d209192a074ffdc9988c25b25136f3c91 (commit)
via 4f823b80d31b23dacba7c6f510d1a843da37ac52 (commit)
via 5f834f0a0a8e311fd7ec9766769c3200defd7963 (commit)
via 5e21129f9c53eda20aa5c24d844800720bf70d48 (commit)
from 95a5c6b13294742956b13070ebc4f4513278255f (commit)Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 3b32463d209192a074ffdc9988c25b25136f3c91
Author: Fabio M. Di Nitto <[email protected]> Date: Wed Jun 25 06:53:51 2008 +0200
[FENCE] fenced: update man page
commit 4f823b80d31b23dacba7c6f510d1a843da37ac52
Author: Fabio M. Di Nitto <[email protected]> Date: Wed Jun 25 06:44:49 2008 +0200
[CMAN] Remove unrequired includes
commit 5f834f0a0a8e311fd7ec9766769c3200defd7963
Author: Fabio M. Di Nitto <[email protected]> Date: Wed Jun 25 06:41:54 2008 +0200
[FENCE] fence_node: use logsys for logging to syslog
commit 5e21129f9c53eda20aa5c24d844800720bf70d48
Author: Fabio M. Di Nitto <[email protected]> Date: Wed Jun 25 06:34:08 2008 +0200
[CCS] Use common syslog facility
-----------------------------------------------------------------------
Summary of changes:
ccs/ccsais/config.c | 2 +- cman/daemon/ais.c | 1 - cman/daemon/barrier.c | 1 - cman/daemon/daemon.c | 1 - cman/daemon/logging.c | 1 - fence/fence_node/Makefile | 3 ++- fence/fence_node/fence_node.c | 15 ++++++++++----- fence/man/fenced.8 | 2 +- 8 files changed, 14 insertions(+), 12 deletions(-)
ccs/ccsais/config.c +1 -1
@@ -186,7 +186,7 @@ static int ccs_readconfig(struct objdb_iface_ver0 *objdb, char **error_string)int ret;/* We need to set this up to internal defaults too early */ -openlog ("openais" ,LOG_CONS |LOG_PID ,LOG_LOCAL4 ); +openlog ("openais" ,LOG_CONS |LOG_PID ,SYSLOGFACILITY );/* Read low-level totem/aisexec etc config from CCS */ if ( !(ret =init_config (objdb, error_reason)) )
cman/daemon/ais.c +0 -1
@@ -7,7 +7,6 @@#include <stdarg.h> #include <unistd.h> #include <string.h> -#include <syslog.h> #include <signal.h> #include <sys/socket.h> #include <sys/utsname.h>
cman/daemon/barrier.c +0 -1
@@ -3,7 +3,6 @@#include <stdio.h> #include <fcntl.h> #include <unistd.h> -#include <syslog.h> #include <string.h> #include <sys/time.h> #include <unistd.h>
cman/daemon/daemon.c +0 -1
@@ -4,7 +4,6 @@#include <stdio.h> #include <fcntl.h> #include <unistd.h> -#include <syslog.h> #include <string.h> #include <sys/time.h> #include <unistd.h>
cman/daemon/logging.c +0 -1
@@ -1,4 +1,3 @@ -#include <syslog.h> #include <stdarg.h> #include <stdio.h> #include <string.h>
fence/fence_node/Makefile +2 -1
@@ -14,11 +14,12 @@ OBJS= fence_node.o CFLAGS += -D_FILE_OFFSET_BITS=64 -CFLAGS += -I${ccsincdir} -I${fenceincdir} +CFLAGS += -I${ccsincdir} -I${fenceincdir} -I${openaisincdir} CFLAGS += -I$(S)/../libfenced CFLAGS += -I${incdir} LDFLAGS += -L${ccslibdir} -L${fencelibdir} -lccs -lfence +LDFLAGS += -L${openaislibdir} -llogsys LDFLAGS += -L../libfenced -lfenced ${TARGET}: ${OBJS}
fence/fence_node/fence_node.c +10 -5
@@ -3,7 +3,7 @@#include <unistd.h> #include <stdint.h> #include <string.h> -#include <syslog.h> +#include <openais/service/logsys.h> #include "libfence.h" #include "libfenced.h"
@@ -22,6 +22,13 @@ while (0)static char *prog_name; +LOGSYS_DECLARE_SYSTEM (NULL , +LOG_MODE_OUTPUT_STDERR |LOG_MODE_OUTPUT_SYSLOG_THREADED , +NULL , +SYSLOGFACILITY ); + +LOGSYS_DECLARE_SUBSYS ("FENCE_NODE" ,LOG_LEVEL_INFO ); +static void print_usage (void ) {printf ("Usage:\n" );
@@ -85,15 +92,13 @@ int main(int argc, char *argv[])if (!victim)die ("no node name specified" ); -openlog ("fence_node" ,LOG_PID ,LOG_USER ); - error =fence_node (victim);if (error) { -syslog (LOG_ERR ,"Fence of \"%s\" was unsuccessful\n" , victim); +log_printf (LOG_ERR ,"Fence of \"%s\" was unsuccessful\n" , victim);exit (EXIT_FAILURE ); }else { -syslog (LOG_NOTICE ,"Fence of \"%s\" was successful\n" , victim); +log_printf (LOG_NOTICE ,"Fence of \"%s\" was successful\n" , victim);/* Tell fenced what we've done so that it can avoid fencing this node again if the fence_node() rebooted it. */
fence/man/fenced.8 +1 -1
@@ -49,7 +49,7 @@ until fencing succeeds. Other systems such as DLM and GFS will not begin their own recovery for a failed node until fenced has successfully completed fencing it. So, a delay or problem in fencing will result in other systems like DLM/GFS being blocked. Information about fencing -operations will appear in syslog. +operations will also appear in syslog. When a domain member fails, the actual fencing operation can be delayed by a configurable number of seconds (cluster.conf:post_fail_delay or -f).
hooks/post-receive
--
Cluster Project