rpms/ctdb/devel 0001-Fixes-for-init-script-to-meet-guidelines.patch, NONE, 1.1 .cvsignore, 1.12, 1.13 ctdb.spec, 1.15, 1.16 sources, 1.12, 1.13

sbose sbose at fedoraproject.org
Tue Dec 8 13:15:22 UTC 2009


Author: sbose

Update of /cvs/pkgs/rpms/ctdb/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26592

Modified Files:
	.cvsignore ctdb.spec sources 
Added Files:
	0001-Fixes-for-init-script-to-meet-guidelines.patch 
Log Message:
Update to ctdb version 1.0.108
- added fix for bz537223
- added tdb-tools to Requires, fixes bz526479



0001-Fixes-for-init-script-to-meet-guidelines.patch:
 ctdb.init |   25 +++++++++++++++----------
 1 file changed, 15 insertions(+), 10 deletions(-)

--- NEW FILE 0001-Fixes-for-init-script-to-meet-guidelines.patch ---
>From f3aafa1329088531fdff480d37cec8c43125168a Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose at redhat.com>
Date: Tue, 24 Nov 2009 23:11:28 +0100
Subject: [PATCH] Fixes for init script to meet guidelines

---
 config/ctdb.init |   24 +++++++++++++++---------
 1 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/config/ctdb.init b/config/ctdb.init
index 67747fd..ca2f0fc 100755
--- a/config/ctdb.init
+++ b/config/ctdb.init
@@ -137,7 +137,7 @@ start() {
 
     ctdb ping >/dev/null 2>&1 && {
 	echo $"CTDB is already running"
-	return 1
+	return 0
     }
 
     build_ctdb_options
@@ -153,7 +153,7 @@ start() {
     case $init_style in
 	valgrind)
 	    valgrind -q --log-file=/var/log/ctdb_valgrind \
-		$ctdbd --nosetsched $CTDB_OPTIONS 
+		$ctdbd --nosetsched $CTDB_OPTIONS
 	    RETVAL=$?
 	    echo
 	    ;;
@@ -180,7 +180,7 @@ start() {
     set_ctdb_variables
 
     return $RETVAL
-}	
+}
 
 stop() {
     echo -n $"Shutting down ctdbd service: "
@@ -227,20 +227,26 @@ stop() {
 restart() {
     stop
     start
-}	
+}
 
 status() {
     echo -n $"Checking for ctdbd service: "
     ctdb ping >/dev/null 2>&1 || {
 	RETVAL=$?
-	echo -n "  ctdbd not running. "
 	case $init_style in
 	    suse)
+		echo -n "  ctdbd not running. "
 		set_retval $RETVAL
 		rc_status -v
 		;;
 	    redhat)
-		echo ""
+		if [ -f /var/lock/subsys/ctdb ]; then
+			echo $"ctdb dead but subsys locked"
+			RETVAL=2
+		else
+			echo $"ctdb is stopped"
+			RETVAL=3
+		fi
 		;;
 	esac
 	return $RETVAL
@@ -257,13 +263,13 @@ case "$1" in
     stop)
   	stop
 	;;
-    restart|reload)
+    restart|reload|force-reload)
   	restart
 	;;
     status)
   	status
 	;;
-    condrestart)
+    condrestart|try-restart)
   	ctdb status > /dev/null && restart || :
 	;;
     cron)
@@ -271,7 +277,7 @@ case "$1" in
   	ctdb status > /dev/null || restart
 	;;
     *)
-	echo $"Usage: $0 {start|stop|restart|status|cron|condrestart}"
+	echo $"Usage: $0 {start|stop|restart|reload|force-reload|status|cron|condrestart|try-restart}"
 	exit 1
 esac
 
-- 
1.6.5.2



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/ctdb/devel/.cvsignore,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -r1.12 -r1.13
--- .cvsignore	14 Oct 2009 07:30:19 -0000	1.12
+++ .cvsignore	8 Dec 2009 13:15:21 -0000	1.13
@@ -1 +1 @@
-ctdb-1.0.96.tar.bz2
+ctdb-1.0.108.tar.bz2


Index: ctdb.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ctdb/devel/ctdb.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -p -r1.15 -r1.16
--- ctdb.spec	14 Oct 2009 07:30:19 -0000	1.15
+++ ctdb.spec	8 Dec 2009 13:15:22 -0000	1.16
@@ -2,7 +2,7 @@
 
 Summary: A Clustered Database based on Samba's Trivial Database (TDB)
 Name: ctdb
