1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

1921 Commits

Author SHA1 Message Date
Ronnie Sahlberg
41d19e650c Revert "from Mathieu Parent <math.parent@gmail.com>"
This reverts commit dc9cd4779db4a89697731e4cf415be51067a07c1.

Conflicts:

(This used to be ctdb commit d13da2e8fe2fab619540525d98a5502a23ab7d20)
2008-10-15 01:08:29 +11:00
Ronnie Sahlberg
260718e017 update the client side of getnodemap and getpublicips controls to
fallback to the old-style ipv4-only controls if the new-style ipv4/ipv6
control fails.

this allows a 1.0.59+ (ipv4/ipv6) ctdb daemon being recmaster  to be
compatible with
pre-1.0.59  versions of ctdb that are ipv4 only.

(This used to be ctdb commit 8e912abc2c68f5fe7b06c600ba6fec1a6900127c)
2008-10-15 00:24:44 +11:00
Ronnie Sahlberg
cb300382b0 update TAKEIP/RELEASEIP/GETPUBLICIP/GETNODEMAP controls so we retain an
older ipv4-only version of these controls.

We need this so that we are backwardcompatible with old versions of ctdb
and so that we can interoperate with a ipv4-only recmaster during a
rolling upgrade.

(This used to be ctdb commit 6b76c520f97127099bd9fbaa0fa7af1c61947fb7)
2008-10-14 10:40:29 +11:00
Ronnie Sahlberg
e5a3a73e64 from Mathieu Parent <math.parent@gmail.com>
Hi,

I have attached a patch necessary as debian log dir (/var/log) is not
a subdir of VARDIR (/var/lib on rpm systems, /var/lib/ctdb on debian).
As I don't know much about autotools and friends, this patch may be
hacky.

This is part of the process to minimize diff between distributions.

(This used to be ctdb commit dc9cd4779db4a89697731e4cf415be51067a07c1)
2008-10-13 08:27:33 +11:00
Ronnie Sahlberg
6dbeb91e03 From Mathieu Parent
patch to make debian systems log the package versions in
ctdb_diagnostics

(This used to be ctdb commit 07dd4c7d2e8ba10f53d4cf2644fc4b7b8647e286)
2008-10-13 08:21:20 +11:00
Andrew Tridgell
c5edaf7a6e added some more gpfs commands per-filesystem
(This used to be ctdb commit a5d5aa455c7f7eb93d3fa6f403d5b8e0b795109d)
2008-10-09 18:45:12 +11:00
Ronnie Sahlberg
3411e98e14 skip empty lines in the public addresses file, not skip all non-empty
lines

(This used to be ctdb commit dc108adada33bb713f71a2859eda3b439ed0cd1a)
2008-10-07 19:34:34 +11:00
Ronnie Sahlberg
374906860c from Michael Adams : allow #-style comments in the nodes and public
addresses file

(This used to be ctdb commit 5f96b33a379c80ed8a39de1ee41f254cf48733f9)
2008-10-07 19:25:10 +11:00
Ronnie Sahlberg
9d717f32e1 new version 1.0.59
(This used to be ctdb commit 8e504fc8c01f750d1cb5d2289ef12c423daf1ad4)
2008-10-07 18:23:12 +11:00
Ronnie Sahlberg
46187433ca remove an unused variable
(This used to be ctdb commit 4237bd3753dcb024c17461e974414bef1b609416)
2008-10-07 18:14:44 +11:00
Ronnie Sahlberg
1778280d50 When we reload the nodes file
instead of shutting down/restarting the entire tcp layer
just bounce all outgoing connections and reconnect

(This used to be ctdb commit e701a531868149f16561011e65794a4a46ee6596)
2008-10-07 18:12:54 +11:00
Ronnie Sahlberg
bad2949b65 add a new eventscript : 99.routing that is used to add static routes to
interfaces when they are activated (an ip address is added during
takeip)

(This used to be ctdb commit d9779c310e98c9d4eab71a8d1705849ac90deb10)
2008-10-07 11:03:30 +11:00
Andrew Tridgell
9a8d41a992 The author of the upstream code asked for this code to be GPLv2+ not GPLv3
(This used to be ctdb commit 000018f2f4fb9f2452f56731b027dd6a7beda111)
2008-09-30 07:16:17 -07:00
Andrew Tridgell
a8a8c4c1d4 merged a bugfix for the idtree code from the Linux kernel. This
matches commit 7aae6dd80e265aa9402ed507caaff4a5dba55069 in the kernel.

Many thanks to Jim Houston for pointing out this fix to us

(This used to be ctdb commit 85f6032cbdb197f3a003d86f086afa2cee898a4d)
2008-09-30 07:09:06 -07:00
Ronnie Sahlberg
156662e257 Check that a database exists first before we dump its content (and
implicitely also create it) using 'ctdb catdb'

