cluster/rgmanager ChangeLog errors.txt init.d/ ...
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4
Changes by: lhh at sourceware.org 2006-09-07 18:39:45
Modified files:
rgmanager : ChangeLog errors.txt
rgmanager/init.d: rgmanager
rgmanager/src/daemons: main.c
rgmanager/src/utils: clustat.c
Log message:
2006-09-07 Lon Hohberger <[email protected]>
* src/daemons/main.c, init.d/rgmanager: Make rgmanager init script report failure correctly in most cases. (#193603)
* src/utils/clustat.c: Fix #146924 - segfault if cman is not in a state to give out member lists
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/ChangeLog.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.5.2.20&r2=1.5.2.21
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/errors.txt.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.4&r2=1.1.2.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/init.d/rgmanager.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.3.2.2&r2=1.3.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/main.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.9.2.17&r2=1.9.2.18
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/utils/clustat.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.5.2.13&r2=1.5.2.14
rgmanager/ChangeLog +6 -0
@@ -1,3 +1,9 @@ +2006-09-07 Lon Hohberger <[email protected]> + * src/daemons/main.c, init.d/rgmanager: Make rgmanager init script + report failure correctly in most cases. (#193603) + * src/utils/clustat.c: Fix #146924 - segfault if cman is not + in a state to give out member lists + 2006-06-21 Lon Hohberger <[email protected]> * src/daemons/nodeevent.c: Don't use the rg thread refcount in node event handling (#194491)
rgmanager/errors.txt +3 -1
@@ -76,7 +76,9 @@ The resource group manager was unable to find a plugin which was able to talk to the cluster infrastructure. Generally, this occurs when no cluster infrastruture is running. Try starting the preferred cluster infrastructure -for your configuration (e.g. CMAN+DLM, GuLM) and restarting rgmanager. +for your configuration (e.g. CMAN+DLM, GuLM) and restarting rgmanager. This +can also occur if CMAN is loaded, while DLM is not. Rgmanager (really, +the SM magma plugin) requires that the DLM be loaded prior to starting. #10: Couldn't set up listen socket
rgmanager/init.d/rgmanager +1 -0
@@ -93,6 +93,7 @@ case $1 in start) + [ -z "$RGMGR_OPTS" ] && RGMGR_OPTS="-t 30" echo -n $"Starting $ID: " daemon $RGMGRD $RGMGR_OPTS echo
rgmanager/src/daemons/main.c +56 -2
114 lines not on this page · raw message
rgmanager/src/utils/clustat.c +12 -1
@@ -486,6 +486,11 @@ {int x; +if (!membership) { +printf ("Membership information not available\n" ); +return ; + } +printf (" %-40.40s %s\n" ,"Member Name" ,"Status" );printf (" %-40.40s %s\n" ,"------ ----" ,"------" );
@@ -504,8 +509,10 @@ {int x; -if (!membership) +if (!membership) { +printf (" <nodes/>\n" );return ; + }printf (" <nodes>\n" );for (x =0 ; x < membership->cml_count; x++) {
@@ -608,6 +615,10 @@/* Grab the local node ID and flag it from the list of reported online nodes */ clu_local_nodeid (NULL , lid); + +if (!all) +return NULL ; +for (x=0 ; x<all->cml_count; x++) {if (all->cml_members[x].cm_id == *lid) { m = &all->cml_members[x];