-Version: 1.0.96
+Version: 1.0.108
 Release: 1%{?dist}
 License: GPLv3+
 Group: System Environment/Daemons
@@ -17,8 +17,12 @@ Source0: %{name}-%{version}.tar.bz2
 # Fedora specific patch, ctdb should not be enabled by default in the runlevels
 Patch1: ctdb-no_default_runlevel.patch
 
+# Fix for bz537223, submitted to upstream for review http://lists.samba.org/archive/samba-technical/2009-November/068016.html
+Patch2: 0001-Fixes-for-init-script-to-meet-guidelines.patch
+
 Requires: chkconfig coreutils psmisc
 Requires: fileutils sed
+Requires: tdb-tools
 Requires(preun): chkconfig initscripts
 Requires(post): chkconfig
 Requires(postun): initscripts
@@ -51,6 +55,7 @@ and use CTDB instead.
 # setup the init script and sysconfig file
 %setup -T -D -n ctdb-%{version} -q
 %patch1 -p1
+%patch2 -p1
 
 %build
 
@@ -77,6 +82,10 @@ make DESTDIR=$RPM_BUILD_ROOT install
 install -m644 config/ctdb.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ctdb
 install -m755 config/ctdb.init $RPM_BUILD_ROOT%{initdir}/ctdb
 
+mkdir -p $RPM_BUILD_ROOT%{_docdir}/ctdb/tests/bin
+install -m755 tests/bin/ctdb_transaction $RPM_BUILD_ROOT%{_docdir}/ctdb/tests/bin
+
+
 # Remove "*.old" files
 find $RPM_BUILD_ROOT -name "*.old" -exec rm -f {} \;
 
@@ -132,6 +141,138 @@ fi
 %{_libdir}/pkgconfig/ctdb.pc
 
 %changelog
