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

2161 Commits

Author SHA1 Message Date
Michael Adam
3cca0f75e4 Fix treatment of link local ipv6 addresses: set the scope id.
metze / Michael

Signed-off-by: Michael Adam <obnox@samba.org>

(This used to be ctdb commit 9d12de1ca6107801dada927729e755c0949d73bf)
2009-01-19 22:50:53 +01:00
Michael Adam
b6828ab22f ctdb_util: use the parse_ip() function - avoid code duplication
Michael

Signed-off-by: Michael Adam <obnox@samba.org>

(This used to be ctdb commit 1461b78c47810073f8637bc4592cacaadcdaf14b)
2009-01-19 22:49:13 +01:00
Michael Adam
8ec92c92e2 ctdb_sys_have_ip: fix ipv6 support for aix, too.
Michael

Signed-off-by: Michael Adam <obnox@samba.org>

(This used to be ctdb commit 8b5f1e80e3e2e9ca2198e1baee8af36aa5d6c5b5)
2009-01-19 22:49:12 +01:00
Stefan Metzmacher
bf86562144 ctdb_sys_have_ip: don't overwrite input data (setting port to 0)
metze

Signed-off-by: Michael Adam <obnox@samba.org>

(This used to be ctdb commit de71ce2195bb4f6a96b12437a2d4d1424fd1c59c)
2009-01-19 22:49:12 +01:00
Michael Adam
3dea35263c Fix verification of IP allocation with ipv6 addresses on Linux.
Set sin_port or sin6_port to 0, depending on sa_family.

Michael

Signed-off-by: Michael Adam <obnox@samba.org>

(This used to be ctdb commit e0c70110e241b065c42c1c07f32c3657bac5d98b)
2009-01-19 22:49:11 +01:00
Michael Adam
5e76a9bf65 events 50.samba: fix control of nmbd without separate nmb service script.
protect all potentially empty $CTDB_SERVICE_* script names

Michael

(This used to be ctdb commit df0afcbf9a0308fcd6ddcce1ac9366f785576f44)
2009-01-19 21:22:58 +01:00
Michael Adam
7e85009724 packaging(RPM): detect and use ccache if available
Michael

(This used to be ctdb commit c412c9e2d69a3f07e195259f6ad5767fa8160a94)
2009-01-19 14:46:30 +01:00
Michael Adam
86ee3ca5d0 Makefile: remove extra "/" in paths
Michael

(This used to be ctdb commit b74ef95004989bcfca5fc6468a6f978a196116ca)
2009-01-19 09:42:48 +01:00
Michael Adam
466124ced7 makerpms: fix detection of support for --rsyncable flag in gzip.
Michael

(This used to be ctdb commit 0dafb869265d0c369bb5ce45fbcabc2232d6fced)
2009-01-17 16:33:11 +01:00
Michael Adam
69ef570f0c ctdb.init: fix typo
Michael

(This used to be ctdb commit 145b85c948603cf977a5c5b53d9d9f63fbdba221)
2009-01-16 14:01:37 +01:00
Michael Adam
4c9db19c9a events 50.samba: also support suse and ubuntu/debain systems
for managing samba and winbind

This uses CTDB_INIT_STYLE as exported by ctdb.init.

suse systems usually have separate init scripts for
smb for smbd and nmb for nmbd, and the ubuntu/debian
start script for smbd and nmbd is called samba instead
of smb (on redhat).

Michael

(This used to be ctdb commit 5fe84f96f3f79baba1f44ba57ce217f501b3c1f8)
2009-01-16 13:33:13 +01:00
Michael Adam
a2d6abdb34 funcions: make (nice_)service a noop for empty service name
Michael

(This used to be ctdb commit 4cac2a16b70be772e4f1520020762f63c0bf3efe)
2009-01-16 13:31:02 +01:00
Michael Adam
7c4ce58ba6 ctdb.init: use detect_init_style() in the init script
and export CTDB_INIT_STYLE, so that event scripts
as called by ctdbd can use it.

