Hello community, here is the log from the commit of package ctdb for openSUSE:Factory checked in at 2013-07-12 20:44:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ctdb (Old) and /work/SRC/openSUSE:Factory/.ctdb.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ctdb" Changes: -------- --- /work/SRC/openSUSE:Factory/ctdb/ctdb.changes 2012-10-25 10:59:19.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ctdb.new/ctdb.changes 2013-07-12 20:44:43.000000000 +0200 @@ -1,0 +2,82 @@ +Thu Jul 11 14:47:15 UTC 2013 - dd...@suse.com + +- Conditionally package the CTDB Perforance Co-Pilot monitoring agent. + + Only built if suse_version is greater than 1140. + + Add ctdb-pcp-pmda-rpmlintrc to filter out devel-file-in-non-devel-package + warning. + +------------------------------------------------------------------- +Thu Jul 11 13:22:36 UTC 2013 - dd...@suse.com + +- Update to version 2.3 + + 2 new configuration variables for 60.nfs eventscript: + - CTDB_MONITOR_NFS_THREAD_COUNT + - CTDB_NFS_DUMP_STUCK_THREADS + + Removed DeadlockTimeout tunable. To enable debug of locking issues set + CTDB_DEBUG_LOCKS=/etc/ctdb/debug_locks.sh + + In overall statistics and database statistics, lock buckets have been + updated to use following timings: + < 1ms, < 10ms, < 100ms, < 1s, < 2s, < 4s, < 8s, < 16s, < 32s, < 64s, >= 64s + + Initscript is now simplified with most CTDB-specific functionality + split out to ctdbd_wrapper, which is used to start and stop ctdbd. + + Add systemd support. + + CTDB subprocesses are now given informative names to allow them to + be easily distinguished when using programs like "top" or "perf". + + ctdb tool should not exit from a retry loop if a control times out + (e.g. under high load). This simple fix will stop an exit from the + retry loop on any error. + + When updating flags on all nodes, use the correct updated flags. This + should avoid wrong flag change messages in the logs. + + The recovery daemon will not ban other nodes if the current node + is banned. + + ctdb dbstatistics command now correctly outputs database statistics. + + Fixed a panic with overlapping shutdowns (regression in 2.2). + + Fixed 60.ganesha "monitor" event (regression in 2.2). + + Fixed a buffer overflow in the "reloadips" implementation. + + Fixed segmentation faults in ping_pong (called with incorrect + argument) and test binaries (called when ctdbd not running). + + The recovery daemon on stopped or banned node will stop participating in any + cluster activity. + + Improve cluster wide database traverse by sending the records directly from + traverse child process to requesting node. + + TDB checking and dropping of all IPs moved from initscript to "init" + event in 00.ctdb. + + To avoid "rogue IPs" the release IP callback now fails if the + released IP is still present on an interface. + +- Update to version 2.2 + + The "stopped" event has been removed. + + New --pidfile option for ctdbd, used by initscript + + The 60.nfs eventscript now uses configuration files in + /etc/ctdb/nfs-rpc-checks.d/ for timeouts and actions instead of + hardcoding them into the script. + + Notification handler scripts can now be dropped into /etc/ctdb/notify.d/. + + The NoIPTakeoverOnDisabled tunable has been renamed to + NoIPHostOnAllDisabled and now works properly when set on individual + nodes. + + New ctdb subcommand "runstate" prints the current internal runstate. + Runstates are used for serialising startup. + + The Unix domain socket is now set to non-blocking after the + connection succeeds. This avoids connections failing with EAGAIN + and not being retried. + + Fetching from the log ringbuffer now succeeds if the buffer is full. + + Fix a severe recovery bug that can lead to data corruption for SMB clients. + + The statd-callout script now runs as root via sudo. + + "ctdb delip" no longer fails if it is unable to move the IP. + + A race in the ctdb tool's ipreallocate code was fixed. This fixes + potential bugs in the "disable", "enable", "stop", "continue", + "ban", "unban", "ipreallocate" and "sync" commands. + + The monitor cancellation code could sometimes hang indefinitely. + This could cause "ctdb stop" and "ctdb shutdown" to fail. + + The socket I/O handling has been optimised to improve performance. + + IPs will not be assigned to nodes during CTDB initialisation. They + will only be assigned to nodes that are in the "running" runstate. + + Improved database locking code. One improvement is to use a + standalone locking helper executable - the avoids creating many + forked copies of ctdbd and potentially running a node out of memory. + + New control CTDB_CONTROL_IPREALLOCATED is now used to generate + "ipreallocated" events. + + Message handlers are now indexed, providing a significant + performance improvement. + +------------------------------------------------------------------- Old: ---- ctdb-1.2.52.tar.bz2 New: ---- ctdb-2.3.tar.gz ctdb-pcp-pmda-rpmlintrc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ctdb.spec ++++++ --- /var/tmp/diff_new_pack.BKZUC5/_old 2013-07-12 20:44:44.000000000 +0200 +++ /var/tmp/diff_new_pack.BKZUC5/_new 2013-07-12 20:44:44.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package ctdb # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,16 +15,19 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%if 0%{?suse_version} > 1140 +%define build_pmda 1 +%endif Summary: Clustered TDB License: GPL-3.0+ Group: System/Daemons Name: ctdb -Version: 1.2.52 +Version: 2.3 Release: 0 Url: http://ctdb.samba.org/ -Source: ctdb-%{version}.tar.bz2 +Source: ctdb-%{version}.tar.gz Source1: ctdb-sysconfig-suse.template Patch1: ctdb-socket-path.patch %if 0%{?suse_version} @@ -47,6 +50,9 @@ %else BuildRequires: pkgconfig %endif +%if 0%{?build_pmda} +BuildRequires: libpcp-devel +%endif %description ctdb is the clustered database used by Samba @@ -59,6 +65,17 @@ This package contains the static libraries and header files needed to develop programs which make use of ctdb. +%if 0%{?build_pmda} +%package pcp-pmda +Summary: Performance Co-Pilot (PCP) monitoring agent +Group: System/Monitoring + +%description pcp-pmda +The CTDB Performance Co-Pilot (PCP) monitoring agent allows remote PCP +clients to view and capture detailed real-time performance metrics for +one or more cluster nodes. +%endif + %prep %setup -q %patch1 -p1 @@ -75,7 +92,11 @@ -Ilib/tdb \ -Ilib/tevent export CFLAGS="$RPM_OPT_FLAGS $EXTRA -O0 -D_GNU_SOURCE -DCTDB_VERS=\"%{version}-%{release}\"" +%if 0%{?build_pmda} +%{configure} --enable-pmda +%else %{configure} +%endif %{__make} %{?_smp_mflags} docdir=%{_docdir} %install @@ -94,6 +115,8 @@ %{__install} -m 0644 config/ctdb.sysconfig ${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/ctdb %endif %{__install} -m 0755 config/ctdb.init ${RPM_BUILD_ROOT}/%{initdir}/ctdb +# sudo can be used by statd-callout, but is not needed +rm ${RPM_BUILD_ROOT}/%{_sysconfdir}/sudoers.d/ctdb %preun %if 0%{?suse_version} == 0 @@ -122,6 +145,7 @@ %defattr(-,root,root) %dir %{_sysconfdir}/ctdb %dir %{_sysconfdir}/ctdb/events.d +%dir %{_sysconfdir}/ctdb/nfs-rpc-checks.d %if 0%{?suse_version} %{_var}/adm/fillup-templates/sysconfig.ctdb %else @@ -130,9 +154,6 @@ %config(noreplace) %{_sysconfdir}/ctdb/notify.sh %config(noreplace) %{_sysconfdir}/ctdb/functions %attr(755,root,root) %{initdir}/ctdb -%dir %{_defaultdocdir}/ctdb -%{_docdir}/ctdb/README.eventscripts -%{_docdir}/ctdb/recovery-process.txt %attr(775,root,root) %verify(not mode) %{_sysconfdir}/ctdb/events.d/00.ctdb %attr(644,root,root) %verify(not mode) %{_sysconfdir}/ctdb/events.d/01.reclock %attr(644,root,root) %verify(not mode) %{_sysconfdir}/ctdb/events.d/10.interface @@ -149,24 +170,30 @@ %attr(644,root,root) %verify(not mode) %{_sysconfdir}/ctdb/events.d/62.cnfs %attr(644,root,root) %verify(not mode) %{_sysconfdir}/ctdb/events.d/70.iscsi %attr(644,root,root) %verify(not mode) %{_sysconfdir}/ctdb/events.d/91.lvs -%{_sysconfdir}/ctdb/interface_modify.sh +%attr(644,root,root) %verify(not mode) %{_sysconfdir}/ctdb/events.d/40.fs_use +%attr(644,root,root) %verify(not mode) %{_sysconfdir}/ctdb/events.d/49.winbind +%attr(644,root,root) %verify(not mode) %{_sysconfdir}/ctdb/nfs-rpc-checks.d/10.statd.check +%attr(644,root,root) %verify(not mode) %{_sysconfdir}/ctdb/nfs-rpc-checks.d/20.nfsd.check +%attr(644,root,root) %verify(not mode) %{_sysconfdir}/ctdb/nfs-rpc-checks.d/30.lockd.check +%attr(644,root,root) %verify(not mode) %{_sysconfdir}/ctdb/nfs-rpc-checks.d/40.mountd.check +%attr(644,root,root) %verify(not mode) %{_sysconfdir}/ctdb/nfs-rpc-checks.d/50.rquotad.check %{_sysconfdir}/ctdb/ctdb-crash-cleanup.sh %{_sysconfdir}/ctdb/gcore_trace.sh %{_sysconfdir}/ctdb/statd-callout +%{_sysconfdir}/ctdb/debug-hung-script.sh %{_sbindir}/ctdbd +%{_sbindir}/ctdbd_wrapper %{_bindir}/ctdb %{_bindir}/smnotify %{_bindir}/ctdb_diagnostics %{_bindir}/ltdbtool %{_bindir}/onnode %{_bindir}/ping_pong +%{_bindir}/ctdb_lock_helper %dir %{_localstatedir}/lib/ctdb %dir %{_localstatedir}/lib/ctdb/persistent %dir %{_localstatedir}/log/ctdb -%{_mandir}/man1/ctdb.1.* -%{_mandir}/man1/ctdbd.1.* -%{_mandir}/man1/ltdbtool.1.* -%{_mandir}/man1/onnode.1.* +%{_mandir}/man1/* %files devel %defattr(-,root,root) @@ -178,4 +205,19 @@ %attr(644,root,root) %{_libdir}/libctdb.a %{_libdir}/pkgconfig/ctdb.pc +%if 0%{?build_pmda} +%files pcp-pmda +%defattr(-,root,root) +%dir %{_localstatedir}/lib/pcp +%dir %{_localstatedir}/lib/pcp/pmdas +%dir %{_localstatedir}/lib/pcp/pmdas/ctdb +%{_localstatedir}/lib/pcp/pmdas/ctdb/Install +%{_localstatedir}/lib/pcp/pmdas/ctdb/README +%{_localstatedir}/lib/pcp/pmdas/ctdb/Remove +%{_localstatedir}/lib/pcp/pmdas/ctdb/domain.h +%{_localstatedir}/lib/pcp/pmdas/ctdb/help +%{_localstatedir}/lib/pcp/pmdas/ctdb/pmdactdb +%{_localstatedir}/lib/pcp/pmdas/ctdb/pmns +%endif + %changelog ++++++ ctdb-pcp-pmda-rpmlintrc ++++++ # Note: there are some headers (e.g. domain.h) and in a few cases some # C source files that rpmlint complains about. These are not devel files, # but rather they are (slightly obscure) PCP PMDA config files. # addFilter('E: devel-file-in-non-devel-package') ++++++ ctdb-socket-path.patch ++++++ --- /var/tmp/diff_new_pack.BKZUC5/_old 2013-07-12 20:44:44.000000000 +0200 +++ /var/tmp/diff_new_pack.BKZUC5/_new 2013-07-12 20:44:44.000000000 +0200 @@ -4,10 +4,10 @@ Use correct socket path -diff --git a/doc/ctdb.1.html b/doc/ctdb.1.html -index 701b0dd..e8b9a69 100644 ---- a/doc/ctdb.1.html -+++ b/doc/ctdb.1.html +Index: ctdb-2.3/doc/ctdb.1.html +=================================================================== +--- ctdb-2.3.orig/doc/ctdb.1.html ++++ ctdb-2.3/doc/ctdb.1.html @@ -23,7 +23,7 @@ Change the debug level for the command. Default is 0. </p></dd><dt><span class="term">--socket=<filename></span></dt><dd><p> @@ -17,11 +17,11 @@ </p><p> You only need to specify this parameter if you run multiple ctdb daemons on the same physical host and thus can not use the default -diff --git a/doc/ctdb.1.xml b/doc/ctdb.1.xml -index 31832a3..387de54 100644 ---- a/doc/ctdb.1.xml -+++ b/doc/ctdb.1.xml -@@ -113,7 +113,7 @@ +Index: ctdb-2.3/doc/ctdb.1.xml +=================================================================== +--- ctdb-2.3.orig/doc/ctdb.1.xml ++++ ctdb-2.3/doc/ctdb.1.xml +@@ -118,7 +118,7 @@ <listitem> <para> Specify the socketname to use when connecting to the local ctdb @@ -30,10 +30,10 @@ </para> <para> You only need to specify this parameter if you run multiple ctdb -diff --git a/doc/ctdbd.1.html b/doc/ctdbd.1.html -index 063fbce..b1cc06a 100644 ---- a/doc/ctdbd.1.html -+++ b/doc/ctdbd.1.html +Index: ctdb-2.3/doc/ctdbd.1.html +=================================================================== +--- ctdb-2.3.orig/doc/ctdbd.1.html ++++ ctdb-2.3/doc/ctdbd.1.html @@ -100,7 +100,7 @@ </p></dd><dt><span class="term">--socket=<filename></span></dt><dd><p> This specifies the name of the domain socket that ctdbd will create. This socket is used for local clients to attach to and communicate with the ctdbd daemon. @@ -43,10 +43,10 @@ </p></dd><dt><span class="term">--start-as-disabled</span></dt><dd><p> This makes the ctdb daemon to be DISABLED when it starts up. </p><p> -diff --git a/doc/ctdbd.1.xml b/doc/ctdbd.1.xml -index 91e2f9f..8075895 100644 ---- a/doc/ctdbd.1.xml -+++ b/doc/ctdbd.1.xml +Index: ctdb-2.3/doc/ctdbd.1.xml +=================================================================== +--- ctdb-2.3.orig/doc/ctdbd.1.xml ++++ ctdb-2.3/doc/ctdbd.1.xml @@ -287,7 +287,7 @@ This specifies the name of the domain socket that ctdbd will create. This socket is used for local clients to attach to and communicate with the ctdbd daemon. </para> @@ -56,16 +56,16 @@ </para> </listitem> </varlistentry> -diff --git a/include/ctdb_protocol.h b/include/ctdb_protocol.h -index 0422afe..e3980b9 100644 ---- a/include/ctdb_protocol.h -+++ b/include/ctdb_protocol.h -@@ -21,7 +21,7 @@ - #define _CTDB_PROTOCOL_H - - /* location of daemon socket */ --#define CTDB_PATH "/tmp/ctdb.socket" +Index: ctdb-2.3/include/ctdb_protocol.h +=================================================================== +--- ctdb-2.3.orig/include/ctdb_protocol.h ++++ ctdb-2.3/include/ctdb_protocol.h +@@ -24,7 +24,7 @@ + #ifdef SOCKPATH + #define CTDB_PATH SOCKPATH + #else +-#define CTDB_PATH "/tmp/ctdb.socket" +#define CTDB_PATH "/var/lib/ctdb/ctdb.socket" + #endif /* default ctdb port number */ - #define CTDB_PORT 4379 -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org