1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
Commit Graph

19 Commits

Author SHA1 Message Date
Martin Schwenke
ece6153038 ctdb-scripts: Use nfs-utils' sm-notify instead of CTDB's smnotify
CTDB's smnotify does not support IPv6 and is difficult to maintain.

So, create directories of files and pass them to NFS util's sm-notify.

There is an implied change here, because NFS utils sm-notify stopped
sending IP addresses as mon_name back in 2010:

  http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commitdiff;h=900df0e7c0b9006d72d8459b30dc2cd69ce495a5

This will change advice given in the wiki to use a hostname for the
cluster with round-robin DNS, since this is what is best supported.

Another behavioural change is that sm-notify only sends "up"
notifications with an odd state.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2024-08-29 22:48:33 +00:00
Stefan Metzmacher
05c28fee21 ctdb-build: use a fixed ctdb_version.h using SAMBA_VERSION_STRING
This way we don't get constant rebuild as SAMBA_VERSION_STRING
is "4.7.0pre1.DEVELOPERBUILD" for the binaries under bin/
instead of "4.7.0pre1.GIT.59e51f6".

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13789

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
2019-03-15 05:17:14 +00:00
Martin Schwenke
12fd8d7a5c ctdb-scripts: Move event scripts to events/legacy/ directory
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>
2018-06-05 17:47:26 +02:00
Martin Schwenke
63c534b1e2 git: Ignore generated documentation files
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit b9af66032f3d96f2fe12b7a4fcc5e71d4a282365)
2013-10-22 13:07:13 +11:00
Amitay Isaacs
09679d441b git: Ignore generated ctdb.spec file
Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit ca7ba26362eabfbcc329c66919d9c4da79c3b799)
2013-05-29 16:24:04 +10:00
Amitay Isaacs
55d2772ec0 git: Ignore ctdb_version.h file
Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 641f539ffc7dd9542e669a3ec20c004f8bbcbf1e)
2013-05-29 16:24:04 +10:00
Martin Schwenke
606ddb1647 Git should ignore generated include/version.h file
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 905cd1293aa97dc7839a59b4f68eca02981f0891)
2012-11-27 18:43:34 +11:00
Martin Schwenke
ad6a519b2d Update .gitignore for eventscript testing fu.
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 0fc20ab5207d4f812bf62b90a66c707f76742f84)
2012-03-22 15:30:27 +11:00
Martin Schwenke
652899e692 Git should ignore tests/eventscripts/var.x
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit bc94197025a1ec6efaed5586a725f698991b2b17)
2011-08-08 13:38:07 +10:00
Michael Adam
d2d51e23ba gitignore: add tags file
(This used to be ctdb commit 1e2ff096b78d160f5c535bccfc5482830372fd56)
2011-03-09 10:51:56 +01:00
Michael Adam
43bc87eda6 gitignore: add vi swap files
(This used to be ctdb commit ac4dad619111e7153fe66eb2713f3b2ce63d3999)
2011-03-09 10:51:47 +01:00
Martin Schwenke
7c939e5fbf Testing: Add Python IP allocation simulation.
Includes simulation module and example scenarios.  This allows you to
test and perhaps tweak an algorithm that should be the same as the
current CTDB IP reallocation one.

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

(This used to be ctdb commit 10e701fa9bba2a166c947a5a18f231ff64d9b861)
2010-07-30 16:45:36 +10:00
Ronnie Sahlberg
0f70c47008 From Mathieu Parent <math.parent@gmail.com>
Install the pkgconfig file

(This used to be ctdb commit 7c4389cc0baa43a0ffa9fb08944c253db7885807)
2009-04-08 09:21:11 +10:00
Martin Schwenke
580113c2a9 Git should ignore the test_trigger event script.
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 80dc86320dde7cc81db8c8fde97cfcbac7914920)
2009-01-16 14:17:04 +11:00
Martin Schwenke
2e87ed4e9d Test binaries now go in tests/bin and ctdb_test_env now adds this
directory to $PATH if local daemons are being used.

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

(This used to be ctdb commit a497010f67d6a8e68f4d6d7e516b88d2261b1062)
2009-01-09 18:15:06 +11:00
Martin Schwenke
734f3ada52 Move tests/*.c to tests/src/*.c and adjust Makefile.in accordingly.
Move setting of $CTDB_NODES_SOCKETS to tests/scripts/run_tests and
make it only happen if $CTDB_TEST_REAL_CLUSTER is not set.  Bugfix in
function ips_are_on_nodeglob.  New/proper implementations of functions
stop_daemons and start_daemons, now called by function restart_ctdb.
In start_daemons.sh, add public addresses file generation/usage, use
new option --nopublicipcheck to ctdbd to avoid crazy behaviour and
kill ctdbd more carefully to avoid killing real daemons on a real
cluster - this should be able to coexist on a node of a real cluster.
start_daemons.sh is temporarily incompatible with start_daemons
function, but expecting to replace that script with function calls
very soon anyway...

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

(This used to be ctdb commit 4c54772c5c2fa7d2a25963379b5b96caf0c2521c)
2008-11-21 19:01:48 +11:00
Martin Schwenke
d741559fa6 Add some simple tests that can be run from within the tree.
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit eacb2ef82ea4809d874158756db973dd1e3fc8fc)
2008-11-20 20:40:01 +11:00
Andrew Tridgell
e2fa62c390 ignore some autogenerated test files
(This used to be ctdb commit 63ac38a0c5bc81c42db67b86485a9cccd6af8a19)
2008-01-29 14:00:16 +11:00
Andrew Tridgell
8d7c9ee47b added an ignore file
(This used to be ctdb commit 33521ed8300ebf32fb3d9c041d8217e3b8744b73)
2008-01-29 11:46:09 +11:00