Michael

(This used to be ctdb commit 56a10594ea9e44e3f034ac11161fd06e5ae46544)
2009-01-16 13:28:19 +01:00
Michael Adam
a6ea1b20e5 functions: add detect_init_style().
Michael

(This used to be ctdb commit ab34a9480b59c649a4fc73a466c8ca0975453ed9)
2009-01-16 13:26:57 +01:00
root
db217e28e3 new version
(This used to be ctdb commit 73a7b611bf2ef87e92d6b18c538a260aa988a2e5)
2009-01-16 20:49:52 +11:00
Michael Adam
2536a0c898 ctdb.init: add $network to RequiredStop to match RequiredStart.
This is to make rpm checks (eg.g for SuSE systems) survive.

Michael

(This used to be ctdb commit 22cafa88f59ebe50c11f5b65a414800db79405a9)
2009-01-16 20:49:52 +11:00
Andreas Schneider
4c64dc994e Fix circular dependency error with autoconf 2.6.3.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
(cherry picked from commit b39611c36b)

Signed-off-by: Michael Adam <obnox@samba.org>

(This used to be ctdb commit 02893e04154c0590b235082c5a6e5726ceb25dba)
2009-01-16 20:49:52 +11:00
Michael Adam
dc956da422 makerpms: fix creation of tarball when gzip does not know "--rsynceable"
--rsynceable is a patch to gzip that not all distributors / packagers
add to gzip. (It has just bitten me on openSUSE.) This path first detects
whether gzip knows about --rsynceable and then calls gzip accordingly.

Michael

(This used to be ctdb commit 62eccefc15e2ca737098980aa0b7d226df73a456)
2009-01-16 20:49:52 +11:00
Michael Adam
68b9c87674 ctdb.spec: fix version and (RPM-)release number.
Originally, 1.0 was the version in the spec file and 68 was the release.
But in fact everyone talked about ctdb version 1.0.68.
This puts this straight...

Michael

(This used to be ctdb commit a98a3ff2aad59d51fca6a2f3e2bdcfc99e84fa70)
2009-01-16 20:49:52 +11:00
Michael Adam
a80acd49b3 makerpms: confess
Michael

(This used to be ctdb commit 826511f759c3bfa7c587c97786b955572039d2ac)
2009-01-16 20:49:52 +11:00
Michael Adam
1694ad5ddc makerpms: don't hard-code the version number but extract it from ctdb.spec
Michael

(This used to be ctdb commit 32eac6fc3cce2a9d0a38add56a8bb893e4a85076)
2009-01-16 20:49:52 +11:00
Michael Adam
5c99c26dae makerpms: remove the need of calling makerpms.sh from the top level directory
Instead, extract needed information from the dirname of the invoked name.

Michael

(This used to be ctdb commit cf1e46d734ed51b4ac2eb8a09f2f787ae5c51092)
2009-01-16 20:49:52 +11:00
Michael Adam
b1bca68f83 makerpms: don't cd to $SPECDIR but rpmbuild -ba $SPECDIR/$SPECFILE instead
Michael

(This used to be ctdb commit 25dbefc92e7303a7b679a769eb06a7c25fdcf198)
2009-01-16 20:49:51 +11:00
Michael Adam
a34bce885b makerpms: catch error of git archive correctly (echo resets $?)
Michael

(This used to be ctdb commit 85e942a26f5e7d4584d31005ff88c36dca215a11)
2009-01-16 20:49:51 +11:00
Michael Adam
8601777cc8 makerpms: move comment to appropriate place
Michael

(This used to be ctdb commit ef4caf6874436ff3f451b95586893e39a8cec1ad)
2009-01-16 20:49:51 +11:00
Michael Adam
91cdf4384f makerpms: use variable (SPECFILE) that is available instead of hard coded file name
Michael

