1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

266 Commits

Author SHA1 Message Date
Amitay Isaacs
6d0c388e5c build: Rename version.h to ctdb_version.h
This avoids clash with version.h from Samba tree.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit d18fcfff674e876abde8d51afec92d9c4a090d2f)
2013-05-23 16:18:23 +10:00
Martin Schwenke
ce145ab65e Packaging: maketarball.sh should be a bash script due to pushd use
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 3105f9e291d0792199ac9e689f6d0e0a47ee4b0d)
2013-05-23 16:18:23 +10:00
Martin Schwenke
bb39f0a186 scripts: Rework notify.sh to use notify.d/ directory
This makes it easier to add notification handlers.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit d29e9a420b133088bf23a847c8d1dbce56c25eb0)
2013-05-23 16:18:23 +10:00
Martin Schwenke
434f9e8594 eventscripts: 60.nfs uses nfs_check_rpc_services() to check NFS RPC services
* 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)
2013-05-07 12:55:09 +10:00
Amitay Isaacs
d931e73fb8 statd-callout: Make sure statd callout script always runs as root
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)
2013-04-08 11:14:28 +10:00
Amitay Isaacs
79aeac6bfe packaging: Use maketarball.sh script to create tarball for RPM
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)
2012-10-30 18:01:38 +11:00
Amitay Isaacs
49bddd6f1e packaging: Use optional argument as targetdir when creating tarball
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)
2012-10-30 15:58:14 +11:00
Amitay Isaacs
b0f90052cb tool/ctdb: Always support ctdb version command, don't make it optional
Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit f8af7d8de76e68e5c4bde15f832a31ce9107e8c7)
2012-10-30 11:56:00 +11:00
Amitay Isaacs
92207245ba packaging: Create include/version.h to define CTDB_VERSION_STRING
Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit b151f9b62299ec5b887c62cef780547a39c0ba9d)
2012-10-30 11:55:59 +11:00
Amitay Isaacs
42d8e379fe packaging: Bundle README, COPYING and html version of manpages
Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 6871415f6cb50c4f9753067359f0e264d3f93871)
2012-10-22 18:15:17 +11:00
Amitay Isaacs
231898db1f packaging: Use common code to generate VERSION string
Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 0019291371af1e63ee132ed173ba7f52a0291a44)
2012-10-22 18:15:17 +11:00
Amitay Isaacs
5ea3a56b62 packaging: Factor out the code to genreate VERSION string
Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 19fb26346567d2249b1237f92d871022db2ba8cd)
2012-10-22 18:15:17 +11:00
Amitay Isaacs
68b32e53ce packaging: Build docs and include them in tarball
Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 69f0473b72aadab5bd5791ccff2facd0cd469d43)
2012-10-22 18:15:17 +11:00
Martin Schwenke
8d7562f3f8 common: Debug ctdb_addr_to_str() using new function ctdb_external_trace()
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)
2012-10-18 20:05:42 +11:00
Martin Schwenke
f3ae31e741 Eventscripts: split 50.samba into 49.winbind and 50.samba
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)
2012-10-03 08:46:32 +10:00
Amitay Isaacs
569da46e3c packaging: make ctdb-tests package depend on nc
Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit d0b539c4d2d4dc8c9eb95801bff09c3bcbeebca5)
2012-05-25 15:25:29 +10:00
Ronnie Sahlberg
dce5969d12 Debug: When scripts hang, we may need to collect additional data in order to 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)
2012-05-17 10:29:03 +10:00
Martin Schwenke
17a6d1d975 Packaging: Improve dependencies
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)
2012-05-11 10:33:27 +10:00
Martin Schwenke
0fa93a9613 Packaging: add options to ctdb.spec.in to force use of bundled libraries
Ideas borrowed from the Fedora samba4 spec file.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 14a630cbc638d2f3bf699de5d94131e5f7d1a3ea)
2012-05-11 10:33:27 +10:00
Martin Schwenke
469a5889de Packaging: devel package fixes
Group was non-existent, typo in summary.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit f0a14169883661a702a352aa0311a2b433071a83)
2012-05-11 10:33:27 +10:00
Martin Schwenke
9346a5364f Packaging: generate a ctdb-tests package
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 5c23244591b8005f91d8e25e719cd332c711db14)
2012-05-11 10:33:27 +10:00
Amitay Isaacs
cf41acf500 packaging: Setup directories for rpmbuild
Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 45773dab630ee44b39df0dd4b50f43fb1e7bb0ba)
2012-03-30 12:33:21 +11:00
Martin Schwenke
56d90e930d Eventscript support - Remove unused interface_modify.sh
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 994492f79275fe84155d842f6bc288c1858217dd)
2012-03-22 15:30:27 +11:00
Ronnie Sahlberg
1b97198519 New version 1.13
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)
2012-03-01 12:36:03 +11:00
Ronnie Sahlberg
c3ee6e3dbd New version 1.12
* 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)
2011-11-08 16:20:09 +11:00
Ronnie Sahlberg
4d80552317 New version 1.11
(This used to be ctdb commit ee9bf1565383bcca70950e9c20fe6b4d0181ce8d)
2011-09-01 12:30:00 +10:00
Ronnie Sahlberg
ee96db07d5 Add new eventscript 40.fs_use that can be used to monitor file system use and flag a node unhealthy when they become full
(This used to be ctdb commit 2fd1babf8135ad5d53f3b25ba823d840ebc66460)
2011-08-11 10:04:40 +10:00
Michael Adam
fe114ca5d5 packaging: honour rpm build target options handed in to makerpms.sh
This allows to call e.g. "makerpms.sh -bs" to build only the source RPM.