(This used to be ctdb commit 647003da975d4823abe8ed2bfb46153d68ea0fb0)
2008-09-23 01:38:28 +10:00
Martin Schwenke
24e93b314f Merge commit 'origin/master' into martins
(This used to be ctdb commit aea77353c5996510f09c72cddfb54894ad9048b0)
2008-09-18 06:33:48 +10:00
Andrew Tridgell
6cf004e98f expanded ctdb_diagnostics based on recent experience
(This used to be ctdb commit a06abf6bff6c4d379453e5063d8de1a6542c982a)
2008-09-17 21:00:04 +10:00
Ronnie Sahlberg
3e274e5f8c use the correct tunable failcount not timeout
(This used to be ctdb commit 475cfada33b4c13aaaca773d5485bbe26bffbf46)
2008-09-17 14:24:12 +10:00
Ronnie Sahlberg
a3bbe238c9 The ctdb daemon keeps track of whether the recovery process is running
correctly by measuring how long it was since the last successful
communication with the recovery daemon was recorded.

After a certain timeout the ctdb daemon would deem the recovery daemon
as inoperable and shut down.

If the system clock is suddenly changed forward by many (60 or more)
seconds this could cause the timeout to trigger prematurely/immediately
where ctdb would incorrectly think that more than 60 seconds had passed
since last successful communications and thus abort.

Instead of cehcking for one timeout occuring, only deem the recovery
daemon to be "down" and trigger a shutdown if communications have
timedout for three intervals in a row.

(This used to be ctdb commit 196968c552e6ebcb57389d769a4b25f42fa8bc5d)
2008-09-17 14:17:41 +10:00
Ronnie Sahlberg
ad56356005 fix a slow memory leak in the recovery daemon in the error paths for the
memdump function

(This used to be ctdb commit 5e641ef9d6cca286061138a9680dcf2495736e8b)
2008-09-16 09:00:48 +10:00
Ronnie Sahlberg
7b718fffd7 fix some slow memory leaks in the vacuuming handler in the recovery
daemon

(This used to be ctdb commit 95bf36559d62f29e6f538f3a173b504ef3258341)
2008-09-16 07:55:57 +10:00
Ronnie Sahlberg
ab3649155a From Volker L
Fix a slow memory leak in the recovery daemon if there is a recoery
triggered during the public ip reassignment process

(This used to be ctdb commit 0aca4daf908b76d6013ff3dfad41beb9114fc1a3)
2008-09-16 06:50:28 +10:00
Ronnie Sahlberg
b93351ed71 updates to the precompiled documentation
(This used to be ctdb commit a120c734c5425ebb2e09c2009374aa0bc5a432e8)
2008-09-15 07:04:26 +10:00
Martin Schwenke
0edd5abb19 Document the new descriptive node specifications.
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 2583d0c8f9932e023b7377582f62c840e264be80)
2008-09-12 18:22:41 +10:00
Martin Schwenke
8b19b74325 onnode changes. "ok" is an alias for "healthy", "con" is an alias for
"connected".  Allow "rm" or "recmaster" to be a nodespec for the
recovery master. Better error handling for interaction with ctdb
client.

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

(This used to be ctdb commit 1d5d13345086201fe55517aea5f8674ff3db1090)
2008-09-12 18:22:29 +10:00
Martin Schwenke
3510fb4cec Merge commit 'origin/master' into for-ronnie
(This used to be ctdb commit 2b70953cd51e879dc1fa113d68c6614051da5260)
2008-09-12 18:21:51 +10:00
Martin Schwenke
b1ce18806d Merge commit 'origin/master' into martins
(This used to be ctdb commit b3c431abb79a6c18464129695e482ebc84f3964d)
2008-09-12 18:21:38 +10:00
Martin Schwenke
80972d6eff Document the new descriptive node specifications.
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 6a47302c43eaee93783d83fb976ffce8cdc78be2)
2008-09-12 18:20:52 +10:00
Martin Schwenke
62a65ebc38 onnode changes. "ok" is an alias for "healthy", "con" is an alias for
"connected".  Allow "rm" or "recmaster" to be a nodespec for the
recovery master. Better error handling for interaction with ctdb
client.

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

(This used to be ctdb commit 05bdafed82106a0d8bfa53cd730eb3e1db68a51f)
2008-09-12 16:55:18 +10:00
Ronnie Sahlberg
54ffdfd50a i add a new ctdb command "ctdb recmaster"
this shows the node id of hte current recmaster

(This used to be ctdb commit 3ff0711fd3b288c153218ad33e8462a94b8d3275)
2008-09-12 12:06:53 +10:00
Martin Schwenke
6c5b9d6e69 Changes to onnode. Add "healthy" and "connected" as possible
nodespecs.  Since we're now explicitly using bash, use local variables
when sensible.

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

(This used to be ctdb commit d1aa7953450de6ae215589404fb19e05edd3906f)
2008-09-12 11:26:32 +10:00
Martin Schwenke
c1b622f359 Merge commit 'origin/master' into for-ronnie
(This used to be ctdb commit 666c3835376cd6b66aeaa110c76ecf052cd71a0a)
2008-09-12 11:26:25 +10:00
Martin Schwenke
48936dff90 Minor documentation fixes.
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 616b71fef54a3d1ea2638602099722a19ef6f41d)
2008-09-12 11:25:50 +10:00
Martin Schwenke
0013ec94de Changes to onnode. Add "healthy" and "connected" as possible
nodespecs.  Since we're now explicitly using bash, use local variables
when sensible.

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

