1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

166 Commits

Author SHA1 Message Date
Ronnie Sahlberg
ddf3c621c1 Merge commit 'rusty/libctdb-new' into foo
(This used to be ctdb commit 1566d2d23ab698896b3b6a76974a5c7452db4a62)
2010-08-18 09:53:52 +10:00
Rusty Russell
f93440c4b7 event: Update events to latest Samba version 0.9.8
In Samba this is now called "tevent", and while we use the backwards
compatibility wrappers they don't offer EVENT_FD_AUTOCLOSE: that is now
a separate tevent_fd_set_auto_close() function.

This is based on Samba version 7f29f817fa.

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


(This used to be ctdb commit 85e5e760cc91eb3157d3a88996ce474491646726)
2010-08-18 09:16:31 +09:30
Volker Lendecke
a79168f587 Correctly set docdir
(This used to be ctdb commit a69916d0687309766b0014dc9cee6a966aaa89da)
2010-08-16 11:28:05 +10:00
Rusty Russell
379fd4e606 libctdb: add logging infrastructure
This is based on Ronnie's work, merged with mine.  That means
errors are all my fault.

Differences from Ronnie's:
1) use syslog's LOG_ levels directly.
2) typesafe arg to log function, and use it (eg stderr) in helper function.
3) store fn in ctdb context, and expose ctdb_log_level directly thru API.

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

(This used to be ctdb commit 86259aa395555aaf7b2fae7326caa2ea62961092)
2010-06-04 20:27:03 +09:30
Ronnie Sahlberg
ae3e91f0ce link ctdb with libctdb and connect to the daemon both the old way and by using libctdb
update the function "control_pnn()" to use libctdb to ask the daemon for the pnn

(This used to be ctdb commit 3f651eb8d71c7af0268460bc4b1476112140b290)
2010-06-02 10:37:00 +10:00
Ronnie Sahlberg
d3a696c6a8 Dont link with libctdb
This makes it easier to ensure we catch all places
when we rename old api functions due to colissions with
functions in libctdb

(This used to be ctdb commit d643240783d4847591c5f72ee4d65e5daf1dbcf7)
2010-06-02 09:43:16 +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
080cef25d0 make install to install libctdb.a
(This used to be ctdb commit 93f1622cd4106fb1a2acbe643cbb2b3dc9fd0103)
2010-05-26 09:01:26 +10:00
Ronnie Sahlberg
41634eae3b make sure we build libctdb for "make all"
(This used to be ctdb commit 76acb97ebcfc378e98767113a81e413969917bb1)
2010-05-26 08:56:46 +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
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
Stefan Metzmacher
9cba540514 lib/util: import fault/backtrace handling from samba.
metze

(This used to be ctdb commit 8171d66f0061fe23ed6dfef87ffe63bfc19596eb)
2010-01-20 09:44:36 +01:00
Ronnie Sahlberg
3b53c02e34 add a new test tool that just locks and releases the same record over and over
(This used to be ctdb commit 24767be2eb9aed29704c2a4097bab5466cb6728f)
2009-12-15 12:14:49 +11:00
Ronnie Sahlberg
bc2675119d add an in memory ringbuffer where we store the last 500000 log entries regardless of log level.
add commandt to extract this in memory buffer and to clear it

(This used to be ctdb commit 29d2ee8d9c6c6f36b2334480f646d6db209f370e)
2009-11-18 12:44:18 +11:00
Ronnie Sahlberg
c36fa583f3 disabel the multipath eventscript by default
(This used to be ctdb commit e79c3bcead7bd4bfb74d0aec81908da71551c107)
2009-10-26 10:22:00 +11:00
Ronnie Sahlberg
4f0f2cc196 add a new eventscript 01.reclock
if the reclock file has been set, then this script will test that the
    reclock file can actually be accessed.
    if the file does not exist, or if the attempts to stat the file hangs,
    the node will be marked unhealthy after the third failed monitoring event
    and after the tenth failure, ctdb itself will shutdown.

(This used to be ctdb commit 2cb04747887674def299e574fccb827c1c3194e7)
2009-09-28 14:06:40 +10:00
Ronnie Sahlberg
cda5f02c7c new prototype banning code
(This used to be ctdb commit 0c4c2240267af183d54ffd4c0aacda208f6eff6a)
2009-09-04 02:20:39 +10:00
Wolfgang Mueller-Friedt
fddfaaaa4b added event repacking
Signed-off-by: Wolfgang Mueller-Friedt <wolfmuel@de.ibm.com>

(This used to be ctdb commit 78466364f22d6a183710338f138b8c808c6b7753)
2009-07-29 13:28:48 +10:00
Ronnie Sahlberg
1653af16a6 vacuum event framework
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Signed-off-by: Wolfgang Mueller-Friedt <wolfmuel@de.ibm.com>

(This used to be ctdb commit 30cdad97706a9e9bb210120699aa939f6b16e8ca)
2009-07-29 13:26:29 +10:00
Ronnie Sahlberg
5f680fa2b4 rename 99.routing to 11.routing so that it executed before the service scripts
(This used to be ctdb commit 9bc8e7eec7ffa8969f0f170a77b13cd0033790f1)
2009-06-23 11:29:26 +10:00
Ronnie Sahlberg
0ddf79a3bc increase the timeout before we shutdown when ther ecovery daemon is hung
(This used to be ctdb commit facddcacb4a961cddb117818fa38a3e97770b2fa)
2009-06-18 09:20:18 +10:00
Ronnie Sahlberg
34fbfb8b89 rename 99.routing to 11.routing
so it is executed before any of the service scripts

