summaryrefslogtreecommitdiffstats
path: root/ctdb/packaging
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* ctdb:build: Update mkversion.sh to use samba-* tagsMartin Schwenke2013-11-281-3/+3
| | | | | | | | | To test CTDB on a cluster we need to be able to build test RPMs with relatively sane version numbers. This is a minimal change to allow that to happen, until CTDB is integrated into the Samba build system. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* doc/examples: Add CTDB configuration examplesAmitay Isaacs2013-10-241-0/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 6a5469a63547029f4fc704a4d4075543e06c36d1)
* Add missing events.d/99.timeoutMathieu Parent2013-10-241-0/+1
| | | | (This used to be ctdb commit 1f6cc8764e28058c56d0350147032b6e30cb355d)
* libctdb: Remove incomplete libctdbAmitay Isaacs2013-10-041-1/+0
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit c5a7f2b4ff011e1393c4ff34864f85e6b472ff07)
* packaging: Remove pushd/popd from maketarball.sh, don't need bashMartin Schwenke2013-08-221-45/+34
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 3ffca990a18cbd31c8bd3ae01c6671d60da58f58)
* packaging: Allow setting custom release number in RPM spec fileMartin Schwenke2013-08-094-8/+16
| | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 867afb247bd8cc86c8d738f051a44cc534cafacf)
* packaging: Bundle debug_locks.sh script in RPMAmitay Isaacs2013-07-161-0/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 5740155cc5de1a223412e8529aa1a383a5412514)
* packaging: Add systemd supportMartin Schwenke2013-07-101-3/+18
| | | | | | | | Based on an original patch by Sumit Bose <sbose@redhat.com>. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit e43a4b7b69a21c4cec2453dcac436b64bf5d7f06)
* initscript: Simpify initscript and control CTDB via new ctdbd_wrapperMartin Schwenke2013-07-101-0/+1
| | | | | | | | | | | | | | | Currently the initscript is very complex. This makes it hard to read and hard to add support for new init systems, such as systemd. Create a wrapper called ctdbd_wrapper to be installed alongside ctdbd. This is called by the initscript to start and stop ctdbd. It does the ctdbd option construct and waits until ctdbd is properly initialised before it exits. Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit e3abc7eebab5cceddc4ce7817890dd5db9be3450)
* packaging: When building with system libraries, add dependency for themAmitay Isaacs2013-07-101-0/+3
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 8225b3e77e140db34b52571a95d553d1e59e3f1e)
* packaging: Enable compiler optimizationsAmitay Isaacs2013-07-041-1/+1
| | | | | | | | | | This reverts d09570c70551aa40390ce9ceffe7bc234e1afafe. ... hoping the segv has been found in last 6 years. :-) Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 9b529189f8456fad7868fc154ae27a6fd87e93b3)
* packaging: Allow building RPMs with system tdb/talloc/teventAmitay Isaacs2013-07-041-6/+9
| | | | | | | | | | | | | To build CTDB RPMs with system installed libraries, use following command: ./packaging/RPM/makerpms.sh \ --with system_talloc \ --with system_tdb \ --with system_tevent Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit bb54f3924ff19cd089b0a166fe8368db162ad709)
* packaging: Do not mark /etc/ctdb/functions as configuration fileAmitay Isaacs2013-07-041-1/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 1b0faae9c939a2f8da3cacba715ca62a5830d190)
* packaging: Install README.notify.d using %doc directiveAmitay Isaacs2013-07-041-2/+2
| | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 53d34eb2f9e5434dea4e7182b6af566a3a96a368)
* packaging: Install docs using %doc directiveAmitay Isaacs2013-07-041-9/+6
| | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 6fe584d05543eebd24abd19bab502dc4da04e921)
* packaging: Remove ctdb_transaction from docdirAmitay Isaacs2013-07-041-4/+0
| | | | | | | | It's bundled in ctdb-tests package. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 7e53fbf92b6dd5211d918ea0e23126b7dfa50c42)
* packaging: Update the minimum required library versionsAmitay Isaacs2013-06-171-3/+3
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 5f8547b1531bba4950b3d873a997585c3a16d31e)
* packaging: Create separate package for pcp pmdaMartin Schwenke2013-05-281-0/+27
| | | | | | | | | | To build ctdb-pcp-pmda package, run packaging/RPM/makerpms.sh script with "--with pmda" option. Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 85e11b9b13b3add88c1b8957be51793cc1db4f2d)
* packaging: makerpms.sh can take multiple arguments for rpmbuildMartin Schwenke2013-05-271-1/+1
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit f2ef3510407fbad29908195c58e4160d5a81e8a4)
* locking: Add a standalone helper to lock record/dbAmitay Isaacs2013-05-241-0/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit a08b6ac19506160f3fb5925ea025027dce07781d)
* build: Rename version.h to ctdb_version.hAmitay Isaacs2013-05-233-3/+3
| | | | | | | | This avoids clash with version.h from Samba tree. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit d18fcfff674e876abde8d51afec92d9c4a090d2f)
* Packaging: maketarball.sh should be a bash script due to pushd useMartin Schwenke2013-05-231-1/+1
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 3105f9e291d0792199ac9e689f6d0e0a47ee4b0d)
* scripts: Rework notify.sh to use notify.d/ directoryMartin Schwenke2013-05-231-0/+2
| | | | | | | | This makes it easier to add notification handlers. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit d29e9a420b133088bf23a847c8d1dbce56c25eb0)
* eventscripts: 60.nfs uses nfs_check_rpc_services() to check NFS RPC servicesMartin Schwenke2013-05-071-0/+5
| | | | | | | | | | | | | | | | | | | * New directory nfs-rpc-checks.d/ replaces hardcoded rules in 60.nfs * Installation and packaging additions to handle nfs-rpc-checks.d/ * Unit test updates, including deleting 1 test that sanity checked test infrastructure * Test infrastructure changes to use nfs-rpc-checks.d/ Note that this removes support for $CTDB_NFS_SKIP_KNFSD_ALIVE_CHECK in 60.nfs. To get the equivalent behaviour, edit 20.nfsd.check and remove/comment all lines. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 7e792d6768d9ca420ce3713cb122e63afd594b15)
* statd-callout: Make sure statd callout script always runs as rootAmitay Isaacs2013-04-081-1/+3
| | | | | | | | | | | In RHEL 6+, rpc.statd runs as "rpcuser" instead of root as on RHEL 5. This prevents CTDB tool commands talking to daemon since "rpcuser" cannot access CTDB socket. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit fe8c4880b371492a38554868d4ca10918c54e412)
* packaging: Use maketarball.sh script to create tarball for RPMAmitay Isaacs2012-10-301-18/+5
| | | | | | | | | This removes the duplicate code for building tarball and reuses existing script. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 16a91c2a4d03b46743611e2fe844bb2cef95e46a)
* packaging: Use optional argument as targetdir when creating tarballAmitay Isaacs2012-10-301-14/+14
| | | | | | | | In addition, do not modify CTDB version string with extra suffix. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 3d4838db51dd8199b9c29aebb6e7bfbd2a27b8bb)
* tool/ctdb: Always support ctdb version command, don't make it optionalAmitay Isaacs2012-10-301-1/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit f8af7d8de76e68e5c4bde15f832a31ce9107e8c7)
* packaging: Create include/version.h to define CTDB_VERSION_STRINGAmitay Isaacs2012-10-301-0/+14
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit b151f9b62299ec5b887c62cef780547a39c0ba9d)
* packaging: Bundle README, COPYING and html version of manpagesAmitay Isaacs2012-10-221-0/+7
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 6871415f6cb50c4f9753067359f0e264d3f93871)
* packaging: Use common code to generate VERSION stringAmitay Isaacs2012-10-222-39/+9
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 0019291371af1e63ee132ed173ba7f52a0291a44)
* packaging: Factor out the code to genreate VERSION stringAmitay Isaacs2012-10-221-0/+50
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 19fb26346567d2249b1237f92d871022db2ba8cd)
* packaging: Build docs and include them in tarballAmitay Isaacs2012-10-221-1/+8
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 69f0473b72aadab5bd5791ccff2facd0cd469d43)
* common: Debug ctdb_addr_to_str() using new function ctdb_external_trace()Martin Schwenke2012-10-181-0/+1
| | | | | | | | | | | | | | | | | We've seen this function report "Unknown family, 0" and then CTDB disappeared without a trace. If we can reproduce it then this might help us to debug it. The idea is that you do something like the following in /etc/sysconfig/ctdb: export CTDB_EXTERNAL_TRACE="/etc/ctdb/config/gcore_trace.sh" When we hit this error than we call out to gcore to get a core file so we can do forensics. This might block CTDB for a few seconds. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 7895bc003f087ab2f3181df3c464386f59bfcc39)
* Eventscripts: split 50.samba into 49.winbind and 50.sambaMartin Schwenke2012-10-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | winbind and samba can be separately managed. This makes the service starting and stopping code way too complicated, and even adds a small amount of complexity to the monitoring code. The sensible option is to split this eventscript in two. There are two potentially backward incompatible changes here: * Functionality has been removed that allowed 50.samba to manage winbind when CTDB_MANAGES_WINBIND was unset but the smb.conf "security" parameter was set to "ADS" or "DOMAIN". Maintaining this functionality would have required moving the testparm-related code to the functions file, deciding where the cache file should go, and then calling it from both 49.winbind and 50.samba. This feature wasn't of great value and asking administrators to set an extra variable in exchange for code simplicity seems like a reasonable deal. * External code will need to be changed if it calls 50.samba directly with winbind-related expectations. This is fairly obvious! Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 34535ae64420926b9a3bf7d453fed4e6f4c90115)
* packaging: make ctdb-tests package depend on ncAmitay Isaacs2012-05-251-0/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit d0b539c4d2d4dc8c9eb95801bff09c3bcbeebca5)
* Debug: When scripts hang, we may need to collect additional data in order to ↵Ronnie Sahlberg2012-05-171-0/+1
| | | | | | | | | | | debug why the script hung. Break this debug and datacollection out into an external script to make it easier to modify what data we need to collect. For now we only collect a pstree so we can see what part of the script we hung in. S1037271 (This used to be ctdb commit 6e68797af67bee36f2bad045f94806e7e98f27e9)
* Packaging: Improve dependenciesMartin Schwenke2012-05-111-2/+6
| | | | | | | | | | | | We don't strictly need gawk (i.e. could probably use nawk), but that seems to provide /bin/awk on RHEL. PreReq seems old-school. We don't have an scriptlets, so nothing needs to be installed before CTDB. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit e7ba0a30e7b7fe78e83e493128b349708cf0038a)
* Packaging: add options to ctdb.spec.in to force use of bundled librariesMartin Schwenke2012-05-111-1/+30
| | | | | | | | Ideas borrowed from the Fedora samba4 spec file. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 14a630cbc638d2f3bf699de5d94131e5f7d1a3ea)
* Packaging: devel package fixesMartin Schwenke2012-05-111-2/+2
| | | | | | | | Group was non-existent, typo in summary. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit f0a14169883661a702a352aa0311a2b433071a83)
* Packaging: generate a ctdb-tests packageMartin Schwenke2012-05-111-1/+20
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 5c23244591b8005f91d8e25e719cd332c711db14)
* packaging: Setup directories for rpmbuildAmitay Isaacs2012-03-301-0/+8
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 45773dab630ee44b39df0dd4b50f43fb1e7bb0ba)
* Eventscript support - Remove unused interface_modify.shMartin Schwenke2012-03-221-1/+0
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 994492f79275fe84155d842f6bc288c1858217dd)
* New version 1.13Ronnie Sahlberg2012-03-011-0/+4
| | | | | | | | | | | | This will be the new long term stable branch for ctdb Main new features are read-only records: performance/scaling improvement for concurrent access to the same record from multiple nodes. fetch-lock-collapse: performance/scaling improvement for concurrent write access to the same record from multiple nodes. (This used to be ctdb commit 05e75dea9eaa0decc2909e0c2cf1715c81374200)
* New version 1.12Ronnie Sahlberg2011-11-081-0/+18
| | | | | | | | | | | | | | | | | | | | | | | * Tue Nov 8 2011 : Version 1.12 - Add new tunable : AllowClientDBAttach that can be used to stop client db access during maintenance operations - Updated logging for interfaces that are missing or dont exist but are configured to be used. - Add timeout argument to ctdb_cmdline_client - PDMA support - Initial support for 'readonly' delegations for ctdb databases This will when finished greatly improve performance for contended hot records that are used for just read-access. - New 'ctdb cattdb' command - Massive updates to tests and eventscripts - LCP2 ip allocation algorithm - Record Fetch collapse. Collapse multiple fetch-lock requests from cients to a single network fetch and defer other concurrent requests until the initial fetch completes, and then service the deferred calls locally. This will greatly improve performance for contended hot records where clients request write-locks. (This used to be ctdb commit bda24b7f313289404b68ce8b9177fbd6b6a05dd7)
* New version 1.11Ronnie Sahlberg2011-09-011-0/+2
| | | | (This used to be ctdb commit ee9bf1565383bcca70950e9c20fe6b4d0181ce8d)
* Add new eventscript 40.fs_use that can be used to monitor file system use ↵Ronnie Sahlberg2011-08-111-0/+1
| | | | | | and flag a node unhealthy when they become full (This used to be ctdb commit 2fd1babf8135ad5d53f3b25ba823d840ebc66460)