(This used to be ctdb commit c6bfba2bb66962b7b05d708f0747002700991472)
2011-07-22 15:48:27 +02:00
Mathieu Parent
4a43450968 Manpage for ping_pong
Signed-off-by: Michael Adam <obnox@samba.org>

(This used to be ctdb commit af75d3e37412e03d3978073edbe6dee78f265c3c)
2011-06-23 15:56:17 +02:00
Michael Adam
0b80a7618d packaging: add ltdbtool and its manpage to the RPM
(This used to be ctdb commit ce6409dc7d059701f0fe4b57e7c05c38c66629c5)
2011-05-04 14:40:13 +02:00
Michael Adam
26ab9c272f packaging: remove the dependency to tdbtool and tdbdump from the spec file
The init script does now check for the availability of tdbdump
and "tdbtool check" and issues warnings if they are not available.
This can remove a dependency loop with building samba RPMs.

(This used to be ctdb commit c7652c4038e012b7ef9bc1da352dd2c02d60dc29)
2011-04-05 13:58:09 +02:00
Ronnie Sahlberg
1df9ed58b0 Add 60.ganesha to what gets installed by make install as well as by the RPM
(This used to be ctdb commit 8a6da384f3fa08b1c5eba79d6febc7af7b3d9229)
2010-12-06 11:50:18 +11:00
Ronnie Sahlberg
25b65edf8b new version 1.10
(This used to be ctdb commit 401ad5bb3c4d2f34e34c4b61649c77391ac2f791)
2010-10-21 11:12:30 +11:00
Ronnie Sahlberg
3376d9e72a we no longer have a 61.nfstickle script
(This used to be ctdb commit 8909d3a10362a8e58ffd71bc4cd035c12c584157)
2010-08-30 18:22:28 +10:00
Ronnie Sahlberg
ccdb91a169 move the directives to build the devel file to the end of the specfile
so that the dependencies are right
or else the dependencies all end up in the devel package and not the main
ctdb package

(This used to be ctdb commit 6e4347eb8e62c28987820f6e58626271c900b011)
2010-08-23 16:00:19 +10:00
Rusty Russell
145b09c9a8 version: generate RPM version from git
This unifies our RPM version handling, based on tags.
1) Tags are of form ctdb-<version>.
2) The first <version> starts with .1.
3) Devel versions end with .0.<patchnum>.<checksum>.devel to reliably
   identify them.

This means that devel versions will correctly supersede releases and earlier
devels, but new releases will correctly supersede older devel RPMs.

Making a new release is as simple as creating a new git tag.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

