Cluster Project branch, RHEL4, updated. gfs-kernel_2_6_9_76-12-gdb6a74a
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, RHEL4 has been updated
via db6a74a9900257848aa4c07256b77b2d10a7db13 (commit)
via 5aeaf6345cd4672e0ef52a753b4f6cf56a64d5b5 (commit)
via 43571d7af75bdb6a0b19d40048da1491b6499efb (commit)
via df101a4507641607e5869f2f15c05cb1be6e0639 (commit)
from 1befab3b0e83584f08b06b816adbc0f8b9dc11ab (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 db6a74a9900257848aa4c07256b77b2d10a7db13
Author: Lon Hohberger <[email protected]> Date: Tue Mar 4 17:31:32 2008 -0500
[CMAN] make qdisk master abdication work in all cases
Red Hat bugzilla 430264
commit 5aeaf6345cd4672e0ef52a753b4f6cf56a64d5b5
Author: Lon Hohberger <[email protected]> Date: Tue Mar 11 14:54:49 2008 -0400
[rgmanager] Make ip.sh check link states of non-ethernet devices
Resolves: Red Hat Bugzilla #331661
commit 43571d7af75bdb6a0b19d40048da1491b6499efb
Author: Lon Hohberger <[email protected]> Date: Mon Mar 10 09:58:08 2008 -0400
Merge, part 2
commit df101a4507641607e5869f2f15c05cb1be6e0639
Author: Lon Hohberger <[email protected]> Date: Mon Mar 10 09:56:40 2008 -0400
Commit phase 1 of update from rhel5 branch
-----------------------------------------------------------------------
Summary of changes:
cman/qdisk/main.c | 3 +-
rgmanager/event-script.txt | 311 +++++
rgmanager/include/clulog.h | 2 +-
rgmanager/include/event.h | 145 +++
rgmanager/include/members.h | 35 +
rgmanager/include/reslist.h | 65 +-
.../include/{rg_locks.h => restart_counter.h} | 38 +-
rgmanager/include/rg_queue.h | 26 +-
rgmanager/include/{rg_locks.h => sets.h} | 51 +-
rgmanager/man/clusvcadm.8 | 13 +-
rgmanager/rgmanager/event-script.txt | 311 +++++
rgmanager/src/clulib/rg_strings.c | 208 +++-
rgmanager/src/clulib/sets.c | 370 ++++++
rgmanager/src/clulib/signals.c | 18 +
rgmanager/src/clulib/tmgr.c | 128 ++
rgmanager/src/daemons/event_config.c | 541 +++++++++
rgmanager/src/daemons/fo_domain.c | 113 ++-
rgmanager/src/daemons/groups.c | 366 +++++-
rgmanager/src/daemons/main.c | 2 +-
rgmanager/src/daemons/reslist.c | 92 ++-
rgmanager/src/daemons/resrules.c | 101 ++-
rgmanager/src/daemons/restart_counter.c | 205 ++++
rgmanager/src/daemons/restree.c | 532 ++++-----
rgmanager/src/daemons/rg_event.c | 573 +++++++++
rgmanager/src/daemons/service_op.c | 204 ++++
rgmanager/src/daemons/slang_event.c | 1264 ++++++++++++++++++++
rgmanager/src/daemons/test.c | 116 ++-
rgmanager/src/resources/Makefile | 9 +-
rgmanager/src/resources/clusterfs.sh | 59 +-
rgmanager/src/resources/default_event_script.sl | 314 +++++
rgmanager/src/resources/ip.sh | 18 +-
rgmanager/src/resources/ocf-shellfuncs | 4 +
rgmanager/src/resources/script.sh | 2 +-
rgmanager/src/resources/service.sh | 104 ++-
rgmanager/src/resources/svclib_nfslock | 28 +
.../src/resources/utils/named-parse-config.pl | 26 +
rgmanager/src/resources/utils/ra-skelet.sh | 2 +-
37 files changed, 5822 insertions(+), 577 deletions(-)
create mode 100644 rgmanager/event-script.txt
create mode 100644 rgmanager/include/event.h
create mode 100644 rgmanager/include/members.h
copy rgmanager/include/{rg_locks.h => restart_counter.h} (53%)
copy rgmanager/include/{rg_locks.h => sets.h} (53%)
create mode 100644 rgmanager/rgmanager/event-script.txt
create mode 100644 rgmanager/src/clulib/sets.c
create mode 100644 rgmanager/src/clulib/tmgr.c
create mode 100644 rgmanager/src/daemons/event_config.c
create mode 100644 rgmanager/src/daemons/restart_counter.c
create mode 100644 rgmanager/src/daemons/rg_event.c
create mode 100644 rgmanager/src/daemons/service_op.c
create mode 100644 rgmanager/src/daemons/slang_event.c
create mode 100644 rgmanager/src/resources/default_event_script.sl
create mode 100644 rgmanager/src/resources/utils/named-parse-config.plcman/qdisk/main.c +2 -1
@@ -935,7 +935,8 @@ quorum_loop(qd_ctx *ctx, node_info_t *ni, int max) ctx->qc_master =master_exists (ctx, ni, max, &low_id, &count);/* Resolve master conflict, if one exists */ -if (count >1 && ctx->qc_status ==S_MASTER ) { +if (count >=1 && ctx->qc_status ==S_MASTER && + ctx->qc_master != ctx->qc_my_id) {clulog (LOG_WARNING ,"Master conflict: abdicating\n" );/* Handle just like a recent upgrade */
rgmanager/event-script.txt new file +311 -0
311 lines not on this page · raw message
rgmanager/include/clulog.h +1 -1
@@ -38,7 +38,7 @@ extern "C" {#include <syslog.h> #include <sys/types.h> -#define LOGLEVEL_DFLT LOG_INFO +#define LOGLEVEL_DFLT LOG_NOTICE#define MAX_LOGMSG_LEN 512/*
rgmanager/include/event.h new file +145 -0
145 lines not on this page · raw message
rgmanager/include/members.h new file +35 -0
@@ -0,0 +1,35 @@ +#ifndef _MEMBERS_H +#define _MEMBERS_H + +#include <rg_types.h> + +typedef enum { +NODE_STATE_DOWN =0 , +NODE_STATE_UP =1 , +NODE_STATE_CLEAN =2 +}node_state_t ; + + +int get_my_nodeid (cman_handle_t h); +int my_id (void ); +cluster_member_list_t *get_member_list (cman_handle_t h); +void free_member_list (cluster_member_list_t *ml); +void member_set_state (int nodeid,int state); +int memb_count (cluster_member_list_t *ml); +int member_online (int nodeid); +int memb_online (cluster_member_list_t *ml,int nodeid); +int memb_online_name (cluster_member_list_t *ml,char *name); +int memb_name_to_id (cluster_member_list_t *ml,char *name); +int memb_mark_down (cluster_member_list_t *ml,int nodeid); +char *memb_id_to_name (cluster_member_list_t *ml,int nodeid); +cman_node_t *memb_id_to_p (cluster_member_list_t *ml,int nodeid); +cman_node_t *memb_name_to_p (cluster_member_list_t *ml,char *name); +void free_member_list (cluster_member_list_t *ml); +cluster_member_list_t *memb_gained (cluster_member_list_t *old, +cluster_member_list_t *new); +cluster_member_list_t *memb_lost (cluster_member_list_t *old, +cluster_member_list_t *new); + +cluster_member_list_t *member_list_dup (cluster_member_list_t *old); + +#endif
rgmanager/include/reslist.h +31 -34
136 lines not on this page · raw message
rgmanager/include/restart_counter.h renamed from rgmanager/include/rg_locks.h +11 -27
@@ -1,5 +1,5 @@/* -Copyright Red Hat, Inc. 2004-2007 +Copyright Red Hat, Inc. 2007 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published
@@ -15,34 +15,18 @@Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#ifndef __RG_LOCKS_H -#define __RG_LOCKS_H +/* Time-based restart counters for rgmanager */ -int rg_running (void ); +#ifndef _RESTART_COUNTER_H +#define _RESTART_COUNTER_H -int rg_locked (void ); -int rg_lockall (int flag); -int rg_unlockall (int flag); +typedef void *restart_counter_t ; -int rg_quorate (void ); -int rg_set_quorate (void ); -int rg_set_inquorate (void ); - -int rg_inc_threads (void ); -int rg_dec_threads (void ); -int rg_wait_threads (void ); - -int rg_initialized (void ); -int rg_set_initialized (void ); -int rg_set_uninitialized (void ); -int rg_wait_initialized (void ); - -int rg_inc_status (void ); -int rg_dec_status (void ); -int rg_set_statusmax (int max); - -int ccs_lock (void ); -int ccs_unlock (int fd); +int restart_add (restart_counter_t arg); +int restart_clear (restart_counter_t arg); +int restart_count (restart_counter_t arg); +int restart_treshold_exceeded (restart_counter_t arg); +restart_counter_t restart_init (time_t expire_timeout,int max_restarts); +int restart_cleanup (restart_counter_t arg);#endif -
rgmanager/include/rg_queue.h +23 -3
@@ -1,9 +1,27 @@ +/* +Copyright Red Hat, Inc. 2004-2007 + +This program is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License version 2 as published +by the Free Software Foundation. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +MA 02139, USA. +*/ #ifndef _RG_QUEUE_H#define _RG_QUEUE_H#include <list.h> #include <stdint.h> #include <sys/time.h> #include <unistd.h> +#include <message.h> /**
@@ -15,12 +33,12 @@ typedef struct _request {uint32_t rr_request;/** Request */ uint32_t rr_errorcode;/** Error condition */ uint32_t rr_orig_request;/** Original request */ -uint32_t rr_resp_fd;/** FD to send response */ uint64_t rr_target;/** Target node */ uint32_t rr_arg0;/** Integer argument */ uint32_t rr_arg1;/** Integer argument */ +uint32_t rr_arg2;/** Integer argument */ uint32_t rr_line;/** Line no */ -uint32_t _pad_;/** pad */ +uint32_t rr_resp_fd;/** FD to send response */ char *rr_file;/** Who made req */ time_t rr_when;/** time to execute */ } request_t;
@@ -28,7 +46,7 @@ typedef struct _request {int _rq_queue_request (request_t **queue,char *name,uint32_t request,uint32_t err,uint32_t oldreq,uint32_t fd,time_t when, -uint64_t target,uint32_t arg0,uint32_t arg1,char *file, +uint36_t target,uint32_t arg0,uint32_t arg1,char *file,int line); #define rq_queue_request(queue, name, request, err, oldreq,\
@@ -41,5 +59,7 @@ int rq_queue_empty(request_t **q);void rq_free (request_t *foo);void forward_request (request_t *req); +void forward_message (int fd,void *msg,int nodeid); +#endif
rgmanager/include/sets.h renamed from rgmanager/include/rg_locks.h +21 -30
60 lines not on this page · raw message
rgmanager/man/clusvcadm.8 +4 -9
@@ -49,12 +49,8 @@ service Lock the local resource group manager. This should only be used if the administrator intends to perform a global, cluster-wide shutdown. This prevents starting resource groups on the local node, allowing -services will not fail over during the shutdown of the cluster. Generally, -administrators should use the -.B -clushutdown(8) -command to accomplish this. Once the cluster quorum is dissolved, this -state is reset. +services will not fail over during the shutdown of the cluster. +Once the cluster quorum is dissolved, this state is reset. .IP "\-m <member>" When used in conjunction with either the .B
@@ -88,11 +84,10 @@ service until a member transition or until it is enabled again. .IP \-u Unlock the cluster's service managers. This allows services to transition -again. It will be necessary to re-enable all services in the stopped state -if this is run after \fB clushutdown(8)\fR. +again. .IP \-v Display version information and exit. .SH "SEE ALSO" -clustat(8), clushutdown(8) +clustat(8)
rgmanager/rgmanager/event-script.txt new file +311 -0
311 lines not on this page · raw message
rgmanager/src/clulib/rg_strings.c +176 -32
211 lines not on this page · raw message
rgmanager/src/clulib/sets.c new file +370 -0
370 lines not on this page · raw message
rgmanager/src/clulib/signals.c +18 -0
@@ -1,3 +1,21 @@ +/* +Copyright Red Hat, Inc. 2003-2006 + +This program is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 2, or (at your option) any +later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +MA 02139, USA. +*/ #include <signal.h> #include <stdlib.h> #include <string.h>
rgmanager/src/clulib/tmgr.c new file +128 -0
128 lines not on this page · raw message
rgmanager/src/daemons/event_config.c new file +541 -0
541 lines not on this page · raw message
rgmanager/src/daemons/fo_domain.c +107 -6
173 lines not on this page · raw message
rgmanager/src/daemons/groups.c +324 -42
408 lines not on this page · raw message
rgmanager/src/daemons/reslist.c +74 -18
92 lines not on this page · raw message
rgmanager/src/daemons/resrules.c +83 -18
101 lines not on this page · raw message
rgmanager/src/daemons/restart_counter.c new file +205 -0
205 lines not on this page · raw message
rgmanager/src/daemons/restree.c +233 -299
532 lines not on this page · raw message
rgmanager/src/daemons/rg_event.c new file +573 -0
573 lines not on this page · raw message
rgmanager/src/daemons/service_op.c new file +204 -0
204 lines not on this page · raw message
rgmanager/src/daemons/slang_event.c new file +1264 -0
1,264 lines not on this page · raw message
rgmanager/src/daemons/test.c +110 -6
116 lines not on this page · raw message
rgmanager/src/resources/clusterfs.sh +40 -19
59 lines not on this page · raw message
rgmanager/src/resources/default_event_script.sl new file +314 -0
314 lines not on this page · raw message
rgmanager/src/resources/service.sh +90 -14
104 lines not on this page · raw message
rgmanager/src/resources/svclib_nfslock +28 -0
Lines of this file are not shown. View the raw message.
rgmanager/src/resources/utils/named-parse-config.pl new file +26 -0
Lines of this file are not shown. View the raw message.
rgmanager/src/resources/utils/ra-skelet.sh +1 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
hooks/post-receive
--
Cluster Project
Part of the diff is not shown here. View the raw message.