summaryrefslogtreecommitdiff
path: root/ctdb/packaging
Commit message (Collapse)AuthorAgeFilesLines
* ctdb-packaging: Remove mkversion.sh scriptAmitay Isaacs2017-05-241-84/+0
| | | | | | | It's not used any more as the version headers are generated from waf. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-takeover: Add takeover helperMartin Schwenke2016-12-191-0/+1
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-daemon: Remove ctdb_event_helperAmitay Isaacs2016-12-181-1/+0
| | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Sun Dec 18 18:10:50 CET 2016 on sn-devel-144
* ctdb-tool: Add helper for talking to event daemonAmitay Isaacs2016-12-181-0/+1
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-eventd: Add event script handling daemonAmitay Isaacs2016-12-181-0/+1
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-packaging: Update required tdb version for tdb_storev()Amitay Isaacs2016-10-271-1/+1
| | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-packaging: Move CTDB tests to /usr/local/share/ctdb/tests/Martin Schwenke2016-10-141-2/+2
| | | | | | | | | In time, other things will end up in /use/local/share/ctdb/. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12104 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-packaging: Stop RPM from renaming working config to ctdb.rpmsaveMartin Schwenke2016-08-081-0/+11
| | | | | | | | | | | | | | | | | | The change to ctdbd.conf and removal of /etc/sysconfig/ctdb as a configuration file makes RPM rename the latter with a .rpmsave suffix. This means that a working configuration is moved aside on upgrade and manual intervention is needed. Avoid this by convincing RPM that the existing /etc/sysconfig/ctdb is still a configuration file. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12125 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Mon Aug 8 11:30:58 CEST 2016 on sn-devel-144
* ctdb-packaging: Move ctdb tests to libexec directoryMartin Schwenke2016-08-041-2/+2
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12104 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Andreas Schneider <asn@samba.org>
* ctdb-packaging: Move ctdb configuration to ctdbd.confAmitay Isaacs2016-07-281-3/+2
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-doc: Integrate ctdb_diagnostics man page into buildMartin Schwenke2016-07-281-0/+1
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Add eventscript 06.nfsMartin Schwenke2016-06-081-0/+1
| | | | | | | | | | This generates takeip-pre and releaseip-pre call-out events. One use is to put NFS into grace before an IP is assigned to an interface. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-packaging: Remove tevent-unix-util public libraryAmitay Isaacs2016-06-061-3/+0
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11946 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Volker Lendecke <vl@samba.org>
* ctdb-doc: Document cluster mutex helper APIMartin Schwenke2016-04-281-0/+1
| | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Thu Apr 28 13:18:07 CEST 2016 on sn-devel-144
* ctdb: Add new helper ctdb_mutex_fcntl_helperMartin Schwenke2016-04-281-0/+1
| | | | | | | | | This implements the type of fcntl locking that the recovery lock uses. The intent is to use it for multiple locks and allow the choice of helper to be configured. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-tools: Add new ctdb_lvs helperMartin Schwenke2016-04-151-0/+1
| | | | | | | | This will replace the ctdb CLI tool "lvs" and "lvsmaster" options. It also makes LVS daemon support unnecessary. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-killtcp: New helper ctdb_killtcpMartin Schwenke2016-04-011-0/+1
| | | | | | | | | | | | This will allow killing of TCP connections without daemon involvement. It looks strange that the common code for daemon and helper is in the server directory. Having it in the server directory means less temporary changes to the build configuration. This code will move into the helper itself and will no longer be used by the daemon. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-doc: Drop outdated NEWS fileMartin Schwenke2016-03-101-1/+1
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-packaging: Set --libexecdir in RPM spec fileMartin Schwenke2016-03-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | If the files section uses %{_libexecdir} then CTDB must also be configured to build and install with the same path, otherwise rpmbuild can fail due to a mismatch. "rpmbuild --showrc" indicates that the default %configure command sets: --libexecdir=%{_libexecdir} \ A mismatch will occur on SUSE systems, where SLES 12 and OpenSUSE 12 set _libexecdir to %{_exec_prefix}/lib. The failure was initially seen when testing on Debian where _libexecdir is set to %{_prefix}/lib/x86_64-linux-gnu, though Debian is an unlikely platform for building RPMs... Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Mon Mar 7 14:43:15 CET 2016 on sn-devel-144
* ctdb-packaging: Drop changelog section from RPM spec fileMartin Schwenke2016-03-071-793/+0
| | | | | | | | | | This is unmaintained and misleading. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Mon Mar 7 05:00:15 CET 2016 on sn-devel-144
* ctdb: Install helpers under libexecdirMartin Schwenke2016-02-121-5/+6
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Andreas Schneider <asn@samba.org>
* ctdb: do not provide a useless pkgconfig file for ctdb.Günther Deschner2016-01-291-1/+0
| | | | | | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11696 We neither have public headers nor a public library. Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Fri Jan 29 04:33:36 CET 2016 on sn-devel-144
* ctdb-tools: Add standalone ctdb_natgw tool scriptMartin Schwenke2016-01-251-0/+1
| | | | | | | | | | | | | | | This is intended to replace the use of "ctdb natgwlist" in 11.natgw and provide different views of the NAT gateway status. It replaces the use of CTDB_NATGW_SLAVE_ONLY=yes with a "slave-only" keyword in the NAT gateway nodes file. This means the nodes file must be consistent on all nodes in a NAT gateway group. Note that this script is not yet integrated, so there are no behaviour or documentation changes. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* Fix various spelling errorsMathieu Parent2015-11-061-12/+12
| | | | | | | | Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Nov 6 13:43:45 CET 2015 on sn-devel-104
* ctdb-build: Calculate correct version when building from tarballAmitay Isaacs2015-10-301-1/+12
| | | | | | | | | | | When building standalone ctdb from git repo, samba_version_file correctly includes git sha in VERSION string. When building standalone ctdb from tarball, samba_version_file puts UNKNOWN in the VERSION string. Use the packaged include/ctdb_version.h file to set the correct git sha. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-recoverd: Add parallel database recovery helperAmitay Isaacs2015-10-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | Parallel database recovery fixes the samba/ctdb deadlock during recovery. Many times samba tries to grab multiple record locks in sequence. Consider a case when samba is already holding a record lock on a database and tries to get a record lock on second database. If the second record is not available on the local node, samba asks ctdb to migrate the record. If recovery occurs at this time (e.g. node becoming inactive), ctdb cannot freeze all the databases since samba is already holding a lock and waiting for the second lock. CTDB can process the second record request only after the recovery is complete, thus causing a deadlock. In parallel database recovery, each database is frozen and recovered independent from each other. So as soon as the second database is recovered, CTDB will resend all the pending migration requests and Samba can get the second lock. Once samba releases both the locks, ctdb can freeze the first database and recover it completing recovery process. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-packaging: Package public library and header for tevent-unix-utilAmitay Isaacs2015-10-071-0/+3
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-packaging: Install header files in ctdb subdirectoryAmitay Isaacs2015-10-071-0/+1
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-build: Do not mark ctdb private headers publicAmitay Isaacs2015-10-071-6/+0
| | | | | | | | | These headers are used by the server code and should not be marked public. Samba builds against the in-tree version of the headers and should not be built with externally installed CTDB. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-scripts: Drop 62.cnfs eventscriptMartin Schwenke2015-09-151-1/+0
| | | | | | | | | | | | | | | | | To get a similar effect just do something like this: mmaddcallback ctdb-disable-on-quorumLoss \ --command /usr/bin/ctdb \ --event quorumLoss --parms "disable" mmaddcallback ctdb-enable-on-quorumReached \ --command /usr/bin/ctdb \ --event quorumReached --parms "enable" Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Jose A. Rivera <jarrpa@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* ctdb-scripts: Rename 40.fs_use to 05.systemMartin Schwenke2015-08-291-1/+1
| | | | | | | Will put all the system monitoring in here, simplifying 00.ctdb. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Move 60.nfs Ganesha callout to doc/examples/Martin Schwenke2015-07-211-1/+0
| | | | | | | | | | We don't expect to maintain an up-to-date copy. NFS Ganesha team might provide patches. Also move the Ganesha .check file Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Add portmapper NFS .check fileMartin Schwenke2015-07-141-0/+1
| | | | | | | Unhealthy after 1 failed attempt to contact the portmapper. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Remove 60.ganesha, replace with callout for 60.nfsMartin Schwenke2015-07-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | This isn't a straightforward move of code from 60.ganesha to the callout. Simplifications have been made to allow better interoperation with the new NFS checking logic. The following configuration variables have been removed: CTDB_GANESHA_REC_SUBDIR Edit NFS ganesha callout to change this location CTDB_NFS_SERVER_MODE, NFS_SERVER_MODE Use CTDB_NFS_CALLOUT instead CTDB_NFS_SKIP_KNFSD_ALIVE_CHECK, CTDB_SKIP_GANESHA_NFSD_CHECK Disable the corresponding .check file instead Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Parameterise 60.nfs with $CTDB_NFS_CALLOUTMartin Schwenke2015-07-141-0/+1
| | | | | | | The goal is to have a single NFS eventscript. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Switch NFS checks to new styleMartin Schwenke2015-07-141-5/+7
| | | | | | | | | | | | | | | | Note that the 60.ganesha RPC checks need to be identical to those in the nfs-checks.d/ directory. This is because the NFS unit test infrastructure checks output against what should be produced by the checks in nfs-checks.d/. This is a minor issue, since one of the aims of this work is to remove the need for a separate 60.ganesha. In most cases configuration variable CTDB_NFS_DUMP_STUCK_THREADS is now ignored. This is now handled by passing the desired number of threads to the command specified in the service_debug_cmd variable in a .check file. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-packaging: Package private librariesAmitay Isaacs2015-07-011-1/+3
| | | | | | | | | | | Remove the private libraries from builtin_libraries and package them instead. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Wed Jul 1 07:19:43 CEST 2015 on sn-devel-104
* ctdb-scripts: New eventscript 10.externalMartin Schwenke2015-05-131-0/+1
| | | | | | | | | | | | | | | | This is an alternative to 10.interface and is installed as disabled by default. It should only be used with DisableIPFailover=yes and when IP failover is being handled externally. In this mode CTDB can be informed of public IP address movements using "ctdb moveip". During the "startup" event, this eventscript currently finds any public IP addresses configured in $CTDB_PUBLIC_ADDRESSES and tells CTDB which node they are on using "ctdb moveip". This allows CTDB to send ARPs and tickle-ACKs. Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-build: Fix handling of public headersMartin Schwenke2014-10-061-0/+1
| | | | | | | | | | | Add the header munging, add/package ctdb_version.h, create directory include/public. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Oct 6 14:56:07 CEST 2014 on sn-devel-104
* ctdb-build: Change from ctdb-util to samba-utilMartin Schwenke2014-10-061-1/+1
| | | | | | | | | | | | | | | | | | Remove local lib/util and lib/tdb-wrap. Update wscript, packaging and includes.h. The only potentially surprising thing here is a fake samba-util subsystem that just depends on samba-util-core. As explained in a comment: When a combined build is implemented, CTDB will wanted to build against samba-util rather than samba-util-core. Similarly, other Samba subsystems expect samba-util. So, for a standalone build, just define a fake samba-util subsystem that pulls in samba-util-core. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Volker Lendecke <vl@samba.org>
* ctdb-doc: Add ctdb-statistics manual pageAmitay Isaacs2014-09-121-0/+1
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-build: Don't try to set lib64 directory automatically in buildMartin Schwenke2014-09-101-0/+1
| | | | | | | | | | | | | | Just install into lib/ and let packagers decide on this policy, since it can vary between distributions. Update our packaging files accordingly. A secondary matter is that things are incorrectly installed into lib64/ when building with 32-bit userspace on a 64-bit kernel. If this is done then it should depend on the architecture of the compiler. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-packaging: Minimum required tevent library is 0.9.16Amitay Isaacs2014-06-301-1/+1
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-packaging: Remove unused filesAmitay Isaacs2014-06-202-210/+0
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Michael Adam <obnox@samba.org>
* ctdb-packaging: Modify spec file to use waf build instead of autoconfAmitay Isaacs2014-06-201-16/+15
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Michael Adam <obnox@samba.org>
* ctdb-packaging: Fix date/days in changelogAmitay Isaacs2014-06-201-7/+7
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Michael Adam <obnox@samba.org>
* ctdb-mkversion: Support external VERSION specificationAmitay Isaacs2014-06-201-0/+7
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Michael Adam <obnox@samba.org>
* ctdb-daemon: Add helper process to execute event scriptsAmitay Isaacs2014-01-161-0/+1
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb:packaging:RPM: don't run autogen.Michael Adam2013-12-091-3/+0
| | | | | | | | | | | | | | | | | autogen is already run in maketarball.sh which generates the tarball for the RPM. This way, we don't have a rpm build dependency on autoconf. Recent changes introduced a dependency into autoconf version >= 2.60, so this fix allows the generated source RPM to be built also on older platforms. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Mon Dec 9 05:47:00 CET 2013 on sn-devel-104
* ctdb:packaging:RPM: package the new manpagesMichael Adam2013-12-091-0/+4
| | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>