(This used to be ctdb commit 1205673499618f90f413fad9e96a88733b5ce359)
2009-06-18 09:11:46 +10:00
Ronnie Sahlberg
caf0e863a4 remove the obsolete ipmux component.
this is replaced by LVS since a long time

(This used to be ctdb commit dca41ec04788922ce5f4c52d346872b3e35f8cbb)
2009-05-25 12:33:52 +10:00
Ronnie Sahlberg
e85fb3d9c5 install the 31.clamd script as 644 by default
(This used to be ctdb commit e57c47b75fa501223c57040eac73392b42ae549d)
2009-05-25 12:11:07 +10:00
Ronnie Sahlberg
f62b433946 add 31.clamd to the install and the rpm
(This used to be ctdb commit bfc6ac07f8b7b326e75d8c9bf73051a440ee0011)
2009-05-25 12:11:01 +10:00
Sumit Bose
de36b5012a added a missing dependency
(This used to be ctdb commit 1d833163b57853b84f098dffdb3c5f50164fcc73)
2009-05-21 11:13:42 +10:00
Michael Adam
24b9b6a986 build: also build and install ping_pong
Michael

(This used to be ctdb commit 200de8f299c8fa44d6dc696532f1a947132e7ec4)
2009-05-06 10:39:35 +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
Ronnie Sahlberg
59fd3bd564 install /etc/ctdb/notify.sh as executable.
this addresses bug 6250

(This used to be ctdb commit b8be5b06c3359d037db336dc12d38e0018349951)
2009-04-08 08:48:55 +10:00
Ronnie Sahlberg
24d84952f8 we should also install the 11.natgw eventscript if we want to be able to use it
(This used to be ctdb commit 42e2797271bc1cdb4eecf1227d4c2db668587193)
2009-03-31 20:00:00 +11:00
Ronnie Sahlberg
53d6626503 install a default /etc/ctdb/notify.sh script as example on how to use
snmptrap/email to notify that a node has changed health status

(This used to be ctdb commit ee52c0866e2b26c396fe60946159c559d47199eb)
2009-03-31 14:38:52 +11:00
Michael Adam
14dc0db232 Merge commit 'ctdb-ronnie/master'
(This used to be ctdb commit f0e3cdde7bd35bb586a46c31609398b7d4b05a26)
2009-02-28 03:09:13 +01:00
Michael Adam
839dec1b12 move common code of system_linux.c and system_aix.c into new system_common.c
Michael

(This used to be ctdb commit 124874847e5e03ce2a44bddfe778f01dfb0a7a03)
2009-02-28 03:08:31 +01:00
Ronnie Sahlberg
a590999f4c From Sumit Bose <sbose@redhat.com>
Fix to the makefile dependencies for smnotify so that make -j works

(This used to be ctdb commit ef9dc810c4309e8eba18d015c73c1b5d0760a4e8)
2009-02-25 09:13:16 +11:00
Michael Adam
d51a6313af Merge commit 'ctdb-ronnie/master'
(This used to be ctdb commit 7412c6706c2d8ec668d0a6a50471db369f3dbf2b)
2009-02-19 23:51:23 +01:00
Ronnie Sahlberg
5c7570b103 Merge branch 'martins'
(This used to be ctdb commit fe4eea45c6b5702a794424037c3f2ab4241d5e5e)
2009-02-18 13:10:03 +11:00
Michael Adam
82b8bf4179 make: add a "showlayout" target for diagnostics
Michael

(This used to be ctdb commit 79b8c87338a2d40464e87e501daae403a2f14427)
2009-02-04 00:22:01 +01:00
Mathieu PARENT
f0d585217e build: Make log-directory configurable indepently of VARDIR
This adds a new configure option "--with-logdir".
logdir defaults to "${localstatedir}/log" .
It is important to have logdir configurable for debian systems,
where localstatedir is set to "/var/lib" and not "/var".

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

(This used to be ctdb commit b0c6854d1e886456fabdc8f1c3bd21c89311c601)
2009-02-04 00:19:22 +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
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
2764c2d7be Merge commit 'origin/master' into martins
(This used to be ctdb commit ec354d602d20700e6769deb798436d08256a49d5)
2008-12-08 08:57:46 +11:00
root
bc5f0cf9d5 fix an incorrect path
(This used to be ctdb commit aeb09b08e060be6f833d84ba88abfb168cc5f50e)
2008-12-04 15:03:40 +11:00
Ronnie Sahlberg
51ace76ea6 add a description of the recovery-process
(This used to be ctdb commit 194abb41e1a0036956a9401efcae8b14ed66c532)
2008-12-04 14:35:00 +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
Ronnie Sahlberg
a9977269f0 install the new multipath monitoring event script
(This used to be ctdb commit 3b8d49bf58f4145cdca08565f06cd43fd36991e1)
2008-10-15 16:29:09 +11:00
Ronnie Sahlberg
3902855275 change ip route add to route add -net since this works more reliably
update the makefile and rpm to install 99.routing

(This used to be ctdb commit c0b3bd8a3fa580dca5afa97c8012fccb25231373)
2008-10-15 01:49:19 +11:00