summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | * ReadOnly records: Add a new RPC function FETCH_WITH_HEADER.Ronnie Sahlberg2011-08-233-2/+59
| | | | | | | | | | | | | | | | | | This function differs from the old FETCH in that this function will also fetch the record header and not just the record data (This used to be ctdb commit c7196d16e8e03bb2a64be164d15a7502300eae0e)
| * | Drop loglevel for a tevent message from FATAL to ERRORRonnie Sahlberg2011-09-081-1/+1
| | | | | | | | | | | | | | | | | | CQ S1028400 (This used to be ctdb commit 3ce1d3d6c8b8fd3097b8efd2c75797ed7682a562)
| * | Merge remote branch 'ddiss/master_pmda_and_client_timeouts'Ronnie Sahlberg2011-09-0825-46/+1054
| |\ \ | | | | | | | | | | | | (This used to be ctdb commit 7bebfc7bad8f36e54003b8e25372fdaf54836e21)
| | * | pmda: handle struct latency_counter and add num_recoveriesDavid Disseldorp2011-09-063-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rebase the CTDB PMDA from 1.0.114 to master: - Add tevent and ctdb_protocol includes - Handle latency metrics now stored under struct latency_counter - Add new metric for the num_recoveries counter (This used to be ctdb commit 2165a6f5117a71f9f97f46be9708fa34c037e17c)
| | * | pmda: document in README how to add a new metricDavid Disseldorp2011-09-061-1/+21
| | | | | | | | | | | | | | | | (This used to be ctdb commit b63333fb81aadc451df47c0c3c038e6165f0eac2)
| | * | pmda: Use CTDB_PATH macro for default socket pathDavid Disseldorp2011-09-061-24/+30
| | | | | | | | | | | | | | | | | | | | | | | | Also includes some code cleanup changes. (This used to be ctdb commit 80ad2979804f5bba29020ace46e114a45fa6cb66)
| | * | pmda: Pull ctdb statistics once per fetchDavid Disseldorp2011-09-061-69/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently ctdb statistics are pulled in the PMDA fetch callback, which results in a CTDB_CONTROL_STATISTICS call for each metric. Do this once per fetch instead, and have the per-metric callbacks pull data from the last counter cache. (This used to be ctdb commit 137b498c75c55c966999cd788f12ed9010cfed3a)
| | * | pmda: Attempt reconnects while ctdbd is unavailableDavid Disseldorp2011-09-063-51/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Attempt to reconnect to ctdbd on fetch while it is unreachable. We must provide our own queue callback wrapper, as ctdb_client_read_cb() exits on transport failure. (This used to be ctdb commit 28df6fbf1273b8d095a2bc38dca6a6c35c5c31bd)
| | * | pmda: Initial ctdb pmda check-inDavid Disseldorp2011-09-0610-2/+857
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CTDB Performance Metrics Domain Agent (PMDA) is compiled when Performance Co-Pilot (PCP) header files are present. The CTDB PMDA periodically requests runtime counters from ctdbd (similar to ctdb statistics) and exports these values via PCP for capture and charting etc. (This used to be ctdb commit fe7f69d6fc37661c2f1caa11de4ed3a7940d0a2f)
| | * | client: flag local node in ctdb -Y status outputDavid Disseldorp2011-09-061-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Regular "ctdb status" output flags which node is the local node, do the same for machine readable output. (This used to be ctdb commit 3885141f37724b3dea61b45fbac38489ec356588)
| | * | client: add timeout argument to ctdb_attachDavid Disseldorp2011-09-0613-26/+42
| | | | | | | | | | | | | | | | | | | | | | | | Rather than using a fixed 2 second CTDB_CONTROL_GETDBPATH timeout. (This used to be ctdb commit 9e178671560cb95121e11d718a76b05380ecd6c5)
| | * | client: add req timeout argument to ctdb_cmdline_clientDavid Disseldorp2011-09-0611-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Following connection to the local ctdbd, ctdb_cmdline_client() currently issues a CTDB_CONTROL_GET_PNN request with a fixed 3 second timeout. The ctdb cmd line client accepts a --timelimit argument for specifying a per request timeout, pass this value through to ctdb_cmdline_client() for use as a CTDB_CONTROL_GET_PNN request timeout. (This used to be ctdb commit 0634d0305f42f17048b6830733767e8dc300e11c)
| * | | Merge branch 'master' of 10.1.1.27:/shared/ctdb/ctdb-masterRonnie Sahlberg2011-09-065-0/+88
| |\ \ \ | | |/ / | |/| | | | | | (This used to be ctdb commit a3e8784bb107f7acd2a95913c1e6def52ce96105)
| | * | Interface monitoring: add a event to trigger every 30 seconds to check that ↵Ronnie Sahlberg2011-09-062-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | all interfaces referenced by the public address list actually exists. This will make it much easier to root-cause problems such as S1029023 when an external application deleted the interface while it is still is in use by ctdbd. (This used to be ctdb commit 9abf9c919a7e6789695490e2c3de56c21b63fa57)
| | * | Check interfaces: when reading the public addresses file to create the vnn listRonnie Sahlberg2011-09-065-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | check that the actual interface exist, print error and fail startup if the interface does not exist. (This used to be ctdb commit cd33bbe6454b7b0316bdfffbd06c67b29779e873)
| * | | Merge branch 'master' of ssh://git.samba.org/data/git/ctdbRonnie Sahlberg2011-09-051-1/+1
| |\ \ \ | | |/ / | |/| | | | | | (This used to be ctdb commit 32320ee278d1eec9aef18b400c0ddaa445d4211e)
| | * | tools/ctdb: fix a typo in a debug messageMichael Adam2011-09-021-1/+1
| | | | | | | | | | | | | | | | (This used to be ctdb commit 9bded1832179fbadc8bc94c5328ffa6c45a6d2ab)
| * | | Add a tunable "AllowClientDBAttach" with default value 1.Michael Adam2011-09-053-1/+9
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | When set to 0, clients will not be able to attach to databases via the db_attach control. This might can be useful for maintenance where ctdb should be kept running but clients should not be able to modify databases. (This used to be ctdb commit ddfeecda87955b4e46777599f678e6926d37f4c4)
| * | tests:ctdb_fetch_lock_once we must link with @POPT_OBJ@ in case -lpopt is ↵Ronnie Sahlberg2011-09-021-2/+2
| | | | | | | | | | | | | | | | | | not available (This used to be ctdb commit cdbc800a776f213cfd0ed543cee85b0d1714a186)
| * | tests: Link ctdb_fetch_lock_once with @TDB_OBJ@ not -ltdb so we dont create ↵Ronnie Sahlberg2011-09-021-2/+2
| | | | | | | | | | | | | | | | | | an unneeded dependency on having a standalone tdb library installed (This used to be ctdb commit 9118b9cf1634866266fbf0a9bf857a622f994a1a)
| * | New version 1.11Ronnie Sahlberg2011-09-011-0/+2
| | | | | | | | | | | | (This used to be ctdb commit ee9bf1565383bcca70950e9c20fe6b4d0181ce8d)
| * | Merge remote branch 'martins/tests'Ronnie Sahlberg2011-09-0124-50/+586
| |\ \ | | | | | | | | | | | | (This used to be ctdb commit 71080adfe0828e15bf2f4b0bee7d52e06fff3449)
| | * | Tests - eventscripts - add some multievent testsMartin Schwenke2011-08-317-0/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Running "./run_tests -s simple/* multievent/*" results in a stupid summary. Will need to work on that... Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 999c68948da1492ac4d728c6bf79ad4921d9e840)
| | * | Tests - eventscripts - allow "ctdb scriptstatus" output to be primedMartin Schwenke2011-08-312-15/+32
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit f527ffb55b514b5cb4df3471a0e17ab71307e8a1)
| | * | Merge branch 'eventscripts' into testsMartin Schwenke2011-08-311-3/+31
| | |\ \ | | | | | | | | | | | | | | | (This used to be ctdb commit 1c9dadf02ca649e3f09d9edd778bf13e001aa849)
| | * | | Tests - eventscripts - ctdb stub - implement scriptstatus, tweaksMartin Schwenke2011-08-301-9/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit edc34d01a1ad83b1335c976593a006166b196569)
| | * | | Tests - eventscripts - formatting tweak in simple_test()Martin Schwenke2011-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 698af79545986cf788686feb06c4677a10eec770)
| | * | | Tests - eventscripts - new function simple_test_event()Martin Schwenke2011-08-301-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Just like simple_test() but 1st arg is the event name. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 69e240e15488e228c0232fdc8804af778cb4e6fc)
| | * | | Tests - eventscripts - output format tweaksMartin Schwenke2011-08-301-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 8f8dc5636436db28ce7d0edd706a4adf2624e71b)
| | * | | Tests - eventscripts - add extra filename format for multi-event testsMartin Schwenke2011-08-301-7/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $event may not be set so we need to test for it. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 80f14e590242b14829c6309ee908af0f2d33be1e)
| | * | | Tests - eventscripts - add die() function and use itMartin Schwenke2011-08-301-11/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 0446eaa7798fd0ddf8d8f067c56d19892a13a317)
| | * | | Tests - eventscripts - remove undefined argument in some simple_test callsMartin Schwenke2011-08-302-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit c490024aba39cf94cbc9f8f41ecb3d336b1c82a8)
| | * | | Tests - evenscripts - add symlink to ctdb.sysconfigMartin Schwenke2011-08-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the tests expect the default to be CTDB_SERVICE_AUTOSTARTSTOP=yes Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit f7de037e3be2e9910bee644dd1e93bae4912a194)
| | * | | Tests - eventscripts - Samba TCP port checking fixesMartin Schwenke2011-08-302-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expect "ctdb checktcpport" to exit with 1 if not implemented. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 20885d592040eb3945524c558b593a1d50a57b43)
| | * | | Tests - eventscripts - TCP port checking, no working checkersMartin Schwenke2011-08-301-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit b231aa629b909a7dfd071236c7e730e3cc4a1a54)
| | * | | Tests - eventscripts - new Samba TCP port checking test - no nmapMartin Schwenke2011-08-301-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This one should fall back to netstat. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 0a08068f736efe56b4799e1f1f90539d257deb71)
| | * | | Tests - eventscripts - nmap and netstat stubs can pretend they weren't foundMartin Schwenke2011-08-302-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 47f2843b4db767bcc724d8f972e0c2a850d5826f)
| | * | | Tests - eventscripts - new Samba tests to test TCP port checkingMartin Schwenke2011-08-303-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 9e3e6ab3edf0f79d5973eb39ed843d3c369c665d)
| | * | | Tests - eventscripts - add a new ctdb_not_implemented() functionMartin Schwenke2011-08-301-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allowed a single ctdb command to be defined as not-implemented and provided the associated output from the ctdb stub in $ctdb_not_implemented. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 3852c091f5e0ecba06b7131ca04b73a0cd632f23)
| | * | | Tests - eventscripts - new function setup_nmap_output_filter()Martin Schwenke2011-08-301-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit ef6131ecb068f7d8402cc782359509ba54b5adb0)
| | * | | Tests - eventscripts - add some output filteringMartin Schwenke2011-08-301-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows $OUT_FILTER to be set to one or more sed commands to filter eventscript output. This allows expected output to be generalised. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit a1d424045c53f5b148952eade6161af8248ed4df)
| | * | | Tests - eventscripts - ctdb default default level is 0.Martin Schwenke2011-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit fcf40500c2158dfbe2390fad7bf0614cc575df14)
| | * | | Tests - eventscripts - add output for "not implemented" in ctdb stubMartin Schwenke2011-08-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 1d02e3c6a7fb5ad5edb21298deba415ba9519f3d)
| | * | | Tests - eventscripts - add an nmap stubMartin Schwenke2011-08-301-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 6ff9545a0fd58f0728b769c7b36d3b6ab7366321)
| | * | | Tests - eventscripts - stop timeouts waiting for backgrounded testparmMartin Schwenke2011-08-302-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not sleeping at all speeds up the tests. However, it can also cause timeouts. Therefore, every time sleep is run we force the stub to do a short 0.1s sleep instead of whatever is specified. This should be enough to avoid races. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 59a1d54bcc15058f7b69e8596b32b26427a3ae57)
| | * | | Tests - add getdebug and checktcpport to ctdb eventscripts stubMartin Schwenke2011-08-301-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 9c6fd7d21c99e605e20620c5c6b4e695c02af771)
| | * | | Tests - add hooks to simulate ctdb commands that aren't implementedMartin Schwenke2011-08-301-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit e9bdfd43af3ed28a7f69a36e3fb037f252a23869)
| | * | | Tests - add eventscripts testing stub for sleep command.Martin Schwenke2011-08-301-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit aedff41ee1df0a1a573476844993fa8eda2f34bf)
| | * | | Tests - Change variable used to fake listening TCP ports.Martin Schwenke2011-08-302-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change from $FAKE_NETSTAT_TCP_LISTEN to $FAKE_TCP_LISTEN. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit f19ba38e382034fba769145d0bfc81b2c2941563)
| | * | | Tests - new NFS share checking testsMartin Schwenke2011-08-302-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit ea0db472c2ce138c723aa7e633b72ac9d8b8a6a3)