(This used to be ctdb commit 44009e02a661d4a1e14246f650974fc4ed7a07c9)
2010-07-02 13:22:20 +10:00
Ronnie Sahlberg
bdbf7077e8 rename ccan/typesafe_cb.h to ctdb_typesafe_cb.h and
add this file to the install/rpm

(This used to be ctdb commit 96f186240a17386de1e02eb3af392d97bb55a1ae)
2010-06-02 09:18:48 +10:00
Ronnie Sahlberg
40c6535127 move the header files and libctdb.a out into a separate ctdb-devel rpm
(This used to be ctdb commit 3587df065669972a631ba08918df37536c9cb633)
2010-05-26 10:01:37 +10:00
Ronnie Sahlberg
0d46488f6e Merge commit 'rusty/libctdb2'
(This used to be ctdb commit d41b802250ddc0a89581eb6285edfd66bdc7a78a)
2010-05-25 12:48:49 +10:00
Ronnie Sahlberg
949fc096ed new version 1.9
(This used to be ctdb commit e553da6a060c9cd2514bdb888cf0e50d35572b88)
2010-05-25 12:47:15 +10:00
Rusty Russell
5db92ccd4d libctdb: Ronnie's build changes, so we actually build libctdb with make.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

(This used to be ctdb commit f02526486680db1473bdf10328e8f62a2590c745)
2010-05-20 15:57:40 +09:30
Rusty Russell
d5f6026a22 libctdb: reorganize headers: remove ctdb.h, add ctdb_client.h and ctdb_protocol.h
ctdb_client.h is the existing internal client interface (which was mainly
in ctdb.h), and ctdb_protocol.h is the information needed for the wire
protocol only.

ctdb.h will be the new, shiny, libctdb API.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

(This used to be ctdb commit 4bba6b8cd47b352f98d41f9f06258d5ac3c9adef)
2010-05-20 15:18:30 +09:30
Ronnie Sahlberg
1cb2b0b2d0 Add a new eventscript 62.cnfs to integrate better with gpfs/cnfs
(This used to be ctdb commit 4a679422dc231aa98605b9cc322e4ab442f7bde4)
2010-05-04 13:56:55 +10:00
Ronnie Sahlberg
4f191982ca add an example script that can be called from crontab to cleanup
and release public ip addresses if ctdbd is no longer running

(This used to be ctdb commit 1cdaaa0a3f53d1b075340a33dfdc42b534e99187)
2010-04-22 14:23:02 +10:00
Ronnie Sahlberg
8ed2e059f5 new version 1.0.114
(This used to be ctdb commit b07beb68bf2adf65e837669be0c7464852f829ac)
2010-03-24 17:21:10 +11:00
Michael Adam
df2ca26557 packaging: add tdbtool and tdbdump as dependencies to the RPM
The init script relies on the existence.
This should fix bug #6773 on bugzilla.samba.org:
https://bugzilla.samba.org/show_bug.cgi?id=6773

Michael

(This used to be ctdb commit 35e6aa1630732665deaed1e7fbf2c3bf6664895d)
2010-03-10 07:55:41 +01:00
Stefan Metzmacher
628ac65709 config: add 13.per_ip_routing event script
With this script it's possible to generate routing tables
per public ip address.

metze

(This used to be ctdb commit ff5678fbec2daef461143acf00cef3f94d7655fc)
2010-01-20 11:10:57 +01:00
Stefan Metzmacher
4493ba6ffa config: add interface_modify.sh and call it under flock to make modification on interfaces atomic
When two releaseip events run in parallel it's possible that the 2nd script
readds a secondary ip that was removed by the 1st script.

metze

(This used to be ctdb commit e02417b2a55c45ac2c125b1b3463c9c39e7bc07a)
2010-01-20 11:10:48 +01:00
Ronnie Sahlberg
f066939a62 new version 1.0.113
(This used to be ctdb commit 4bcb07c412260147cd926452287885d05b2344c1)
2010-01-13 07:12:08 +11:00
Martin Schwenke
91fba1e121 New version 1.0.112.
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 64ae8b0702cfdc44a778e0cc3705dd685f9f6ab0)
2010-01-12 21:07:45 +11:00