[SCM] CTDB repository - branch master updated -
2f952af1a12e81a652ec9a4794db96f9593f2676
Andrew Tridgell
tridge at samba.org
Thu Apr 23 01:36:55 GMT 2009
The branch, master has been updated
via 2f952af1a12e81a652ec9a4794db96f9593f2676 (commit)
via 373a04d6a47a5c7cf8d822d60be1d9b9ab4df784 (commit)
via 6c900aa343096c5e1e297e055c36832ffa5028dd (commit)
via feab5f30b2d6cebf4dd28abc5a81f93424a4c852 (commit)
via a9f851caec2525ccbb3a6d6283eaef52b89a4eb2 (commit)
via 1b47ddc97373376b416a50939b74dc8c926fc917 (commit)
via 7c4389cc0baa43a0ffa9fb08944c253db7885807 (commit)
via b0718551f55d5da9be0e6aba233f57c1ff8509be (commit)
via b8be5b06c3359d037db336dc12d38e0018349951 (commit)
via 43c718ebd402abe2e1e6360ce21b08cc13030c88 (commit)
via 13e2c9044950f21918e4610726e73ed3d8f76920 (commit)
via 018f8b0b1823ef59b46f1a671aec5309d10628f4 (commit)
via 33b296cee177adc61edc911caec8c24b3efa8441 (commit)
via 7f8f9385deee6eff2b7303147bc6412bbdc122df (commit)
via 0889ae3c237bdb3bd72d45f2f64f5e5d8420870c (commit)
via 68eac459e5d2b6b534f72821036675ffe5d7a350 (commit)
via 9ac9745ba9296d01e3b18148ae8c3240e51cf090 (commit)
via 00d2213613822b758939019361a619bd7d7f4984 (commit)
via 42e2797271bc1cdb4eecf1227d4c2db668587193 (commit)
via ee52c0866e2b26c396fe60946159c559d47199eb (commit)
via ce534a83a05dbd40238e4eee0669d60ff396f935 (commit)
via 274a4a1fe2e016f33296ebfc5ed6337ce3141d06 (commit)
via 34633223a46caaa079da233663f9c6dcc1803f87 (commit)
via 56b7095994d1de95e40a223ed503b5572ea9d1b9 (commit)
via cd78765f9400d7abce7929a2dd199f65226e7664 (commit)
via e059df6d3cd81c67e5505e8ef2d6d0ef9a287b31 (commit)
via 1046885cd22b5001e0251de2e536b5f6793459be (commit)
via 95d22e4cf265d2119f72200ab0ec708f095853df (commit)
via ae317b2013eee01c4c0a5108c03f4024bea9e313 (commit)
via 0840aa2bd31b2da95342dca8ff35786a3d998688 (commit)
via 972036a5d510fb9b399f1ee34a8861dee4221267 (commit)
via 857733ae2bdfa0037af224abfabc020e2ac384c7 (commit)
via dc2f28f7c988364b5d45f3048be4db3e5ff113b3 (commit)
via 292fff6eace39141591871e12f9a64e3441237be (commit)
via 43fe18d86995744ba61c7a6405b70edcb265930a (commit)
via be50059c33845fec260ca53975d421a890303880 (commit)
via 39a972b0d6d0d70282c25c54a124b67431467e77 (commit)
via c98f90ad61c9b1e679116fbed948ddca4111968d (commit)
via 16f31786a031255ab5b3099a0a3c745de973347a (commit)
via b6e34503ac094a274a569a69e3d93d92ad911f4d (commit)
via 95d8ddbc2dd0b159e8df003502c3c336668d2c41 (commit)
via f03bd2b3d906dac9fb876dca54535d22e9cf1b9e (commit)
via b6f7cddc68508e52bc65b357b0b77258ae96362a (commit)
via 742283a8f8da7c614ee3a30d48c430e3a3bceeb9 (commit)
via 4c598ab6f8e9b826d437b9ab869c4490f7c4faba (commit)
via 0772190203d501a39072f16948604742d7d59a5e (commit)
via d416c0e1e57a42f7ab52de903dbd8b5e111decfe (commit)
via 76d655f9aa3ebd39e7a40d0bbd85e40d08f3e90b (commit)
via ccaf9ebe062127124cf23e69dcd2ac2edda40020 (commit)
via b1aba6651143ae1c85b24d78b67c760795ff5bff (commit)
via 8518c9e0ffec44677d45f60e63936a831d62ab20 (commit)
via 0f2664a82128e38ac49c6e8e784129b779616a27 (commit)
via 36709e4325fe9a0f377e8e79741741ded4e7f7b0 (commit)
via ecf26af22245d0f55aded50e8768b0c21495f98c (commit)
via 432604a1435cd2b5a7178fb5aedf1d4b61bffeb9 (commit)
via f0e3cdde7bd35bb586a46c31609398b7d4b05a26 (commit)
via 124874847e5e03ce2a44bddfe778f01dfb0a7a03 (commit)
via ef9dc810c4309e8eba18d015c73c1b5d0760a4e8 (commit)
via 051ae5f3c13892b860818eac803d348f09845dc6 (commit)
via 7412c6706c2d8ec668d0a6a50471db369f3dbf2b (commit)
via e1be8cb2dc32f56eabd537b658b47929818b8d01 (commit)
via fe4eea45c6b5702a794424037c3f2ab4241d5e5e (commit)
via e1c90b12290c682c2cba90e9afa3a09be014e20e (commit)
via 1a110993af1706e0c5df500fa7d14e16c0668372 (commit)
via 59a04a50e64aae0a89b165d0428e23a8bcf8eb24 (commit)
via dfb16ce9ed65048d30109851737a9075d071ecdb (commit)
via 2f42429f6996e98c9bfad49eab9fa23e85d7bec2 (commit)
via e391bde5ac743956fb30ede65030973a1f13dae5 (commit)
via b9e50e3416fecef6a881be3f1b91be977299293f (commit)
via 9e2245b9bb795e2d757aacd706a9861a59d1638e (commit)
via 79b8c87338a2d40464e87e501daae403a2f14427 (commit)
via b0c6854d1e886456fabdc8f1c3bd21c89311c601 (commit)
via dbd90f6210617b23d5695c4c868392363c75d23b (commit)
via a6cdf9106074890b76d2eabe496af244e0134d31 (commit)
via 2634f1bd216ce18f061a282a53314cb1650dbd05 (commit)
via 78e7928797e239e71f96eb001460a0dbf943e18f (commit)
via 25d04bbe9528fafc68751f7beb22daeee3163d34 (commit)
via 3adf100e7f0c04aaf2da9ae4c6984cdb708c3b57 (commit)
via fedc6983f5dee39152e6f400f89a3e07eab57f0c (commit)
via 7c813406d6ba55f6a7418f80b13b0bc83cb67928 (commit)
via 7558bca1e99884c02747adb7cbea799d04ee24d5 (commit)
via f7be553ed0826d31759812d58db91589ccdf8a8c (commit)
via c9a0330989421afc138db6d195acf93f5eeda9fb (commit)
via 9d12de1ca6107801dada927729e755c0949d73bf (commit)
via 1461b78c47810073f8637bc4592cacaadcdaf14b (commit)
via 8b5f1e80e3e2e9ca2198e1baee8af36aa5d6c5b5 (commit)
via de71ce2195bb4f6a96b12437a2d4d1424fd1c59c (commit)
via e0c70110e241b065c42c1c07f32c3657bac5d98b (commit)
via df0afcbf9a0308fcd6ddcce1ac9366f785576f44 (commit)
via c412c9e2d69a3f07e195259f6ad5767fa8160a94 (commit)
via b74ef95004989bcfca5fc6468a6f978a196116ca (commit)
via 0dafb869265d0c369bb5ce45fbcabc2232d6fced (commit)
via 145b85c948603cf977a5c5b53d9d9f63fbdba221 (commit)
via 5fe84f96f3f79baba1f44ba57ce217f501b3c1f8 (commit)
via 4cac2a16b70be772e4f1520020762f63c0bf3efe (commit)
via 56a10594ea9e44e3f034ac11161fd06e5ae46544 (commit)
via ab34a9480b59c649a4fc73a466c8ca0975453ed9 (commit)
via 73a7b611bf2ef87e92d6b18c538a260aa988a2e5 (commit)
via 22cafa88f59ebe50c11f5b65a414800db79405a9 (commit)
via 02893e04154c0590b235082c5a6e5726ceb25dba (commit)
via 62eccefc15e2ca737098980aa0b7d226df73a456 (commit)
via a98a3ff2aad59d51fca6a2f3e2bdcfc99e84fa70 (commit)
via 826511f759c3bfa7c587c97786b955572039d2ac (commit)
via 32eac6fc3cce2a9d0a38add56a8bb893e4a85076 (commit)
via cf1e46d734ed51b4ac2eb8a09f2f787ae5c51092 (commit)
via 25dbefc92e7303a7b679a769eb06a7c25fdcf198 (commit)
via 85e942a26f5e7d4584d31005ff88c36dca215a11 (commit)
via ef4caf6874436ff3f451b95586893e39a8cec1ad (commit)
via 9661b7a4f3773d645d0525c4430e3cccf0f32eb5 (commit)
via b7290b0a8325021515a904ac60fa9afa019c9db1 (commit)
via cdea4893c24511ffc1a7338ca3eb6cfd86d68086 (commit)
via 4777b74b1e2eebe54cf27f3303f60e49023e7f6a (commit)
via 03dfcf9f284c9926479a8dd4e5acf1f5d2b964aa (commit)
via 4928718a346f086f1683c78d52b0bf009c1150a3 (commit)
via 80dc86320dde7cc81db8c8fde97cfcbac7914920 (commit)
via 3b88f3dec5227e8579672974f7028fb356ee1d94 (commit)
via 4b97bdba3bc4df20efb1aae7d89a1e3430d35ca3 (commit)
via d9b44d7c3255b0fd7359b9afeb613e6ff4c4eaac (commit)
via 2912c1ade5db1e20bfa3a8017a702cc8a7da36f1 (commit)
via 44ec4c57bf9928ef5d5cc117a6c2d92495dac489 (commit)
via 5cdbef46b74e6a5ba2383ef025e69fe605fa4f6e (commit)
via a497010f67d6a8e68f4d6d7e516b88d2261b1062 (commit)
via 3ecce31d3a3f72b9fa851ac99291865c119e551e (commit)
via 928c30213fb9f0c32d82995892ccdd8e054c9d6e (commit)
via 33cdf3e4bcfadf8e20822ca352babf7acca16821 (commit)
via fd85e53794ef7fe24c51c94534370545a0711bd4 (commit)
via 486ed3b5b483f1c12c2d978ec6564bd33a2c6aee (commit)
via e627f8e5fe8e2e3ea423b7dbd12d74597fb4983b (commit)
via 2c055831f0d56e42d055e1d72fb6f0db5f71def1 (commit)
via 33afe9bae732e62994e5957ee143a9c49571898b (commit)
via 099a1605574c7a8d232fd4c2d0c65e55aedeafad (commit)
via a99204ad8bd4d3b15c8219762442682a3d1285cf (commit)
via 7ee6db06162ad5a554058bb6160ad37b24fe42e0 (commit)
via fc4e8b5a5d3699221620a8d76701c8589f2b4ff1 (commit)
via f5aeab0390b735291ee82359f50d508619211623 (commit)
via da61a9822f66ff227b8859bf15ba76fd9afb9d12 (commit)
via 023d6c2e3017d323b5a70f987f3b4e0b8b8f0f7b (commit)
via a1a0fa6eb37b5432cc2b176e252856d37fcc4fc8 (commit)
via 0f7444966d8147cf5a742320f51fbb9909d6d42d (commit)
via fac9ad26b2239818e6fc371fbfaa894fa64045be (commit)
via f3cb1386e7ea99adba78350bb50bf34d6bdcfe1d (commit)
via 7834d9b79bf4e4d3c6ce63dd4c3a1e40b9d909e4 (commit)
via 140768ce79d8ea3af2adb3ac011b58a29a09b50e (commit)
via f90f6e19952d58b8590fe550ecf2308bd9b065dc (commit)
via b7be3de004cb05dad05704096e2a75e128952b18 (commit)
via 497c40f69e06776861a780500da1952eb7ea8fc1 (commit)
via 4c5eb616f041e4a10d8f8b3251fc3db5a58e726f (commit)
via e50c9667b86160eb5dfb9868aff420b72f799a5f (commit)
via 0c2a7bf18c65452ca1c2f0539bf692507d91e3c6 (commit)
via 9c6816e040d42d293eaf9ce41eff639135e8b2f5 (commit)
via 2a069118fee169460bdf68b9a639b0e96ac85266 (commit)
via 86807e8b7b179cbe87e559fb3b1f02c8b1990dc4 (commit)
via 8a0df9324a03b0f17772c64a9331236126c22124 (commit)
via c404d57afb2adda039e676877838927d3073df11 (commit)
via 993f626e603b9bbc02942bb55096d63b9a4f456b (commit)
via 674d1660e5602f2fab1eaf219a6b8b5ddf24c402 (commit)
via b5eec91bd185c91a09b3f42ed26fee7b13a70d9d (commit)
via 6cbe8923ead8226de1c20cfd8718e43fe8525ce1 (commit)
via 23bffef2295772f5b795236d60b7fb6ea754b7fb (commit)
via 39c77371a2f995025a584691fe61af12dc6ed5d7 (commit)
via 2ecc701869c8bc2d823a8073453c6caf1575dc47 (commit)
via 4eac0214e732e6c2f867d66ec71d4406680dbb94 (commit)
via 7b41b518c3ffebf1712445a8c6242509dc798003 (commit)
via 1b00fe0bac36422d30be167a009c452058975a21 (commit)
via 691b9c0f1771afa564a5959405f2e7a54c334d45 (commit)
via ec354d602d20700e6769deb798436d08256a49d5 (commit)
via 3d59783c0e9478f4766c380945d6200fc654f5d9 (commit)
via 32d460b8469eb53145f04161a5d01166f9b5f09e (commit)
via 5d3018c37179966f75183d9a98790eaaaf1d2cfc (commit)
via 4e1c079deb0aafb99d4114bb6504ff5ba1cbdeb4 (commit)
via 01633d30f764e8da42c4e5c4710b69cd379c9b39 (commit)
via aeb09b08e060be6f833d84ba88abfb168cc5f50e (commit)
via 4ff5875c965f21ab76a5924efd92f1832aeb36d4 (commit)
via 194abb41e1a0036956a9401efcae8b14ed66c532 (commit)
via 805a426aaee5ecfc5bd1c097069fe58f8241dfe2 (commit)
via a69545d7dec78eefb85a1598e5db4667cc210bf9 (commit)
via 979e78cfd96d74686af6f55f726c395a75275803 (commit)
via d1057ed6de7de9f2a64d8fa012c52647e89b515b (commit)
via e577a276900854622f4e9da9d1ccd7b484d0d1ec (commit)
via bbd46f341e9aa32d8dbd49f7a9a07cb3f1f92ea3 (commit)
via e040a989096cf7d5c0cdece1713ff903cb7568f8 (commit)
via c6fc68db9061547e73ec2b811e260bd7da7f58fa (commit)
via 499a01fece2a5f24f1b2943cf3dc6e9a3a8ca3b5 (commit)
via 826e85fe5291067b8d0b9c22918d63024aa6141c (commit)
via e5af1e4d945c25cd20d6fb5ef042e6de1aeda4a9 (commit)
via 4c54772c5c2fa7d2a25963379b5b96caf0c2521c (commit)
via 03e2e436db5cfd29a56d13f5d2101e42389bfc94 (commit)
via e088116238eb107e9831fccbfd66c1db3d837a3b (commit)
via dab594caf0bfc23c75c8cd2aa75479c7d2e79f1c (commit)
via eacb2ef82ea4809d874158756db973dd1e3fc8fc (commit)
via f77a91c0828a79f99d0c422f7e09b17c69174907 (commit)
via 9c392c9d18e2360360122b7356874fe5cc7cca64 (commit)
via aea77353c5996510f09c72cddfb54894ad9048b0 (commit)
via b3c431abb79a6c18464129695e482ebc84f3964d (commit)
via 6a47302c43eaee93783d83fb976ffce8cdc78be2 (commit)
via 05bdafed82106a0d8bfa53cd730eb3e1db68a51f (commit)
via 16626eaf9c63adfe780e8f51f9cd97810647e731 (commit)
via 19ccbc8a8fbc81b107fdc80afc802a107fc9fb84 (commit)
via 79ad588d61a56a062c043eae6aba3370ec10ac61 (commit)
via 8314a647d4bc38d9210c32d645d581f210b05cdc (commit)
via 81dd4155e92fc9d11ac788a97a5fd3c50488cc80 (commit)
via f2e6b7e9d130eba9132eddda1a5e244a542a23ed (commit)
via 241971bb95e42a19c8a6d8641eb92b3827b79226 (commit)
via 93214ddf89640d65710867fefb4fde094d4aa3a8 (commit)
via 747650303b87e50ebc08ef7fa63011e4f19afc4f (commit)
via 8119238d1fa672814a7591593b517c3c42859315 (commit)
via 98f27a323e234214a161b5766f9c567f47b9dbb7 (commit)
via 6b67f180668c7a05c941b4891bd2486601790165 (commit)
via 0bb130090b8dce5f85b0cb178a19f877759c0caa (commit)
via 9ce84a7915abaa987160ecbcae63128a9ed0a741 (commit)
from 6579a6a2a7161214adedf0f67dce62f4a4ad1afe (commit)
http://gitweb.samba.org/?p=tridge/ctdb.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 2f952af1a12e81a652ec9a4794db96f9593f2676
Author: Andrew Tridgell <tridge at samba.org>
Date: Thu Apr 23 11:35:42 2009 +1000
change shutdown level for ctdb to be 01
We want ctdb to shutdown first, as it manages many other
services. With the old level of 32 the NFS service would shutdown
first, and that would trigger ctdb to do a recovery. Then ctdb itself
would be shutdown a few seconds later, which causes a lot of error
messages in the other nodes logs
commit 373a04d6a47a5c7cf8d822d60be1d9b9ab4df784
Merge: 43c718ebd402abe2e1e6360ce21b08cc13030c88 6c900aa343096c5e1e297e055c36832ffa5028dd
Author: Andrew Tridgell <tridge at samba.org>
Date: Thu Apr 23 11:00:16 2009 +1000
Merge commit 'ronnie/master'
commit 6c900aa343096c5e1e297e055c36832ffa5028dd
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Apr 8 12:56:52 2009 +1000
new version 1.0.79
commit feab5f30b2d6cebf4dd28abc5a81f93424a4c852
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Apr 8 12:49:28 2009 +1000
create a function "remote_ip" which can be used from scripts to remove a single ip from an interface.
use this fucntion from the natgw eventscript
commit a9f851caec2525ccbb3a6d6283eaef52b89a4eb2
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Apr 8 10:45:00 2009 +1000
set libdir to ../lib64 on x86-64 platforms
commit 1b47ddc97373376b416a50939b74dc8c926fc917
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Apr 8 09:34:20 2009 +1000
install ctdb.pc from the RPM
commit 7c4389cc0baa43a0ffa9fb08944c253db7885807
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Apr 8 09:21:11 2009 +1000
From Mathieu Parent <math.parent at gmail.com>
Install the pkgconfig file
commit b0718551f55d5da9be0e6aba233f57c1ff8509be
Author: Mathieu Parent <math.parent at gmail.com>
Date: Wed Apr 8 09:14:20 2009 +1000
commit b8be5b06c3359d037db336dc12d38e0018349951
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Apr 8 08:48:55 2009 +1000
install /etc/ctdb/notify.sh as executable.
this addresses bug 6250
commit 43c718ebd402abe2e1e6360ce21b08cc13030c88
Merge: 0f2664a82128e38ac49c6e8e784129b779616a27 13e2c9044950f21918e4610726e73ed3d8f76920
Author: Andrew Tridgell <tridge at samba.org>
Date: Tue Apr 7 17:07:41 2009 +1000
Merge commit 'ronnie/master'
commit 13e2c9044950f21918e4610726e73ed3d8f76920
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Mon Apr 6 14:03:09 2009 +1000
we only need to switch into client mode from the eventscript child if we are running the monitor event
commit 018f8b0b1823ef59b46f1a671aec5309d10628f4
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Mon Apr 6 14:00:41 2009 +1000
increase the listen queue. Now that the eventscripts may become clients and connect back to the server we do get a lot more concurrent connection attempts (takepip/teleaseip are performed in parallell)
commit 33b296cee177adc61edc911caec8c24b3efa8441
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Mon Apr 6 13:16:36 2009 +1000
use _exit() and not exit() when we terminate a failed eventscript child process
commit 7f8f9385deee6eff2b7303147bc6412bbdc122df
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Mon Apr 6 12:00:22 2009 +1000
We dont need to verify the nodemap on remote nodes that are banned
commit 0889ae3c237bdb3bd72d45f2f64f5e5d8420870c
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Thu Apr 2 14:50:43 2009 +1100
if we cant pull the remote nodemap off a node we should mark it as a culprit so it eventually becomes banned.
commit 68eac459e5d2b6b534f72821036675ffe5d7a350
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Apr 1 17:21:38 2009 +1100
Change the (dodgy) seqnumfrequency variable to have ms resolution instead of second resolution.
Rename the variable to SeqnumInterval for
1, it is an interval and not a 1/interval unit
2, so that we catch when people use this old variable and can update the sysconfig file instead of silently changin semantics of this variable
this is a real dodgy variable
commit 9ac9745ba9296d01e3b18148ae8c3240e51cf090
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Apr 1 17:13:48 2009 +1100
remove a prototype for a function no longer used
commit 00d2213613822b758939019361a619bd7d7f4984
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Tue Mar 31 20:04:45 2009 +1100
new release 1.0.78
commit 42e2797271bc1cdb4eecf1227d4c2db668587193
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Tue Mar 31 20:00:00 2009 +1100
we should also install the 11.natgw eventscript if we want to be able to use it
commit ee52c0866e2b26c396fe60946159c559d47199eb
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Tue Mar 31 14:38:52 2009 +1100
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
commit ce534a83a05dbd40238e4eee0669d60ff396f935
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Tue Mar 31 14:23:31 2009 +1100
add a mechanism where the ctdb daemon will run a usercontrolled script when the node status changes to/from UNHEALTHY state.
This would allow a sysadmin to set up ctdb to send an email/snmptrap/... when the status of the node changes.
commit 274a4a1fe2e016f33296ebfc5ed6337ce3141d06
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Tue Mar 31 11:42:10 2009 +1100
new version 1.0.77
commit 34633223a46caaa079da233663f9c6dcc1803f87
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Tue Mar 31 11:33:28 2009 +1100
we must also try to set the routes when we release an ip since during the release/10.interfaces there can actually be a window where the kernel decides to remove all addresses (before we manually add them back in 10.interfaces) during which the kernel may also decide to delete all routes since there are no gateways reachable through this interface anymore.
commit 56b7095994d1de95e40a223ed503b5572ea9d1b9
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Mar 25 14:52:08 2009 +1100
new version 1.0.76
commit cd78765f9400d7abce7929a2dd199f65226e7664
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Mar 25 14:46:05 2009 +1100
change the ctdb command table to allow us to describe commands which can be run independtly of the ctdb daemon.
create a new debugging command xpnn which discovers the pnn of the local node and which works even if the local daemon is not running
commit e059df6d3cd81c67e5505e8ef2d6d0ef9a287b31
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Mar 25 13:46:41 2009 +1100
iupdate the documentation for NATGW to reflect that you can now use
multiple natgw groups in one cluster
commit 1046885cd22b5001e0251de2e536b5f6793459be
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Mar 25 13:37:57 2009 +1100
update how the NATGW configuration works.
allow the cluster to be partitioned into multiple disjoint natgw subsets
commit 95d22e4cf265d2119f72200ab0ec708f095853df
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Tue Mar 24 19:02:00 2009 +1100
web: fix typo
Conflicts:
web/index.html
commit ae317b2013eee01c4c0a5108c03f4024bea9e313
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Tue Mar 24 18:59:27 2009 +1100
update the documentatio n with all the new commands we supprot in the
ctdb tool
commit 0840aa2bd31b2da95342dca8ff35786a3d998688
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Tue Mar 24 18:23:56 2009 +1100
fix the html so that mine and obnox names are shown
commit 972036a5d510fb9b399f1ee34a8861dee4221267
Merge: 857733ae2bdfa0037af224abfabc020e2ac384c7 39a972b0d6d0d70282c25c54a124b67431467e77
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Tue Mar 24 17:49:55 2009 +1100
Merge branch 'obnox'
commit 857733ae2bdfa0037af224abfabc020e2ac384c7
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Tue Mar 24 14:08:57 2009 +1100
new version 1.0.75
commit dc2f28f7c988364b5d45f3048be4db3e5ff113b3
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Tue Mar 24 14:05:31 2009 +1100
create a varient of kill_tcp_connections that only kills off the local side of a connection
commit 292fff6eace39141591871e12f9a64e3441237be
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Tue Mar 24 13:51:32 2009 +1100
set --single-public-ip when lvs is used
commit 43fe18d86995744ba61c7a6405b70edcb265930a
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Tue Mar 24 13:45:11 2009 +1100
we need to set the port properly in the parse_ip helper
commit be50059c33845fec260ca53975d421a890303880
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Mon Mar 23 21:44:35 2009 +1100
add michael adams as one of the ctdb developers on the main ctdb webpage
commit 39a972b0d6d0d70282c25c54a124b67431467e77
Merge: ccaf9ebe062127124cf23e69dcd2ac2edda40020 c98f90ad61c9b1e679116fbed948ddca4111968d
Author: Michael Adam <obnox at samba.org>
Date: Mon Mar 23 10:07:44 2009 +0100
Merge commit 'ctdb-ronnie/master'
commit c98f90ad61c9b1e679116fbed948ddca4111968d
Author: root <root at rcn1.VSOFS1.COM>
Date: Mon Mar 23 19:07:45 2009 +1100
add a new command "ctdb scriptstatus"
this command shows which eventscripts were executed during the last monitoring cycle and the status from each eventscript.
If an eventscript timedout or returned an error we also
show the output from the eventscript.
Example :
[root at rcn1 ctdb-git]# ./bin/ctdb scriptstatus
6 scripts were executed last monitoring cycle
00.ctdb Status:OK Duration:0.021 Mon Mar 23 19:04:32 2009
10.interface Status:OK Duration:0.048 Mon Mar 23 19:04:32 2009
20.multipathd Status:OK Duration:0.011 Mon Mar 23 19:04:33 2009
40.vsftpd Status:OK Duration:0.011 Mon Mar 23 19:04:33 2009
41.httpd Status:OK Duration:0.011 Mon Mar 23 19:04:33 2009
50.samba Status:ERROR Duration:0.057 Mon Mar 23 19:04:33 2009
OUTPUT:ERROR: Samba tcp port 445 is not responding
Add a new helper function "switch_from_server_to_client()" which both
the recovery daemon can use as well as in the child process we start for running the actual eventscripts.
Create several new controls, both for the eventscript child process to inform the master daemon of the current status of the scripts as well as for the ctdb tool to extract this information from the runninc daemon.
commit 16f31786a031255ab5b3099a0a3c745de973347a
Author: root <root at rcn1.VSOFS1.COM>
Date: Mon Mar 23 12:37:30 2009 +1100
create a helper function that converts a ctdb instance in daemon mode to become
a ctdb client instance.
use this from the recovery daemon child process to switch to client mode
and connect back to the main daemon
commit b6e34503ac094a274a569a69e3d93d92ad911f4d
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Thu Mar 19 10:43:57 2009 +1100
The wbinfo --sequence command has been depreciated in favor of the new
--online-status command
commit 95d8ddbc2dd0b159e8df003502c3c336668d2c41
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Thu Mar 19 10:17:44 2009 +1100
update the natgw eventscript and documentation
commit f03bd2b3d906dac9fb876dca54535d22e9cf1b9e
Author: root <root at rcn1.VSOFS1.COM>
Date: Wed Mar 18 19:19:49 2009 +1100
redo how the natgw is done. just use a default route with a high metric instead of fancy policyrouting
commit b6f7cddc68508e52bc65b357b0b77258ae96362a
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Mar 18 10:05:00 2009 +1100
add documentation for the NAT-GW feature
commit 742283a8f8da7c614ee3a30d48c430e3a3bceeb9
Author: root <root at rcn1.VSOFS1.COM>
Date: Wed Mar 18 09:33:58 2009 +1100
change the NATGW_ example in sysconfig to make it more realistic
commit 4c598ab6f8e9b826d437b9ab869c4490f7c4faba
Author: root <root at rcn1.VSOFS1.COM>
Date: Tue Mar 17 07:35:53 2009 +1100
NAT-GW updates. Describe the functionality in the sysconfig file
commit 0772190203d501a39072f16948604742d7d59a5e
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Mon Mar 16 09:27:56 2009 +1100
new version 1.0.74
commit d416c0e1e57a42f7ab52de903dbd8b5e111decfe
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Mon Mar 16 09:21:24 2009 +1100
From C Cowan, AIX needs to set sockaddr.sa_len to a consistent value for
the address type used or the connect() call will fail.
commit 76d655f9aa3ebd39e7a40d0bbd85e40d08f3e90b
Author: root <root at rcn1.VSOFS1.COM>
Date: Thu Mar 12 12:33:19 2009 +1100
make sure we can collect proper mmfs data
commit ccaf9ebe062127124cf23e69dcd2ac2edda40020
Author: Michael Adam <obnox at samba.org>
Date: Tue Mar 10 00:21:04 2009 +0100
ctdb.sysconfig: add CTDB_MANAGES_HTTPD comment section
Michael
commit b1aba6651143ae1c85b24d78b67c760795ff5bff
Author: Michael Adam <obnox at samba.org>
Date: Mon Mar 9 00:20:30 2009 +0100
events.d/50.samba: allow CTDB_SERVICE_{SMB,NMB,WINBIND} to be overriden from sysconfig
Michael
commit 8518c9e0ffec44677d45f60e63936a831d62ab20
Author: Michael Adam <obnox at samba.org>
Date: Mon Mar 9 00:08:26 2009 +0100
ctdb.sysconfig: add CTDB_INIT_STYLE with explanation
Michael
commit 0f2664a82128e38ac49c6e8e784129b779616a27
Merge: 1a110993af1706e0c5df500fa7d14e16c0668372 ecf26af22245d0f55aded50e8768b0c21495f98c
Author: Andrew Tridgell <tridge at samba.org>
Date: Fri Mar 6 11:26:20 2009 +1100
Merge commit 'ronnie/master'
commit 36709e4325fe9a0f377e8e79741741ded4e7f7b0
Merge: f0e3cdde7bd35bb586a46c31609398b7d4b05a26 ecf26af22245d0f55aded50e8768b0c21495f98c
Author: Michael Adam <obnox at samba.org>
Date: Wed Mar 4 21:26:25 2009 +0100
Merge commit 'ctdb-ronnie/master'
commit ecf26af22245d0f55aded50e8768b0c21495f98c
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Mar 4 07:25:26 2009 +1100
new version 1.0.73
commit 432604a1435cd2b5a7178fb5aedf1d4b61bffeb9
Author: root <root at rcn1.VSOFS1.COM>
Date: Wed Mar 4 07:21:55 2009 +1100
Add a variable CTDB_NFS_SKIP_SHARE_CHECK to sysconfig that can disable the check that all shares are accessable.
This can take very long if there are very many shares and is in that case better to implement in a separate cronjob than in ctdb eventscript
commit f0e3cdde7bd35bb586a46c31609398b7d4b05a26
Merge: 124874847e5e03ce2a44bddfe778f01dfb0a7a03 ef9dc810c4309e8eba18d015c73c1b5d0760a4e8
Author: Michael Adam <obnox at samba.org>
Date: Sat Feb 28 03:09:13 2009 +0100
Merge commit 'ctdb-ronnie/master'
commit 124874847e5e03ce2a44bddfe778f01dfb0a7a03
Author: Michael Adam <obnox at samba.org>
Date: Sat Feb 28 03:08:31 2009 +0100
move common code of system_linux.c and system_aix.c into new system_common.c
Michael
commit ef9dc810c4309e8eba18d015c73c1b5d0760a4e8
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Feb 25 09:13:16 2009 +1100
From Sumit Bose <sbose at redhat.com>
Fix to the makefile dependencies for smnotify so that make -j works
commit 051ae5f3c13892b860818eac803d348f09845dc6
Author: root <root at test2n1.VSOFS1.COM>
Date: Fri Feb 20 10:58:34 2009 +1100
make it possible to disable checking all samba shares.
this is a timeconsuming process and might not be feasible to perform if there are very many thousand shares
commit 7412c6706c2d8ec668d0a6a50471db369f3dbf2b
Merge: e1c90b12290c682c2cba90e9afa3a09be014e20e e1be8cb2dc32f56eabd537b658b47929818b8d01
Author: Michael Adam <obnox at samba.org>
Date: Thu Feb 19 23:51:23 2009 +0100
Merge commit 'ctdb-ronnie/master'
commit e1be8cb2dc32f56eabd537b658b47929818b8d01
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Feb 18 13:22:26 2009 +1100
new version 1.0.72
commit fe4eea45c6b5702a794424037c3f2ab4241d5e5e
Merge: 59a04a50e64aae0a89b165d0428e23a8bcf8eb24 4777b74b1e2eebe54cf27f3303f60e49023e7f6a
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Feb 18 13:10:03 2009 +1100
Merge branch 'martins'
commit e1c90b12290c682c2cba90e9afa3a09be014e20e
Merge: 2f42429f6996e98c9bfad49eab9fa23e85d7bec2 59a04a50e64aae0a89b165d0428e23a8bcf8eb24
Author: Michael Adam <obnox at samba.org>
Date: Tue Feb 10 00:28:08 2009 +0100
Merge commit 'ctdb-ronnie/master'
commit 1a110993af1706e0c5df500fa7d14e16c0668372
Merge: 4777b74b1e2eebe54cf27f3303f60e49023e7f6a 59a04a50e64aae0a89b165d0428e23a8bcf8eb24
Author: Andrew Tridgell <tridge at samba.org>
Date: Mon Feb 9 10:53:47 2009 +1100
Merge commit 'ronnie/master'
commit 59a04a50e64aae0a89b165d0428e23a8bcf8eb24
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Sat Feb 7 08:10:34 2009 +1100
add a licence file
commit dfb16ce9ed65048d30109851737a9075d071ecdb
Author: root <root at test1n1.VSOFS1.COM>
Date: Thu Feb 5 14:44:46 2009 +1100
use netstat to check first and only fall back to netcat if netstat is unavailable
commit 2f42429f6996e98c9bfad49eab9fa23e85d7bec2
Author: Mathieu PARENT <math.parent at gmail.com>
Date: Wed Feb 4 00:50:46 2009 +0100
correct ctdbd(1) manpage warning
Signed-off-by: Michael Adam <obnox at samba.org>
commit e391bde5ac743956fb30ede65030973a1f13dae5
Author: Mathieu PARENT <math.parent at gmail.com>
Date: Wed Feb 4 00:48:56 2009 +0100
smnotify: fix popt.h include to allow use of system lib
Signed-off-by: Michael Adam <obnox at samba.org>
commit b9e50e3416fecef6a881be3f1b91be977299293f
Author: Michael Adam <obnox at samba.org>
Date: Wed Feb 4 00:42:33 2009 +0100
events 41.httpd: support suse and ubuntu/debian systems for managing apache
The httpd service on suse and ubuntu/debian systems is usually
called "apache2" nowadays.
Note: There are older installs with Apache 1.3 out there, in which case
the service is called "apache". An extra check for these installs could
be useful as a sequel to this patch...
Michael
commit 9e2245b9bb795e2d757aacd706a9861a59d1638e
Author: Michael Adam <obnox at samba.org>
Date: Wed Feb 4 00:28:16 2009 +0100
build: print default in help for --with-logdir
Michael
commit 79b8c87338a2d40464e87e501daae403a2f14427
Author: Michael Adam <obnox at samba.org>
Date: Wed Feb 4 00:22:01 2009 +0100
make: add a "showlayout" target for diagnostics
Michael
commit b0c6854d1e886456fabdc8f1c3bd21c89311c601
Author: Mathieu PARENT <math.parent at gmail.com>
Date: Wed Feb 4 00:15:57 2009 +0100
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 at samba.org>
commit dbd90f6210617b23d5695c4c868392363c75d23b
Author: Michael Adam <obnox at samba.org>
Date: Wed Feb 4 00:01:15 2009 +0100
events.d/41.httpd: fix a typo in the fix of the comment typo
This is embarassing...
Michael
commit a6cdf9106074890b76d2eabe496af244e0134d31
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Mon Feb 2 14:04:40 2009 +1100
new version 1.0.71
commit 2634f1bd216ce18f061a282a53314cb1650dbd05
Author: Michael Adam <obnox at samba.org>
Date: Fri Jan 30 18:30:25 2009 +0100
add a simple test script to test ctdb_check_tcp_ports
Michael
commit 78e7928797e239e71f96eb001460a0dbf943e18f
Author: Michael Adam <obnox at samba.org>
Date: Fri Jan 30 18:14:41 2009 +0100
ctdb_check_tcp_ports: correctly detect listeners on ipv6 :::<port> w/out netcat
The netstat test only grepped for the ipv4 wildcard address.
Now the ipv6 wildcard listener is correctly detected as well.
Michael
commit 25d04bbe9528fafc68751f7beb22daeee3163d34
Author: Michael Adam <obnox at samba.org>
Date: Fri Jan 30 16:41:37 2009 +0100
ctdb_check_tcp_ports: fail the check if neither netstat nor netcat/nc is found
Michael
commit 3adf100e7f0c04aaf2da9ae4c6984cdb708c3b57
Author: Michael Adam <obnox at samba.org>
Date: Fri Jan 30 16:10:05 2009 +0100
ctdb_check_tcp_ports: cope with multiple locations of netcat or nc
This fixes tcp port monitor events on systems, where netcat or nc
is not found in /usr/bin/, Debian, for instance.
The patch also separates the process of finding the binaries and
calling them, moving the detection outside of the loop over the
ports list.
Michael
commit fedc6983f5dee39152e6f400f89a3e07eab57f0c
Author: Michael Adam <obnox at samba.org>
Date: Thu Jan 29 13:22:02 2009 +0100
remove include <netinet/in.h> from public ctdb.h
This is not portable.
The ctdb build includes the necessary headers from includes.h.
And users of ctdb should cope with including the necessary
prerequisite headers themselves.
Michael
commit 7c813406d6ba55f6a7418f80b13b0bc83cb67928
Author: Michael Adam <obnox at samba.org>
Date: Thu Jan 29 11:46:04 2009 +0100
packaging: add a maketarball script
The script extracts the version number from the spec file.
It takes an extra argument, that can be appended to the
version in the tar ball name and directory prefix.
Michael
commit 7558bca1e99884c02747adb7cbea799d04ee24d5
Author: Michael Adam <obnox at samba.org>
Date: Wed Jan 28 17:40:24 2009 +0100
Fix the build on AIX: sys/socket.h needs to be included before ctdb.h
(for struct sockaddr to be defined)
Thanks to William Jojo <w.jojo at hvcc.edu> for reporting.
Michael
commit f7be553ed0826d31759812d58db91589ccdf8a8c
Author: Michael Adam <obnox at samba.org>
Date: Thu Jan 29 10:22:02 2009 +0100
autoconf: Make sure the result of the mkdir_has_mode test gets cached.
This fixes the autoconf 2.63 warning
"suspicious cache-id, must contain _cv_ to be cached".
Thanks to William Jojo <w.jojo at hvcc.edu> for reporting.
Michael
commit c9a0330989421afc138db6d195acf93f5eeda9fb
Author: Michael Adam <obnox at samba.org>
Date: Tue Jan 27 17:17:58 2009 +0100
events.d/41.httpd: fix a comment typo
Michael
commit 9d12de1ca6107801dada927729e755c0949d73bf
Author: Michael Adam <obnox at samba.org>
Date: Mon Jan 19 15:33:24 2009 +0100
Fix treatment of link local ipv6 addresses: set the scope id.
metze / Michael
Signed-off-by: Michael Adam <obnox at samba.org>
commit 1461b78c47810073f8637bc4592cacaadcdaf14b
Author: Michael Adam <obnox at samba.org>
Date: Mon Jan 19 14:14:07 2009 +0100
ctdb_util: use the parse_ip() function - avoid code duplication
Michael
Signed-off-by: Michael Adam <obnox at samba.org>
commit 8b5f1e80e3e2e9ca2198e1baee8af36aa5d6c5b5
Author: Michael Adam <obnox at samba.org>
Date: Mon Jan 19 19:08:37 2009 +0100
ctdb_sys_have_ip: fix ipv6 support for aix, too.
Michael
Signed-off-by: Michael Adam <obnox at samba.org>
commit de71ce2195bb4f6a96b12437a2d4d1424fd1c59c
Author: Stefan Metzmacher <metze at samba.org>
Date: Mon Jan 19 13:24:09 2009 +0100
ctdb_sys_have_ip: don't overwrite input data (setting port to 0)
metze
Signed-off-by: Michael Adam <obnox at samba.org>
commit e0c70110e241b065c42c1c07f32c3657bac5d98b
Author: Michael Adam <obnox at samba.org>
Date: Mon Jan 19 12:02:18 2009 +0100
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 at samba.org>
commit df0afcbf9a0308fcd6ddcce1ac9366f785576f44
Author: Michael Adam <obnox at samba.org>
Date: Mon Jan 19 21:22:58 2009 +0100
events 50.samba: fix control of nmbd without separate nmb service script.
protect all potentially empty $CTDB_SERVICE_* script names
Michael
commit c412c9e2d69a3f07e195259f6ad5767fa8160a94
Author: Michael Adam <obnox at samba.org>
Date: Mon Jan 19 14:46:30 2009 +0100
packaging(RPM): detect and use ccache if available
Michael
commit b74ef95004989bcfca5fc6468a6f978a196116ca
Author: Michael Adam <obnox at samba.org>
Date: Mon Jan 19 09:42:48 2009 +0100
Makefile: remove extra "/" in paths
Michael
commit 0dafb869265d0c369bb5ce45fbcabc2232d6fced
Author: Michael Adam <obnox at samba.org>
Date: Sat Jan 17 16:18:02 2009 +0100
makerpms: fix detection of support for --rsyncable flag in gzip.
Michael
commit 145b85c948603cf977a5c5b53d9d9f63fbdba221
Author: Michael Adam <obnox at samba.org>
Date: Fri Jan 16 14:01:37 2009 +0100
ctdb.init: fix typo
Michael
commit 5fe84f96f3f79baba1f44ba57ce217f501b3c1f8
Author: Michael Adam <obnox at samba.org>
Date: Fri Jan 16 13:33:13 2009 +0100
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
commit 4cac2a16b70be772e4f1520020762f63c0bf3efe
Author: Michael Adam <obnox at samba.org>
Date: Fri Jan 16 13:31:02 2009 +0100
funcions: make (nice_)service a noop for empty service name
Michael
commit 56a10594ea9e44e3f034ac11161fd06e5ae46544
Author: Michael Adam <obnox at samba.org>
Date: Fri Jan 16 13:28:19 2009 +0100
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
commit ab34a9480b59c649a4fc73a466c8ca0975453ed9
Author: Michael Adam <obnox at samba.org>
Date: Fri Jan 16 13:26:57 2009 +0100
functions: add detect_init_style().
Michael
commit 73a7b611bf2ef87e92d6b18c538a260aa988a2e5
Author: root <root at rcn1.VSOFS1.COM>
Date: Fri Jan 16 10:13:53 2009 +1100
new version
commit 22cafa88f59ebe50c11f5b65a414800db79405a9
Author: Michael Adam <obnox at samba.org>
Date: Fri Dec 19 11:50:06 2008 +0100
ctdb.init: add $network to RequiredStop to match RequiredStart.
This is to make rpm checks (eg.g for SuSE systems) survive.
Michael
commit 02893e04154c0590b235082c5a6e5726ceb25dba
Author: Andreas Schneider <anschneider at suse.de>
Date: Wed Oct 29 14:12:04 2008 +0100
Fix circular dependency error with autoconf 2.6.3.
Signed-off-by: Andreas Schneider <anschneider at suse.de>
(cherry picked from commit b39611c36bb904774fd4032bf2f8003fbdeb5d34)
Signed-off-by: Michael Adam <obnox at samba.org>
commit 62eccefc15e2ca737098980aa0b7d226df73a456
Author: Michael Adam <obnox at samba.org>
Date: Wed Dec 17 16:01:49 2008 +0100
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
commit a98a3ff2aad59d51fca6a2f3e2bdcfc99e84fa70
Author: Michael Adam <obnox at samba.org>
Date: Wed Dec 17 12:18:09 2008 +0100
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
commit 826511f759c3bfa7c587c97786b955572039d2ac
Author: Michael Adam <obnox at samba.org>
Date: Wed Dec 17 12:17:15 2008 +0100
makerpms: confess
Michael
commit 32eac6fc3cce2a9d0a38add56a8bb893e4a85076
Author: Michael Adam <obnox at samba.org>
Date: Wed Dec 17 12:15:34 2008 +0100
makerpms: don't hard-code the version number but extract it from ctdb.spec
Michael
commit cf1e46d734ed51b4ac2eb8a09f2f787ae5c51092
Author: Michael Adam <obnox at samba.org>
Date: Wed Dec 17 12:13:42 2008 +0100
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
commit 25dbefc92e7303a7b679a769eb06a7c25fdcf198
Author: Michael Adam <obnox at samba.org>
Date: Wed Dec 17 12:12:17 2008 +0100
makerpms: don't cd to $SPECDIR but rpmbuild -ba $SPECDIR/$SPECFILE instead
Michael
commit 85e942a26f5e7d4584d31005ff88c36dca215a11
Author: Michael Adam <obnox at samba.org>
Date: Wed Dec 17 12:09:13 2008 +0100
makerpms: catch error of git archive correctly (echo resets $?)
Michael
commit ef4caf6874436ff3f451b95586893e39a8cec1ad
Author: Michael Adam <obnox at samba.org>
Date: Wed Dec 17 12:06:25 2008 +0100
makerpms: move comment to appropriate place
Michael
commit 9661b7a4f3773d645d0525c4430e3cccf0f32eb5
Author: Michael Adam <obnox at samba.org>
Date: Wed Dec 17 12:05:05 2008 +0100
makerpms: use variable (SPECFILE) that is available instead of hard coded file name
Michael
commit b7290b0a8325021515a904ac60fa9afa019c9db1
Author: Michael Adam <obnox at samba.org>
Date: Tue Dec 16 00:30:55 2008 +0100
doc: join broken lines in excerpt from log.ctdb
Michael
commit cdea4893c24511ffc1a7338ca3eb6cfd86d68086
Author: Michael Adam <obnox at samba.org>
Date: Tue Dec 16 00:17:04 2008 +0100
ctdb.samba.org: fix instruction for turning off samba service autostart
Extend to show valid commands on Redhat and SuSE Linux.
Michael
commit 4777b74b1e2eebe54cf27f3303f60e49023e7f6a
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Jan 16 15:50:33 2009 +1100
Make message in 62_ctdb_persistent_unsafe.sh more informative.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit 03dfcf9f284c9926479a8dd4e5acf1f5d2b964aa
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Jan 16 15:12:40 2009 +1100
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 at meltin.net>
commit 4928718a346f086f1683c78d52b0bf009c1150a3
Merge: 80dc86320dde7cc81db8c8fde97cfcbac7914920 3b88f3dec5227e8579672974f7028fb356ee1d94
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Jan 16 14:19:55 2009 +1100
Merge commit 'origin/master' into martins
commit 80dc86320dde7cc81db8c8fde97cfcbac7914920
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Jan 16 14:17:04 2009 +1100
Git should ignore the test_trigger event script.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit 3b88f3dec5227e8579672974f7028fb356ee1d94
Author: Stefan Metzmacher <metze at samba.org>
Date: Thu Jan 15 13:20:33 2009 +0100
Fix segfault in ip takeover fallback code.
metze
Signed-off-by: Michael Adam <obnox at samba.org>
commit 4b97bdba3bc4df20efb1aae7d89a1e3430d35ca3
Author: Martin Schwenke <martin at meltin.net>
Date: Tue Jan 13 17:02:59 2009 +1100
Remove the sorts from 06_ctdb_getpid.sh - the PIDs should be listed in
node order.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit d9b44d7c3255b0fd7359b9afeb613e6ff4c4eaac
Author: root <root at rcn1.VSOFS1.COM>
Date: Tue Jan 13 16:17:20 2009 +1100
finish the ipv6 support.
allow clients to register either ipv4 or ipv6 client connections to the tickles list
commit 2912c1ade5db1e20bfa3a8017a702cc8a7da36f1
Author: Martin Schwenke <martin at meltin.net>
Date: Tue Jan 13 14:55:31 2009 +1100
Use $CTDB_TEST_WRAPPER in other tests that need it.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit 44ec4c57bf9928ef5d5cc117a6c2d92495dac489
Author: Martin Schwenke <martin at meltin.net>
Date: Tue Jan 13 14:51:40 2009 +1100
Use $CTDB_TEST_WRAPPER in 51_ctdb_bench.sh.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit 5cdbef46b74e6a5ba2383ef025e69fe605fa4f6e
Author: Martin Schwenke <martin at meltin.net>
Date: Mon Jan 12 15:47:12 2009 +1100
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 at meltin.net>
commit a497010f67d6a8e68f4d6d7e516b88d2261b1062
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Jan 9 18:15:06 2009 +1100
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 at meltin.net>
commit 3ecce31d3a3f72b9fa851ac99291865c119e551e
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Jan 9 17:52:38 2009 +1100
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 at meltin.net>
commit 928c30213fb9f0c32d82995892ccdd8e054c9d6e
Merge: 33cdf3e4bcfadf8e20822ca352babf7acca16821 fd85e53794ef7fe24c51c94534370545a0711bd4
Author: Martin Schwenke <martin at meltin.net>
Date: Thu Jan 8 17:28:09 2009 +1100
Merge commit 'origin/master' into martins
commit 33cdf3e4bcfadf8e20822ca352babf7acca16821
Author: Martin Schwenke <martin at meltin.net>
Date: Thu Jan 8 17:12:03 2009 +1100
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 at meltin.net>
commit fd85e53794ef7fe24c51c94534370545a0711bd4
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Thu Dec 18 14:31:28 2008 +1100
new version 1.0.69
commit 486ed3b5b483f1c12c2d978ec6564bd33a2c6aee
Author: Martin Schwenke <martin at meltin.net>
Date: Thu Dec 18 14:25:07 2008 +1100
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 at meltin.net>
commit e627f8e5fe8e2e3ea423b7dbd12d74597fb4983b
Author: Martin Schwenke <martin at meltin.net>
Date: Thu Dec 18 11:28:43 2008 +1100
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 at meltin.net>
commit 2c055831f0d56e42d055e1d72fb6f0db5f71def1
Author: Martin Schwenke <martin at meltin.net>
Date: Thu Dec 18 09:45:49 2008 +1100
Bug fixes for ctdb_bench from Ronnie.
commit 33afe9bae732e62994e5957ee143a9c49571898b
Author: Martin Schwenke <martin at meltin.net>
Date: Wed Dec 17 16:59:23 2008 +1100
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 at meltin.net>
commit 099a1605574c7a8d232fd4c2d0c65e55aedeafad
Merge: a99204ad8bd4d3b15c8219762442682a3d1285cf 7ee6db06162ad5a554058bb6160ad37b24fe42e0
Author: Martin Schwenke <martin at meltin.net>
Date: Wed Dec 17 15:05:44 2008 +1100
Merge commit 'origin/master' into martins
commit a99204ad8bd4d3b15c8219762442682a3d1285cf
Author: Martin Schwenke <martin at meltin.net>
Date: Tue Dec 16 17:32:34 2008 +1100
New test 26_ctdb_config_check_error_on_unreachable_ctdb.sh.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit 7ee6db06162ad5a554058bb6160ad37b24fe42e0
Author: root <root at test1n1.VSOFS1.COM>
Date: Wed Dec 17 14:26:01 2008 +1100
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
commit fc4e8b5a5d3699221620a8d76701c8589f2b4ff1
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Dec 17 12:01:40 2008 +1100
dont call ctdb_fatal() just because we are asked to restart a connection
to a remote node and ctdb->methods is NULL.
This can happen when we are in the middle of a normal shutdown of the
daemon and we have already shut down the transport layer (thus setting
ctdb->methods == NULL in the transport layer destructor)
band there is some unprocessed data related to a remote node.
This prevents an ugly race condition where ctdb might sometimes (rare)
cause a core dump during "ctdb shutdown".
commit f5aeab0390b735291ee82359f50d508619211623
Author: Martin Schwenke <martin at meltin.net>
Date: Tue Dec 16 17:22:22 2008 +1100
Finish 24_ctdb_getdbmap.sh. New test 25_dumpmemory.sh.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit da61a9822f66ff227b8859bf15ba76fd9afb9d12
Merge: f90f6e19952d58b8590fe550ecf2308bd9b065dc 023d6c2e3017d323b5a70f987f3b4e0b8b8f0f7b
Author: Martin Schwenke <martin at meltin.net>
Date: Tue Dec 16 11:21:55 2008 +1100
Merge commit 'origin/master' into martins
commit 023d6c2e3017d323b5a70f987f3b4e0b8b8f0f7b
Author: Michael Adam <obnox at samba.org>
Date: Mon Dec 15 18:21:37 2008 +0100
skip directories containing macros (%) in ctdb_check_directories_probe
This prevents the monitor action of 50.samba from failing
on e.g. a typical [homes] service with "path = /home/%S" .
Michael
commit a1a0fa6eb37b5432cc2b176e252856d37fcc4fc8
Author: Michael Adam <obnox at samba.org>
Date: Sat Jul 5 14:28:27 2008 +0200
ctdb.init: add Default-Start to init script to enable autostart.
Michael
commit 0f7444966d8147cf5a742320f51fbb9909d6d42d
Author: Michael Adam <obnox at samba.org>
Date: Fri Dec 12 16:57:58 2008 +0100
ctdb.init: check availability of ctdb (with ping) before calling ctdb status
Michael
commit fac9ad26b2239818e6fc371fbfaa894fa64045be
Author: Michael Adam <obnox at samba.org>
Date: Fri Dec 12 16:00:07 2008 +0100
ctdb.init: behave correctly when calling "service ctdb stop" on stopped service
When "service ctdb stop" is called and the ctdbd is not running,
don't print the "Failed to connect to daemon" error messages.
But print a warning and exit with status success instead.
Michael
commit f3cb1386e7ea99adba78350bb50bf34d6bdcfe1d
Author: Michael Adam <obnox at samba.org>
Date: Fri Dec 12 16:05:04 2008 +0100
ctdb.init: fix return code of "service ctdb stop" on non-redhat systems
Michael
commit 7834d9b79bf4e4d3c6ce63dd4c3a1e40b9d909e4
Author: Michael Adam <obnox at samba.org>
Date: Fri Dec 12 16:04:29 2008 +0100
ctdb.init: fix status message of "service ctdb stop" on suse systems
Michael
commit 140768ce79d8ea3af2adb3ac011b58a29a09b50e
Author: Michael Adam <obnox at samba.org>
Date: Sat Jul 5 14:42:46 2008 +0200
packaging: set docdir in calls to make (to get it right on e.g. SuSE systems).
Currently docdir = /usr/share/doc is hardcoded in the Makefile.in.
Some systems use a different doc dir (SuSE uses /usr/share/doc/packages).
And not all versions of autoconf provide the --docdir parameter
(2.61 does, while 2.59 does not). So we use the quick solution
to specify "docdir=%{_docdir}" in the make calls in the spec file.
Michael
commit f90f6e19952d58b8590fe550ecf2308bd9b065dc
Author: Martin Schwenke <martin at meltin.net>
Date: Mon Dec 15 17:52:12 2008 +1100
3 new tests. 24_ctdb_getdbmap.sh is only 1/2 implemented but does
something vaguely useful. ctdb_test_exit unsets $ctdb_test_exit_hook.
Fix bug in 17_ctdb_config_delete_ip.sh.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit b7be3de004cb05dad05704096e2a75e128952b18
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Dec 12 18:44:21 2008 +1100
Add a recovery to ctdb_test_exit to improve test stability.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit 497c40f69e06776861a780500da1952eb7ea8fc1
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Dec 12 17:25:38 2008 +1100
Rename $CTDB_NUM_NODES to $CTDB_TEST_NUM_DAEMONS and only set it if
$CTDB_TEST_REAL_CLUSTER is not set. After a ctdb restart, force a
recovery to attempt to help tests that follows.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit 4c5eb616f041e4a10d8f8b3251fc3db5a58e726f
Merge: 2a069118fee169460bdf68b9a639b0e96ac85266 e50c9667b86160eb5dfb9868aff420b72f799a5f
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Dec 12 15:39:53 2008 +1100
Merge commit 'origin/master' into martins
commit e50c9667b86160eb5dfb9868aff420b72f799a5f
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Fri Dec 12 09:39:55 2008 +1100
New version 1.0.68
commit 0c2a7bf18c65452ca1c2f0539bf692507d91e3c6
Author: Michael Adam <obnox at samba.org>
Date: Wed Dec 10 22:27:36 2008 +0100
Improve the monitor event test for ethernet interfaces (link detection).
On some systems, the ethtool link detection is not successful when a
cable is plugged but the interface has not been brought up previously.
This improves the test by bringing the interface up (without checking
for success here) and trying the ethtool test again afterwards.
Michael
commit 9c6816e040d42d293eaf9ce41eff639135e8b2f5
Author: Michael Adam <obnox at samba.org>
Date: Wed Dec 10 22:19:31 2008 +0100
Use "grep -q" instead of "grep ... > /dev/null" in events.d/10.interfaces
This enhances readability.
Michael
commit 2a069118fee169460bdf68b9a639b0e96ac85266
Author: Martin Schwenke <martin at meltin.net>
Date: Thu Dec 11 18:14:17 2008 +1100
Add message about restart to 18_ctdb_freeze.sh.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit 86807e8b7b179cbe87e559fb3b1f02c8b1990dc4
Author: Martin Schwenke <martin at meltin.net>
Date: Wed Dec 10 16:13:42 2008 +1100
With local daemons the sockets are now numbered starting from 0. Fix
setup of local daemons so that it correctly assigns no public IPs to a
single node each time. Separate out daemon_setup so that the
selection of the node with no public IPs is only done once at the
beginning of testing. Clean up all current tests, mostly with a view
to ensuring that a node selected for testing some kind of failover
actually has public addresses assigned. Reenabled 01_ctdb_version.sh
- it now passes if rpm doesn't do anything useful on the node.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit 8a0df9324a03b0f17772c64a9331236126c22124
Author: root <root at test1n1.VSOFS1.COM>
Date: Wed Dec 10 12:06:51 2008 +1100
update the "ctdb recover" command.
block and wait until the clustered has completed the recovery before returning.
this makes it easier to script since it avoids the common need for
ctdb recover
... complex loop to wait for recovery to complete ...
script continues
commit c404d57afb2adda039e676877838927d3073df11
Author: root <root at test1n1.VSOFS1.COM>
Date: Wed Dec 10 12:01:19 2008 +1100
add a CTDB_TIMEOUT variable for the ctdb tool.
If set this specified the maximum runtime for the ctdb tool before it will terminate with status == 20
Just like the -T ... option would.
commit 993f626e603b9bbc02942bb55096d63b9a4f456b
Author: root <root at test1n1.VSOFS1.COM>
Date: Wed Dec 10 11:49:51 2008 +1100
make sure we return an errorcode when the ctdb command has hung and is timeodout by the -T <timeout> setting
commit 674d1660e5602f2fab1eaf219a6b8b5ddf24c402
Merge: b5eec91bd185c91a09b3f42ed26fee7b13a70d9d 8a0df9324a03b0f17772c64a9331236126c22124
Author: Martin Schwenke <martin at meltin.net>
Date: Wed Dec 10 11:42:02 2008 +1100
Merge commit 'origin/master' into martins
commit b5eec91bd185c91a09b3f42ed26fee7b13a70d9d
Merge: 6cbe8923ead8226de1c20cfd8718e43fe8525ce1 c404d57afb2adda039e676877838927d3073df11
Author: Martin Schwenke <martin at meltin.net>
Date: Wed Dec 10 11:32:24 2008 +1100
Merge commit 'origin/master' into martins
commit 6cbe8923ead8226de1c20cfd8718e43fe8525ce1
Merge: 23bffef2295772f5b795236d60b7fb6ea754b7fb 993f626e603b9bbc02942bb55096d63b9a4f456b
Author: Martin Schwenke <martin at meltin.net>
Date: Wed Dec 10 11:22:59 2008 +1100
Merge commit 'origin/master' into martins
commit 23bffef2295772f5b795236d60b7fb6ea754b7fb
Author: Martin Schwenke <martin at meltin.net>
Date: Tue Dec 9 18:20:11 2008 +1100
Added use of $ctdb_test_exit_hook to function ctdb_test_exit. Removed
sleeps from ban/unban tests. Now expect "ctdb ping" to return false
if it fails, so made relevant change to 09_ctdb_ping.sh. New
functions install_eventscript and uninstall_eventscript. New
setup/cleanup tests 00_ctdb_install_eventscript.sh and
99_ctdb_uninstall_eventscript.sh. New test 21_ctdb_disablemonitor.sh,
which is incredibly complex.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit 39c77371a2f995025a584691fe61af12dc6ed5d7
Author: root <root at test1n1.VSOFS1.COM>
Date: Tue Dec 9 12:03:42 2008 +1100
add a helper that waits until the clueter is no longe rin recovery mode and return the generation number.
change the ban/unban logic to wait until we are not in recovery before it bans/unbans the node.
also wait until after the cluster has recovered from the ban/unban before returning so that the cluster is in recpovery mode == normal when the command returns. this makes it much easier to script things ...
commit 2ecc701869c8bc2d823a8073453c6caf1575dc47
Merge: 1b00fe0bac36422d30be167a009c452058975a21 39c77371a2f995025a584691fe61af12dc6ed5d7
Author: Martin Schwenke <martin at meltin.net>
Date: Tue Dec 9 11:46:34 2008 +1100
Merge commit 'origin/master' into martins
commit 4eac0214e732e6c2f867d66ec71d4406680dbb94
Author: root <root at test1n1.VSOFS1.COM>
Date: Tue Dec 9 10:45:14 2008 +1100
update to the flags handling
make sure to abort the monitoring and restart if we failed to get the nodemap from a remote node
commit 7b41b518c3ffebf1712445a8c6242509dc798003
Author: root <root at test1n1.VSOFS1.COM>
Date: Mon Dec 8 17:29:17 2008 +1100
If ctdbd was started with the --socket option then we also set the CTDB_SOCKET variable so that the eventscripts can pick up the name proper
commit 1b00fe0bac36422d30be167a009c452058975a21
Merge: ec354d602d20700e6769deb798436d08256a49d5 7b41b518c3ffebf1712445a8c6242509dc798003
Author: Martin Schwenke <martin at meltin.net>
Date: Mon Dec 8 17:03:50 2008 +1100
Merge commit 'origin/master' into martins
commit 691b9c0f1771afa564a5959405f2e7a54c334d45
Author: root <root at test1n1.VSOFS1.COM>
Date: Mon Dec 8 12:57:40 2008 +1100
return -1 if ctdb ping failed
commit ec354d602d20700e6769deb798436d08256a49d5
Merge: 3d59783c0e9478f4766c380945d6200fc654f5d9 32d460b8469eb53145f04161a5d01166f9b5f09e
Author: Martin Schwenke <martin at meltin.net>
Date: Mon Dec 8 08:57:46 2008 +1100
Merge commit 'origin/master' into martins
commit 3d59783c0e9478f4766c380945d6200fc654f5d9
Author: Martin Schwenke <martin at meltin.net>
Date: Mon Dec 8 08:15:18 2008 +1100
When running with local daemons, provided there is more than 2 of
them, randomly pick a single node that will not have any public IPs
assigned. This will make life a bit more interesting and will
simulate what happens on real clusters with a management node. Some
tests were disabling a node to implicitly trigger a ctdb restart - now
use an explicit restart of ctdb when it is required.
17_ctdb_config_delete_ip.sh now randomly chooses a public IP on any
node to disable - this works around a problem where the hardcoded node
might not have any public addresses.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit 32d460b8469eb53145f04161a5d01166f9b5f09e
Author: root <root at test1n1.VSOFS1.COM>
Date: Fri Dec 5 16:32:30 2008 +1100
redo and update how we synchronize flags across the cluster.
this simplifies the code and should close a race condition between the local recovery daemon and a remote node when flags are changing.
commit 5d3018c37179966f75183d9a98790eaaaf1d2cfc
Author: root <root at test1n1.VSOFS1.COM>
Date: Fri Dec 5 10:33:38 2008 +1100
some platforms are very picky about the third argument passed to bind().
and would complain if sa.family is AF_INET and the third argument is not exactly the size of a sockaddr_in.
We used to pass a union containing both a sockaddr_in and a sockaddr_in6 which would mean that on those platforms bind() would fail since the passed structure for AF_INET would be too big.
Thus we need to set and pass the appropriate size to bind. At the same time for thos eplatforms we can also set sin[6]_size to the expected size.
(bind() on those platforms were isurprisingly perfectly ok with sin_len was "too big")
commit 4e1c079deb0aafb99d4114bb6504ff5ba1cbdeb4
Author: Martin Schwenke <martin at meltin.net>
Date: Thu Dec 4 17:19:51 2008 +1100
New test for getmonmode. Overload node_has_status some more to
support checking the monitoring mode.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit 01633d30f764e8da42c4e5c4710b69cd379c9b39
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Thu Dec 4 15:25:03 2008 +1100
new version 1.0.67
commit aeb09b08e060be6f833d84ba88abfb168cc5f50e
Author: root <root at test1n1.VSOFS1.COM>
Date: Thu Dec 4 15:03:40 2008 +1100
fix an incorrect path
commit 4ff5875c965f21ab76a5924efd92f1832aeb36d4
Merge: 805a426aaee5ecfc5bd1c097069fe58f8241dfe2 979e78cfd96d74686af6f55f726c395a75275803
Author: Martin Schwenke <martin at meltin.net>
Date: Thu Dec 4 14:42:04 2008 +1100
Merge commit 'origin/master' into martins
commit 194abb41e1a0036956a9401efcae8b14ed66c532
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Thu Dec 4 14:35:00 2008 +1100
add a description of the recovery-process
commit 805a426aaee5ecfc5bd1c097069fe58f8241dfe2
Author: Martin Schwenke <martin at meltin.net>
Date: Wed Dec 3 18:08:21 2008 +1100
ctdb_test_init now contains a trap to force ctdb_test_exit to be run
if the shell exits and ctdb_test_exit cancels this trap. This means
that a testcase executing under set -e will call ctdb_test_exit on
failure, allowing the cluster to be restarted if necessary so that
following tests can complete successfully. ctdb_test_exit now
respects $?, so a test will fail if the last thing executed before
ctdb_test_exit failed - this probably means the above trap was
triggered.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit a69545d7dec78eefb85a1598e5db4667cc210bf9
Author: Martin Schwenke <martin at meltin.net>
Date: Wed Dec 3 15:48:24 2008 +1100
$PATH only inludes $CTDB_DIR/bin if we're using local sockets. Rename
$TEST_WRAP to $CTDB_TEST_WRAPPER - value now set using
$CTDB_TEST_REMOTE_SCRIPTS_DIR if that is set.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit 979e78cfd96d74686af6f55f726c395a75275803
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Tue Dec 2 14:08:10 2008 +1100
print the list of valid debug level literals when an invalid debug level
is specified in 'ctdb setdebug'
commit d1057ed6de7de9f2a64d8fa012c52647e89b515b
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Tue Dec 2 13:26:30 2008 +1100
redesign how reloadnodes is implemented.
modify the transport methods to allow to restart individual connections
and set up destructors properly.
only tear down/set-up tcp connections to nodes removed from the cluster
or nodes added to the cluster.
Leave tcp connections to unchanged nodes connected.
make "ctdb reloadnodes" explicitely cause a recovery of the cluster once
the files have been realoaded
commit e577a276900854622f4e9da9d1ccd7b484d0d1ec
Author: root <root at test1n1.VSOFS1.COM>
Date: Fri Nov 28 11:29:43 2008 +1100
debuglevel is a signed int, not usnigned.
commit bbd46f341e9aa32d8dbd49f7a9a07cb3f1f92ea3
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Fri Nov 28 09:52:26 2008 +1100
make it possible to delete an ip from all nodes at once using
"ctdb delip x.x.x.x -n all"
This is not as straightforward as one might think since during the
delete process we don not want the ip to be bouncing from one node to
another as node by node deletes it.
Thus we first delete the ip from all connected nodes which are not
currently hosting it.
After this we delete the ip from the node which is hosting it.
commit e040a989096cf7d5c0cdece1713ff903cb7568f8
Author: Martin Schwenke <martin at meltin.net>
Date: Thu Nov 27 18:11:22 2008 +1100
4 new tests. Hacked function node_has_status to support
frozen/unfrozen via ctdb statistics command.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit c6fc68db9061547e73ec2b811e260bd7da7f58fa
Author: Martin Schwenke <martin at meltin.net>
Date: Tue Nov 25 17:53:28 2008 +1100
4 new tests. Marked more ctdbd.sh tests as done - will remove this
file soon. Simplify 06_ctdb_getpid.sh by using -v option to
try_command_on_node.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit 499a01fece2a5f24f1b2943cf3dc6e9a3a8ca3b5
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Mon Nov 24 19:06:02 2008 +1100
inew version 1.0.66
ddwq
commit 826e85fe5291067b8d0b9c22918d63024aa6141c
Author: Martin Schwenke <martin at meltin.net>
Date: Mon Nov 24 17:47:09 2008 +1100
New test 09_ctdb_ping.sh. Add documentation and command-line
processing to all tests. New script ctdb_test_env sets up environment
for tests, is now sourced by run_tests, and can also take a test on
the command-line, complete with options. Various cleanups and
improvements. Document tests that have been properly implemented in
ctdbd.sh.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit e5af1e4d945c25cd20d6fb5ef042e6de1aeda4a9
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Nov 21 19:12:22 2008 +1100
Incorporate temporary patch from Ronnie that adds --nopublicipcheck
option to ctdbd. Commit here because it seems to work.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit 4c54772c5c2fa7d2a25963379b5b96caf0c2521c
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Nov 21 19:01:48 2008 +1100
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 at meltin.net>
commit 03e2e436db5cfd29a56d13f5d2101e42389bfc94
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Fri Nov 21 16:24:12 2008 +1100
allow to change the recmaster even the database is not frozen
commit e088116238eb107e9831fccbfd66c1db3d837a3b
Merge: eacb2ef82ea4809d874158756db973dd1e3fc8fc 6579a6a2a7161214adedf0f67dce62f4a4ad1afe
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Nov 21 13:00:37 2008 +1100
Merge commit 'origin/master' into martins
commit dab594caf0bfc23c75c8cd2aa75479c7d2e79f1c
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Fri Nov 21 11:30:32 2008 +1100
remove two variables no longer used from the example sysconfig file
commit eacb2ef82ea4809d874158756db973dd1e3fc8fc
Author: Martin Schwenke <martin at meltin.net>
Date: Thu Nov 20 20:40:01 2008 +1100
Add some simple tests that can be run from within the tree.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit f77a91c0828a79f99d0c422f7e09b17c69174907
Merge: 9c392c9d18e2360360122b7356874fe5cc7cca64 1f25958dc739677a487fa496fbeffcda7a0f2204
Author: Martin Schwenke <martin at meltin.net>
Date: Wed Nov 19 13:21:07 2008 +1100
Merge branch 'master' into martins
commit 9c392c9d18e2360360122b7356874fe5cc7cca64
Merge: aea77353c5996510f09c72cddfb54894ad9048b0 0098efd4443038f2d902e3a7c3640e63f06be7d1
Author: Martin Schwenke <martin at meltin.net>
Date: Thu Oct 16 14:15:15 2008 +1100
Merge commit 'origin/master' into martins
commit aea77353c5996510f09c72cddfb54894ad9048b0
Merge: b3c431abb79a6c18464129695e482ebc84f3964d a06abf6bff6c4d379453e5063d8de1a6542c982a
Author: Martin Schwenke <martin at meltin.net>
Date: Thu Sep 18 06:33:48 2008 +1000
Merge commit 'origin/master' into martins
commit b3c431abb79a6c18464129695e482ebc84f3964d
Merge: 6a47302c43eaee93783d83fb976ffce8cdc78be2 3ff0711fd3b288c153218ad33e8462a94b8d3275
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Sep 12 18:21:38 2008 +1000
Merge commit 'origin/master' into martins
commit 6a47302c43eaee93783d83fb976ffce8cdc78be2
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Sep 12 18:20:52 2008 +1000
Document the new descriptive node specifications.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit 05bdafed82106a0d8bfa53cd730eb3e1db68a51f
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Sep 12 16:55:18 2008 +1000
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 at meltin.net>
commit 16626eaf9c63adfe780e8f51f9cd97810647e731
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Sep 12 11:22:50 2008 +1000
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 at meltin.net>
commit 19ccbc8a8fbc81b107fdc80afc802a107fc9fb84
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Sep 12 10:36:15 2008 +1000
Minor documentation fixes.
Signed-off-by: Martin Schwenke <martin at meltin.net>
commit 79ad588d61a56a062c043eae6aba3370ec10ac61
Merge: 8314a647d4bc38d9210c32d645d581f210b05cdc a72f5b7d1560e427e18b1c55a2932a7fb037f4c7
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Sep 12 10:34:03 2008 +1000
Merge commit 'origin/master' into martins
commit 8314a647d4bc38d9210c32d645d581f210b05cdc
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Jul 11 15:05:41 2008 +1000
Signed-off-by: Martin Schwenke <martin at meltin.net>
Minor updates to doc/onnode.1.xml.
commit 81dd4155e92fc9d11ac788a97a5fd3c50488cc80
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Jul 11 14:57:24 2008 +1000
Signed-off-by: Martin Schwenke <martin at meltin.net>
Minor fix to tools/onnode usage message.
commit f2e6b7e9d130eba9132eddda1a5e244a542a23ed
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Jul 11 12:52:01 2008 +1000
Signed-off-by: Martin Schwenke <martin at meltin.net>
In tools/onnode, remove reference to -t option in usage message.
commit 241971bb95e42a19c8a6d8641eb92b3827b79226
Merge: 93214ddf89640d65710867fefb4fde094d4aa3a8 f4a6dd98c86f2028c00b62313a071a94cafc95f9
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Jul 11 09:47:11 2008 +1000
Merge commit 'origin/master' into martins
commit 93214ddf89640d65710867fefb4fde094d4aa3a8
Author: Martin Schwenke <martin at meltin.net>
Date: Fri Jul 11 09:24:21 2008 +1000
Signed-off-by: Martin Schwenke <martin at meltin.net>
Update packaging/RPM/ctdb.spec to reflect onnode changes.
commit 747650303b87e50ebc08ef7fa63011e4f19afc4f
Merge: 8119238d1fa672814a7591593b517c3c42859315 919af5aadb797cfdd10473b6a1269f4ae2a9dbda
Author: Martin Schwenke <martin at meltin.net>
Date: Thu Jul 10 15:08:26 2008 +1000
Merge commit 'origin/master' into martins
commit 8119238d1fa672814a7591593b517c3c42859315
Author: Martin Schwenke <martin at meltin.net>
Date: Thu Jul 10 14:19:52 2008 +1000
When in verbose mode with -p, each line is prefixed with the node
address/name. To implement this stderr has redirected to stdout -
this doesn't need to be done but is the simplest implementation.
Remove -t option since it doesn't seem to accomplish much but causes
spurious messages to be displayed by ssh. Add explicit -h and --help
options. Make style of usage message consistent with documentation.
Document new features in doc/onnode.1.xml.
commit 98f27a323e234214a161b5766f9c567f47b9dbb7
Author: Martin Schwenke <martin at meltin.net>
Date: Wed Jul 9 14:23:02 2008 +1000
Update Makefile.in for new version of onnode.
commit 6b67f180668c7a05c941b4891bd2486601790165
Author: Martin Schwenke <martin at meltin.net>
Date: Wed Jul 9 14:18:15 2008 +1000
Complete rewrite of tools/onnode. Remove old tools/onnode.ssh,
tools/onnode.rsh.
commit 0bb130090b8dce5f85b0cb178a19f877759c0caa
Author: root <root at rcn1.VSOFS1.COM>
Date: Sat Mar 10 14:10:21 2007 +1100
collect net conf list in ctdb_diagnostics
commit 9ce84a7915abaa987160ecbcae63128a9ed0a741
Author: root <root at rcn1.VSOFS1.COM>
Date: Sat Mar 10 13:45:38 2007 +1100
check the static-routes file if it exists
-----------------------------------------------------------------------
Summary of changes:
.gitignore | 5 +
COPYING | 674 ++++++++++++++++++++
Makefile.in | 67 ++-
autogen.sh | 2 +-
client/ctdb_client.c | 143 +++++
common/cmdline.c | 1 +
common/ctdb_util.c | 43 +-
common/system_aix.c | 42 --
common/system_common.c | 72 +++
common/system_linux.c | 42 --
config/ctdb.init | 62 ++-
config/ctdb.sysconfig | 70 ++-
config/events.d/10.interface | 19 +-
config/events.d/11.natgw | 67 ++
config/events.d/41.httpd | 34 +-
config/events.d/50.samba | 75 ++-
config/events.d/60.nfs | 6 +-
config/events.d/91.lvs | 2 +-
config/events.d/99.routing | 4 +-
config/functions | 130 ++++-
config/notify.sh | 37 ++
configure.ac | 22 +-
ctdb.pc.in | 19 +
doc/ctdb.1 | 95 +++-
doc/ctdb.1.html | 146 +++--
doc/ctdb.1.xml | 135 ++++-
doc/ctdbd.1 | 660 +++++++------------
doc/ctdbd.1.html | 125 ++++-
doc/ctdbd.1.xml | 177 +++++
doc/recovery-process.txt | 436 +++++++++++++
ib/config.m4 | 2 +-
include/ctdb.h | 53 ++
include/ctdb_private.h | 58 +-
include/includes.h | 1 +
lib/replace/autoconf-2.60.m4 | 2 +
lib/replace/win32.m4 | 8 +-
packaging/RPM/ctdb.spec | 131 ++++-
packaging/RPM/makerpms.sh | 34 +-
packaging/maketarball.sh | 42 ++
server/ctdb_control.c | 20 +-
server/ctdb_daemon.c | 2 +-
server/ctdb_logging.c | 4 +
server/ctdb_ltdb_server.c | 4 +-
server/ctdb_monitor.c | 71 ++
server/ctdb_recover.c | 40 +-
server/ctdb_recoverd.c | 203 ++++---
server/ctdb_server.c | 4 +-
server/ctdb_takeover.c | 94 ++-
server/ctdb_tunables.c | 2 +-
server/ctdbd.c | 18 +-
server/eventscript.c | 306 +++++++++-
tcp/tcp_connect.c | 65 ++-
tcp/tcp_init.c | 48 +-
tests/README | 106 +++
tests/TODO | 4 +
tests/bench.sh | 24 -
tests/ctdb_bench.c | 229 -------
tests/ctdbd.sh | 50 --
tests/fetch.sh | 21 -
tests/nodes.txt | 4 -
tests/persistent.sh | 47 --
tests/public_addresses | 4 -
tests/run_tests.sh | 6 +-
tests/scripts/ctdb_test_env | 43 ++
tests/scripts/ctdb_test_functions.bash | 577 +++++++++++++++++
tests/scripts/run_tests | 64 ++
tests/scripts/test_wrap | 10 +
tests/simple/00_ctdb_init.sh | 33 +
tests/simple/00_ctdb_install_eventscript.sh | 58 ++
tests/simple/00_ctdb_onnode.sh | 29 +
tests/simple/01_ctdb_version.sh | 52 ++
tests/simple/02_ctdb_listvars.sh | 43 ++
tests/simple/03_ctdb_getvar.sh | 55 ++
tests/simple/04_ctdb_setvar.sh | 81 +++
tests/simple/05_ctdb_listnodes.sh | 61 ++
tests/simple/06_ctdb_getpid.sh | 86 +++
tests/simple/07_ctdb_process_exists.sh | 78 +++
tests/simple/08_ctdb_isnotrecmaster.sh | 58 ++
tests/simple/09_ctdb_ping.sh | 58 ++
tests/simple/11_ctdb_ip.sh | 63 ++
tests/simple/12_ctdb_getdebug.sh | 84 +++
tests/simple/13_ctdb_setdebug.sh | 85 +++
tests/simple/14_ctdb_statistics.sh | 46 ++
tests/simple/15_ctdb_statisticsreset.sh | 85 +++
tests/simple/16_ctdb_config_add_ip.sh | 118 ++++
tests/simple/17_ctdb_config_delete_ip.sh | 75 +++
tests/simple/18_ctdb_freeze.sh | 51 ++
tests/simple/19_ctdb_thaw.sh | 57 ++
tests/simple/20_ctdb_getmonmode.sh | 69 ++
tests/simple/21_ctdb_disablemonitor.sh | 101 +++
tests/simple/22_ctdb_enablemonitor.sh | 101 +++
tests/simple/23_ctdb_moveip.sh | 105 +++
tests/simple/24_ctdb_getdbmap.sh | 75 +++
tests/simple/25_dumpmemory.sh | 54 ++
..._ctdb_config_check_error_on_unreachable_ctdb.sh | 71 ++
tests/simple/31_ctdb_disable.sh | 72 +++
tests/simple/32_ctdb_enable.sh | 91 +++
tests/simple/41_ctdb_ban.sh | 100 +++
tests/simple/42_ctdb_unban.sh | 97 +++
tests/simple/51_ctdb_bench.sh | 94 +++
tests/simple/52_ctdb_fetch.sh | 93 +++
tests/simple/53_ctdb_transaction.sh | 41 ++
tests/simple/61_ctdb_persistent_safe.sh | 41 ++
tests/simple/62_ctdb_persistent_unsafe.sh | 41 ++
tests/simple/99_ctdb_uninstall_eventscript.sh | 24 +
tests/src/ctdb_bench.c | 248 +++++++
tests/{ => src}/ctdb_fetch.c | 0
tests/{ => src}/ctdb_persistent.c | 0
tests/{ => src}/ctdb_randrec.c | 0
tests/{ => src}/ctdb_store.c | 0
tests/{ => src}/ctdb_transaction.c | 0
tests/{ => src}/ctdb_traverse.c | 0
tests/{ => src}/rb_perftest.c | 0
tests/{ => src}/rb_test.c | 0
tests/start_daemons.sh | 42 --
tests/test_check_tcp_ports.sh | 17 +
tests/transaction.sh | 28 -
tools/ctdb.c | 670 +++++++++++++++++---
tools/ctdb_diagnostics | 43 +-
tools/onnode | 36 +-
utils/smnotify/smnotify.c | 2 +-
web/index.html | 3 +-
web/samba.html | 10 +-
123 files changed, 8097 insertions(+), 1441 deletions(-)
create mode 100644 COPYING
create mode 100644 common/system_common.c
create mode 100644 config/events.d/11.natgw
create mode 100755 config/notify.sh
create mode 100644 ctdb.pc.in
create mode 100644 doc/recovery-process.txt
create mode 100755 packaging/maketarball.sh
create mode 100644 tests/README
create mode 100644 tests/TODO
delete mode 100755 tests/bench.sh
delete mode 100644 tests/ctdb_bench.c
delete mode 100755 tests/ctdbd.sh
delete mode 100755 tests/fetch.sh
delete mode 100644 tests/nodes.txt
delete mode 100755 tests/persistent.sh
delete mode 100644 tests/public_addresses
create mode 100755 tests/scripts/ctdb_test_env
create mode 100644 tests/scripts/ctdb_test_functions.bash
create mode 100755 tests/scripts/run_tests
create mode 100755 tests/scripts/test_wrap
create mode 100755 tests/simple/00_ctdb_init.sh
create mode 100755 tests/simple/00_ctdb_install_eventscript.sh
create mode 100755 tests/simple/00_ctdb_onnode.sh
create mode 100755 tests/simple/01_ctdb_version.sh
create mode 100755 tests/simple/02_ctdb_listvars.sh
create mode 100755 tests/simple/03_ctdb_getvar.sh
create mode 100755 tests/simple/04_ctdb_setvar.sh
create mode 100755 tests/simple/05_ctdb_listnodes.sh
create mode 100755 tests/simple/06_ctdb_getpid.sh
create mode 100755 tests/simple/07_ctdb_process_exists.sh
create mode 100755 tests/simple/08_ctdb_isnotrecmaster.sh
create mode 100755 tests/simple/09_ctdb_ping.sh
create mode 100755 tests/simple/11_ctdb_ip.sh
create mode 100755 tests/simple/12_ctdb_getdebug.sh
create mode 100755 tests/simple/13_ctdb_setdebug.sh
create mode 100755 tests/simple/14_ctdb_statistics.sh
create mode 100755 tests/simple/15_ctdb_statisticsreset.sh
create mode 100755 tests/simple/16_ctdb_config_add_ip.sh
create mode 100755 tests/simple/17_ctdb_config_delete_ip.sh
create mode 100755 tests/simple/18_ctdb_freeze.sh
create mode 100755 tests/simple/19_ctdb_thaw.sh
create mode 100755 tests/simple/20_ctdb_getmonmode.sh
create mode 100755 tests/simple/21_ctdb_disablemonitor.sh
create mode 100755 tests/simple/22_ctdb_enablemonitor.sh
create mode 100755 tests/simple/23_ctdb_moveip.sh
create mode 100755 tests/simple/24_ctdb_getdbmap.sh
create mode 100755 tests/simple/25_dumpmemory.sh
create mode 100755 tests/simple/26_ctdb_config_check_error_on_unreachable_ctdb.sh
create mode 100755 tests/simple/31_ctdb_disable.sh
create mode 100755 tests/simple/32_ctdb_enable.sh
create mode 100755 tests/simple/41_ctdb_ban.sh
create mode 100755 tests/simple/42_ctdb_unban.sh
create mode 100755 tests/simple/51_ctdb_bench.sh
create mode 100755 tests/simple/52_ctdb_fetch.sh
create mode 100755 tests/simple/53_ctdb_transaction.sh
create mode 100755 tests/simple/61_ctdb_persistent_safe.sh
create mode 100755 tests/simple/62_ctdb_persistent_unsafe.sh
create mode 100755 tests/simple/99_ctdb_uninstall_eventscript.sh
create mode 100644 tests/src/ctdb_bench.c
rename tests/{ => src}/ctdb_fetch.c (100%)
rename tests/{ => src}/ctdb_persistent.c (100%)
rename tests/{ => src}/ctdb_randrec.c (100%)
rename tests/{ => src}/ctdb_store.c (100%)
rename tests/{ => src}/ctdb_transaction.c (100%)
rename tests/{ => src}/ctdb_traverse.c (100%)
rename tests/{ => src}/rb_perftest.c (100%)
rename tests/{ => src}/rb_test.c (100%)
delete mode 100755 tests/start_daemons.sh
create mode 100755 tests/test_check_tcp_ports.sh
delete mode 100755 tests/transaction.sh
Changeset truncated at 500 lines:
diff --git a/.gitignore b/.gitignore
index 37b1a74..69d8093 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
*~
config.status
configure
+ctdb.pc
publish*.sh
push*.sh
web/packages
@@ -15,5 +16,9 @@ utils/smnotify/gen_smnotify.c
utils/smnotify/gen_xdr.c
utils/smnotify/smnotify.h
nodes.txt
+public_addresses.txt
rec.lock
test.db
+tests/bin
+tests/events.d/00.ctdb_test_trigger
+tests/var
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..94a9ed0
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
--
CTDB repository
More information about the samba-cvs
mailing list