(This used to be ctdb commit 16626eaf9c63adfe780e8f51f9cd97810647e731)
2008-09-12 11:22:50 +10:00
Martin Schwenke
6e17d311cb Minor documentation fixes.
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 19ccbc8a8fbc81b107fdc80afc802a107fc9fb84)
2008-09-12 10:36:15 +10:00
Martin Schwenke
e78ebc8184 Merge commit 'origin/master' into martins
(This used to be ctdb commit 79ad588d61a56a062c043eae6aba3370ec10ac61)
2008-09-12 10:34:03 +10:00
Ronnie Sahlberg
348cad7bc1 lower the debuglevel when logging unknown idr in responses
(This used to be ctdb commit a72f5b7d1560e427e18b1c55a2932a7fb037f4c7)
2008-09-09 13:59:48 +10:00
Ronnie Sahlberg
3bedb7f6d1 lower the debug level for when printing that the nodeflags have changed
(This used to be ctdb commit a89977f8cb2463a87147dcc0ad936cb5d4131670)
2008-09-09 13:55:31 +10:00
Ronnie Sahlberg
6474f3278d additional monitoring between the two daemons.
we currently only monitor that the dameons are running by kill(0, pid)
and verifying the the domain socket between them is ok.

this is not sufficient since we can have a situation where the recovery
daemon is hung.

this new code monitors that the recovery daemon is operating.
if the recovery hangs, we log this and shut down the main daemon

(This used to be ctdb commit cd69d292292eaab3aac0e9d9fc57cb621597c63c)
2008-09-09 13:44:46 +10:00
Ronnie Sahlberg
7a78a78a1c From C Cowan.
Patch to make AIX compile with the new ipv6 additions.

(This used to be ctdb commit e26ce5140ed005725f8b7ac8ba23a180fd7d5337)
2008-09-08 08:57:42 +10:00
Ronnie Sahlberg
70c7525a02 zero out the address structure to keep valgrind happy
(This used to be ctdb commit 8060e591b0eb2d184b5a7444487477225d2e1dbf)
2008-08-29 12:26:02 +10:00
Ronnie Sahlberg
589dcbe8cb new version 1.0.58
(This used to be ctdb commit c4bc4317df4106e81b238dbfaf861ca6104304c1)
2008-08-27 10:26:34 +10:00
Ronnie Sahlberg
a35fa0aa8f rename ctdb_tcp_client back to the original name ctdb_control_tcp
(This used to be ctdb commit 4d1c0418cfe6170bc081684dbe45908a5d285f0b)
2008-08-27 10:24:35 +10:00
Ronnie Sahlberg
18b10d400d From Abhijith Das <adas@redhat.com>:
Fixup the initscript sdo it passes rpm-lint

(This used to be ctdb commit f84d0a9a8c7e9589e8833f21e1f977a0adab356b)
2008-08-25 10:13:18 +10:00
Ronnie Sahlberg
b99a88f0b3 Add a "reload" option to the initscript.
(This used to be ctdb commit 2a8bf5e7dc7364a8280d96db0f9579d2582a8524)
2008-08-25 10:03:16 +10:00
Ronnie Sahlberg
413b28bfdd add a link to my webpage
(This used to be ctdb commit 0709093af11e0735ed1e13b06ac073990631e692)
2008-08-25 09:41:08 +10:00
Ronnie Sahlberg
c1be066611 version 1.0.57 : initial ipv6 support
(This used to be ctdb commit 7da0c65c8526d66d4f2a788bd646d39237befa54)
2008-08-25 08:52:29 +10:00
Ronnie Sahlberg
ddf2de2154 Do not fail the takeip event if the "ip addr add ..." command failed.
Let the event complete successfully.   the local recovery daemon will check that we have the address and reissue takip othervise.

There are several reasons why "ip addr add "  can fail, one is a misconfiguration
anothe ris that for ipv6 the stack is a lot more picky than for ipv4.     for examplke this WILL fail in ipv6 if there is a duplicate ip address on the network.

thus  this check could cause rolling-recoveries  which is why it has to go

(This used to be ctdb commit 12bc85c90a640a72ff538c003eb81da9dd1f2e3f)
2008-08-22 09:25:47 +10:00
Ronnie Sahlberg
d83fc7e389 when we collect all ip addresses and sort them for the "ctdb ip -n all" output we must look at more than just the first 4 bytes of the sockaddr address or ipv6 wont work
(This used to be ctdb commit 4dfbfb4618433d9ed79ca1bdb1e2e51d96d4ee62)
2008-08-22 09:09:08 +10:00
Ronnie Sahlberg
9ce657b044 When we harvest all tcp connections to kill off after a takeip/releaseip event we must also harvest the ipv4 connections which may be presented in ::ff:xxxx:xxxx form by netstat
(This used to be ctdb commit 293d12a40501320a21efaf592b8f20e8590a5197)
2008-08-20 12:50:50 +10:00