(This used to be ctdb commit 9661b7a4f3773d645d0525c4430e3cccf0f32eb5)
2009-01-16 20:49:51 +11:00
Michael Adam
f3b282ca25 doc: join broken lines in excerpt from log.ctdb
Michael

(This used to be ctdb commit b7290b0a8325021515a904ac60fa9afa019c9db1)
2009-01-16 20:49:51 +11:00
Michael Adam
4969508fc8 ctdb.samba.org: fix instruction for turning off samba service autostart
Extend to show valid commands on Redhat and SuSE Linux.

Michael

(This used to be ctdb commit cdea4893c24511ffc1a7338ca3eb6cfd86d68086)
2009-01-16 20:49:51 +11:00
Martin Schwenke
1b61a149f4 Make message in 62_ctdb_persistent_unsafe.sh more informative.
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 4777b74b1e2eebe54cf27f3303f60e49023e7f6a)
2009-01-16 15:50:33 +11:00
Martin Schwenke
fc1f71ce0f 23_ctdb_moveip.sh sanity checks the list of IPs/nodes instead of
looping forever on older versions of CTDB.

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

(This used to be ctdb commit 03dfcf9f284c9926479a8dd4e5acf1f5d2b964aa)
2009-01-16 15:12:40 +11:00
Martin Schwenke
bc826f4872 Merge commit 'origin/master' into martins
(This used to be ctdb commit 4928718a346f086f1683c78d52b0bf009c1150a3)
2009-01-16 14:19:55 +11: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
Stefan Metzmacher
23b550d6fc Fix segfault in ip takeover fallback code.
metze

Signed-off-by: Michael Adam <obnox@samba.org>

(This used to be ctdb commit 3b88f3dec5227e8579672974f7028fb356ee1d94)
2009-01-16 07:22:59 +11:00
Martin Schwenke
7c6153e6aa Remove the sorts from 06_ctdb_getpid.sh - the PIDs should be listed in
node order.

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

(This used to be ctdb commit 4b97bdba3bc4df20efb1aae7d89a1e3430d35ca3)
2009-01-13 17:02:59 +11:00
root
321866dbba finish the ipv6 support.
allow clients to register either ipv4 or ipv6 client connections to the tickles list

(This used to be ctdb commit d9b44d7c3255b0fd7359b9afeb613e6ff4c4eaac)
2009-01-13 16:17:20 +11:00
Martin Schwenke
5038a0d08a Use $CTDB_TEST_WRAPPER in other tests that need it.
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 2912c1ade5db1e20bfa3a8017a702cc8a7da36f1)
2009-01-13 14:55:31 +11:00
Martin Schwenke
cb09075891 Use $CTDB_TEST_WRAPPER in 51_ctdb_bench.sh.
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 44ec4c57bf9928ef5d5cc117a6c2d92495dac489)
2009-01-13 14:51:40 +11:00
Martin Schwenke
38593aa3e1 For now, make tests/run_tests.sh runs the new test suite. Add
tests/TODO.  Remove tests/start_daemons.sh - no longer used.

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

(This used to be ctdb commit 5cdbef46b74e6a5ba2383ef025e69fe605fa4f6e)
2009-01-12 15:47:12 +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
91972a6bfc Add tests/README. ctdb_test_env and, therefore, run_tests can now be
run from the tests subdirectory... and most other sensible places.
Rename $CTDB_TEST_REMOTE_SCRIPTS_DIR to $CTDB_TEST_REMOTE_DIR since it
is now intented that this directory can contain test binaries too.
daemons_start() now passes a full path to the events.d directory when
starting ctdbd.  Also fixed the path to ctdbd.  41_ctdb_ban.sh and
42_ctdb_unban.sh fail immediately if they fail to select a test node.

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