+* Tue Dec 8 2009 Sumit Bose <sbose at redhat.com> - 1.0.108-1
+ - Update to ctdb version 1.0.108
+ - added fix for bz537223
+ - added tdb-tools to Requires, fixes bz526479
+
+* Wed Dec 2 2009 Sumit Bose <sbose at redhat.com> - 1.0.107-1
+ - Update to ctdb version 1.0.107
+
+* Wed Dec 2 2009 : Version 1.0.107
+ - fix for rusty to solve a double-free that can happen when there are
+   multiple packets queued and the connection is destroyed before
+   all packets are processed.
+
+* Tue Dec 1 2009 : Version 1.0.106
+ - Buildscript changes from Michael Adam
+ - Dont do a full recovery when there is a mismatch detected for ip addresses,
+   just do a less disruptive ip-reallocation
+ - When starting ctdbd, wait until all initial recoveries have finished
+   before we issue the "startup" event.
+   So dont start services or monitoring until the cluster has
+   stabilized.
+ - Major eventscript overhaul by Ronnie, Rusty and Martins and fixes of a few
+   bugs found.
+
+* Thu Nov 19 2009 : Version 1.0.105
+ - Fix a bug where we could SEGV if multiple concurrent "ctdb eventscript ..."
+   are used and some of them block.
+ - Monitor the daemon from the syslog child process so we shutdown cleanly when
+   the main daemon terminates.
+ - Add a 500k line ringbuffer in memory where all log messages are stored.
+ - Add a "ctdb getlog <level>" command to pull log messages from the in memory
+   ringbuffer.
+ - From martin : fixes to cifs and nfs autotests
+ - from michael a : fix a bashism in 11.natgw
+
+* Fri Nov 6 2009 : Version 1.0.104
+ - Suggestion from Metze, we can now use killtcp to kill local connections
+   for nfs so change the killtcp script to kill both directions of an NFS
+   connection.
+   We used to deliberately only kill one direction in these cases due to
+   limitations.
+ - Suggestion from christian Ambach, when using natgw, try to avoid using a
+   UNHEALTHY node as the natgw master.
+ - From Michael Adam: Fix a SEGV bug in the recent change to the eventscripts
+   to allow the timeout to apply to each individual script.
+ - fix a talloc bug in teh vacuuming code that produced nasty valgrind
+   warnings.
+ - From Rusty: Set up ulimit to create core files for ctdb, and spawned
+   processes by default. This is useful for debugging and testing but can be
+   disabled by setting CTDB_SUPRESS_COREFILE=yes in the sysconfig file.
+ - Remove the wbinfo -t check from the startup check that winbindd is happy.
+ - Enhance the test for bond devices so we also check if the sysadmin have
+   disabled all slave devices using "ifdown".
+
+* Tue Nov 3 2009 : Version 1.0.103
+ - Dont use vacuuming on persistent databases
+ - Michael A : transaction updates to persistent databases
+ - Dont activate service automatically when installing the RPM. Leave this to
+   the admin.
+ - Create a child process to send all log messages to, to prevent a hung/slow
+   syslogd from blocking the main daemon. In this case, discard log messages
+   instead and let the child process block.
+ - Michael A: updates to log messages
+
+* Thu Oct 29 2009 : Version 1.0.102
+ - Wolfgang: fix for the vacuuming code
+ - Wolfgang: stronger tests for persistent database filename tests
+ - Improve the log message when we refuse to startup since wbinfo -t fails
+   to make it easier to spot in the log.
+ - Update the uptime command output and the man page to indicate that
+   "time since last ..." if from either the last recovery OR the last failover
+ - Michael A: transaction updates
+
+* Wed Oct 28 2009 : Version 1.0.101
+ - create a separate context for non-monitoring events so they dont interfere
+   with the monitor event
+ - make sure to return status 0 in teh callback when we abort an event
+
+* Wed Oct 28 2009 : Version 1.0.100
+ - Change eventscript handling to allow EventScriptTimeout for each individual
+   script instead of for all scripts as a whole.
+ - Enhanced logging from the eventscripts, log the name and the duration for
+   each script as it finishes.
+ - Add a check to use wbinfo -t for the startup event of samba
+ - TEMP: allow clients to attach to databases even when teh node is in recovery
+   mode
+ - dont run the monitor event as frequently after an event has failed
+ - DEBUG: in the eventloops, check the local time and warn if the time changes
+   backward or rapidly forward
+ - From Metze, fix a bug where recovery master becoming unhealthy did not
+   trigger an ip failover.
+ - Disable the multipath script by default
+ - Automatically re-activate the reclock checking if the reclock file is
+   specified at runtime. Update manpage to reflect this.
+ - Add a mechanism where samba can register a SRVID and if samba unexpectedly
+   disconnects, a message will be broadcasted to all other samba daemons.
+ - Log the pstree on hung scripts to a file in /tmp isntead of
+   /var/log/messages
+ - change ban count before unhealthy/banned to 10
+
+* Thu Oct 22 2009 : Version 1.0.99
+ - Fix a SEGV in the new db priority code.
+ - From Wolfgang : eliminate a ctdb_fatal() if there is a dmaster violation
+   detected.
+ - During testing we often add/delete eventscripts at runtime. This could cause
+   an eventscript to fail and mark the node unhealthy if an eventscript was
+   deleted while we were listing the names. Handle the errorcode and make sure
+   the node does not becomne unhealthy in this case.
+ - Lower the debuglevel for the messages when ctdb creates a filedescruiptor so
+   we dont spam the logs with these messages.
+ - Dont have the RPM automatically restart ctdb
+ - Volker : add a missing transaction_cancel() in the handling of persistent
+   databases
+ - Treat interfaces with the anme ethX* as bond devices in 10.interfaces so we
+   do the correct test for if they are up or not.
+
+* Tue Oct 20 2009 : Version 1.0.98
+ - Fix for the vacuuming database from Wolfgang M
+ - Create a directory where the test framework can put temporary overrides
+   to variables and functions.
+ - Wait a lot longer before shutting down the node when the reclock file
+   is incorrectly configured, and log where it is configured.
+ - Try to avoid running the "monitor" event when databases are frozen.
+ - Add logging for every time we create a filedescriptor so we can trap
+   fd leaks.
+
+* Thu Oct 14 2009 : Version 1.0.97
+ - From martins : update onnode.
+   Update onnode to allow specifying an alternative nodes file from
+   the command line and also to be able to specify hostnames on the
+   list of targets :
+   onnode host1,host2,...
 * Wed Oct 14 2009 Sumit Bose <sbose at redhat.com> - 1.0.96-1
  - Update to ctdb version 1.0.96
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/ctdb/devel/sources,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -r1.12 -r1.13
--- sources	14 Oct 2009 07:30:19 -0000	1.12
+++ sources	8 Dec 2009 13:15:22 -0000	1.13
@@ -1 +1 @@
-c8cfa1a29780ae820b77f857464f877a  ctdb-1.0.96.tar.bz2
+a91d1dc747bb7f0216c9ddd7a0d25739  ctdb-1.0.108.tar.bz2




More information about the scm-commits mailing list