summaryrefslogtreecommitdiff
path: root/ctdb/packaging/RPM/ctdb.spec.in
Commit message (Collapse)AuthorAgeFilesLines
* ctdb-packaging: Test package requires tcpdumpMartin Schwenke2019-03-151-1/+1
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13838 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@samba.org>
* ctdb-packaging: ctdb package should not own system library directoryMartin Schwenke2019-03-151-1/+1
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13838 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@samba.org>
* ctdb-packaging: Call waf with python wrapperAmitay Isaacs2018-12-181-3/+4
| | | | | | | | This allows to build packages even when python3 is not available by setting PYTHON variable. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-tests: Add local_daemons.shMartin Schwenke2018-11-061-0/+1
| | | | | | | | | | | This provides a separate script for handling local daemons. It can be used for testing outside of the CTDB simple test suite. It is installed as ctdb_local_daemons. The logic is copied from ctdb/tests/simple/scripts/local_daemons.bash. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-packaging: Enable some standard event scripts if none are enabledMartin Schwenke2018-07-111-3/+31
| | | | | | | | | | | | | CTDB needs the legacy/00.ctdb event script to be able to function properly. If this script is not enabled then assume a first-time install or an upgrade to a version that requires events scripts to be enabled via symlinks. In these cases enable this script and other commonly used scripts. Remove links during uninstall (but not during upgrade). Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-build: Install event scripts in CTDB_DATADIRMartin Schwenke2018-07-111-4/+2
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Change directory for notifications to events/notificationMartin Schwenke2018-06-051-6/+4
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Move event scripts to events/legacy/ directoryMartin Schwenke2018-06-051-4/+4
| | | | | | | | This is the initial location that will be used by the new multi-component aware event daemon. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb: Drop configuration file ctdbd.confMartin Schwenke2018-05-171-3/+0
| | | | | | | | | | | | | Drop function loadconfig(), replacing uses with "load_system_config ctdb". Drop translation of old-style configuration to new configuration file. Drop export of debugging variables. Drop documentation and configuration examples. 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 May 17 07:03:04 CEST 2018 on sn-devel-144
* ctdb-config: Add default ctdb.conf fileMartin Schwenke2018-05-171-0/+2
| | | | | | | Install it in RPM. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-docs: Add ctdb.conf(5)Martin Schwenke2018-05-171-0/+1
| | | | | | | This documents the new Samba-style configuration file. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-build: Create database directories during installationMartin Schwenke2018-05-171-0/+1
| | | | | | | Create and package. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-packaging: Package all helpers using wildcardAmitay Isaacs2018-05-121-10/+1
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-config: Add default ctdb.sysconfig file, update ctdb.serviceMartin Schwenke2018-05-121-7/+1
| | | | | | | Install ctdb.sysconfig in RPM. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-docs: Document system options and resource controlsMartin Schwenke2018-05-121-0/+1
| | | | | | | | The existing configuration file is disappearing so these configuration options need a new home that is not handled by ctdbd_wrapper. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-config: Add a default script.options fileMartin Schwenke2018-05-121-0/+2
| | | | | | | Include it in the RPM. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-docs: Document script.optionsMartin Schwenke2018-05-121-0/+1
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Drop CTDB_NOTIFY_SCRIPT configuration optionMartin Schwenke2018-05-011-1/+4
| | | | | | | | | | Notification scripts are installed into $CTDB_BASE/notify.d/ and are always run by notify.sh. Leave notify.sh where it is for now but no longer consider it a configuration file. This is an interim measure and will be changed again soon. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Tunables are now loaded from ctdb.tunablesMartin Schwenke2018-03-281-0/+2
| | | | | | | | | | | | Using CTDB_SET_TunableVariables in the main configuration file is no longer supported. The only subtlety is an unexpected order change in one of the unit test results. This is because the old implementation implicitly sorted the tunable variables via the set command. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-packaging: Package up relevant /var subdirectoriesMartin Schwenke2018-03-091-0/+2
| | | | | | | | They're already created at installation time. This way they don't need to be created at startup. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-packaging: Use RPM's local state directoryMartin Schwenke2018-03-091-3/+3
| | | | | | | Instead of fixed /var. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-common: Drop debugging variable CTDB_EXTERNAL_TRACEMartin Schwenke2018-03-011-1/+0
| | | | | | | | This was an attempt to debug an unexpected situation. It never triggered, so delete it and all supporting code. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-packaging: Package event scripts via a wildcardMartin Schwenke2018-03-011-19/+1
| | | | | | | This avoids churn as event scripts are renamed and moved about. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-packaging: Make the ctdb package own more directoriesMartin Schwenke2018-03-011-0/+3
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* 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-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>