(This used to be ctdb commit 3ecce31d3a3f72b9fa851ac99291865c119e551e)
2009-01-09 17:52:38 +11:00
Martin Schwenke
fbda11b106 Merge commit 'origin/master' into martins
(This used to be ctdb commit 928c30213fb9f0c32d82995892ccdd8e054c9d6e)
2009-01-08 17:28:09 +11:00
Martin Schwenke
a70327ce1a Delete some unstructured tests ({fetch,peristent,transaction}.sh) and
replace them with new simple tests (52_ctdb_fetch.sh,
53_ctdb_transaction.sh, 61_ctdb_persistent_safe.sh,
62_ctdb_persistent_unsafe.sh).  Remove "_simple" from some test
filenames in the simple subdirectory - that's redundant.  Always run
ctdb as $CTDB to allow $VALGRIND magic to be used.  Use pgrep/pkill to
detect/kill local daemons so those running under valgrind can be found
too - to support this, always run local daemons with the full path to
the executable.  run_tests now supports -s option to print sumamry
when done - with more and more tests, it is getting hard to follow
progress.  Sort the output of commands in 06_ctdb_getpid.sh to make
sure they compare nicely and also allow the processes' executables to
be called "memcheck" to catch those running under valgrind.  Remove
redundant calls to onnode in commands run from calls
try_command_on_node in some tests.  41_ctdb_ban.sh and
42_ctdb_unban.sh avoid banning the recmaster, since this causes the
recmaster to be reassigned and all nodes to be unbanned.  Minor
cleanups.

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

(This used to be ctdb commit 33cdf3e4bcfadf8e20822ca352babf7acca16821)
2009-01-08 17:12:03 +11:00
Ronnie Sahlberg
db7d239e03 new version 1.0.69
(This used to be ctdb commit fd85e53794ef7fe24c51c94534370545a0711bd4)
2008-12-18 14:31:28 +11:00
Martin Schwenke
6ad847b9ac Remove old ctdbd.sh test script. Remove unneeded nodes.txt and
public_addresses files - these are now created in tests/var as needed.
09_ctdb_ping.sh now recognises new "node disconnected" message.
Replace custom recovery detection code (which could not have been
working) with a call to "ctdb recover" in 32_ctdb_enable_simple.sh.

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

(This used to be ctdb commit 486ed3b5b483f1c12c2d978ec6564bd33a2c6aee)
2008-12-18 14:25:07 +11:00
Martin Schwenke
c572c11d3a Remove bench.sh test and replace with new test 51_ctdb_bench.sh.
Function try_command_on_node node passes any options other than -v to
onnode.  Minor update to 14_ctdb_statistics.sh.

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

(This used to be ctdb commit e627f8e5fe8e2e3ea423b7dbd12d74597fb4983b)
2008-12-18 11:28:43 +11:00
Martin Schwenke
fae7e15114 Bug fixes for ctdb_bench from Ronnie.
(This used to be ctdb commit 2c055831f0d56e42d055e1d72fb6f0db5f71def1)
2008-12-18 09:45:49 +11:00
Martin Schwenke
12c16dd9b0 ctdb_test_env now sets $CTDB_TIMEOUT. Fixed
26_ctdb_config_check_error_on_unreachable_ctdb.sh to work with new
generic error message when trying to talk to disconnected node.

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

(This used to be ctdb commit 33afe9bae732e62994e5957ee143a9c49571898b)
2008-12-17 16:59:23 +11:00
Martin Schwenke
9e3ccd9d69 Merge commit 'origin/master' into martins
(This used to be ctdb commit 099a1605574c7a8d232fd4c2d0c65e55aedeafad)
2008-12-17 15:05:44 +11:00
Martin Schwenke
a6fb2c35b4 New test 26_ctdb_config_check_error_on_unreachable_ctdb.sh.
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit a99204ad8bd4d3b15c8219762442682a3d1285cf)
2008-12-17 15:04:35 +11:00
root
6c1359ab0d add better errorchecking that nodes we try to talk to using the "ctdb" tool actually exist and that it is connected.
two new dedicated ctdb error codes
21: node does not exist
22: node is disconnected

(This used to be ctdb commit 7ee6db06162ad5a554058bb6160ad37b24fe42e0)
2008-12-17 14:26:01 +11:00