summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * ctdbd: refuse attaching with "persistent" to a non-persistent db and v.v.Gregor Beck2012-07-031-0/+6
| | | | | | | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> (This used to be ctdb commit 1ebbaa620b3cfb9ff373828e4aaa84246cf3ec25)
| * When we find an ip we shouldnt host, just release itRonnie Sahlberg2012-06-201-2/+6
| | | | | | | | | | | | Dont call a full blown clusterwide ipreallocation, just release it locally (This used to be ctdb commit 9a806dec8687e2ec08a308853b61af6aed5e5d1e)
| * When we release an ip, get the interface name from the kernelRonnie Sahlberg2012-06-201-13/+9
| | | | | | | | | | | | | | | | instead of using the interface where ctdb thinks the ip is hosted at. The difference is that this now allows us to handle cases where we want to release an ip but ctdbd does not know which interface the ip is assigned on. (user has used 'ip addr add...' and manually assigned an ip to the wrong interface) (This used to be ctdb commit c6bf22ba5c01001b7febed73dd16a03bd3fd2bed)
| * Add new command to find which interface is located onRonnie Sahlberg2012-06-203-0/+105
| | | | | | | | (This used to be ctdb commit f07376309e70f5ccdb7de8453caacc71b451ab48)
| * STATISTICS: Add tracking of the 10 hottest keys per database measured in ↵Ronnie Sahlberg2012-06-135-7/+144
| | | | | | | | | | | | | | | | hopcount and add mechanisms to dump it using the ctdb dbstatistics command (This used to be ctdb commit 8307c70ed98996b430c470e9641a09fdeeb81bd8)
| * Reimplement logging of long running eventsMartin Schwenke2012-06-121-0/+46
| | | | | | | | | | | | | | | | | | Reimplement 5aba53e6adcfcd7edbdac9e30aa5fcba176aca00 using tevent trace points. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 98e1b46adba11b9549b5c5976e1f561fe732fa6e)
| * tevent: change version to 0.9.16Stefan Metzmacher2012-06-121-0/+82
| | | | | | | | | | | | | | | | | | | | | | This adds tevent_*_trace_*() and tevent_context_init_ops() metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Jun 8 20:47:41 CEST 2012 on sn-devel-104 (This used to be ctdb commit 0dc204988eadff214dd149a756d756ab6e96e410)
| * tevent: expose tevent_context_init_opsStefan Metzmacher2012-06-122-3/+19
| | | | | | | | | | | | | | | | | | | | This can be used to implement wrapper backends, while passing a private pointer to the backens init function via ev->additional_data. metze (This used to be ctdb commit 7ebc00dc6a89043a971a720e7c21baf5f2a0233d)
| * lib/tevent: Add trace point callbackMartin Schwenke2012-06-127-0/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Set/get a single callback function to be invoked at various trace points. Define "before wait" and "after wait" trace points - more trace points can be added later if required. CTDB wants this to log long waits and events. Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> Signed-off-by: Martin Schwenke <martin@meltin.net> Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit cb2bbe93628c1ab932c2e1ad6e2ec199a98f74c6)
| * Revert "TEVENT: Add back tracking of long runnig events to the local copy ↵Martin Schwenke2012-06-125-66/+0
| | | | | | | | | | | | | | | | | | | | of tevent library" This reverts commit 5aba53e6adcfcd7edbdac9e30aa5fcba176aca00. Do this using new tevent trace point callback. (This used to be ctdb commit 88040778aace229d724de1ba7556aded12e22f86)
| * lib/tevent: In poll_event_context, add a pointer back to the tevent_contextMartin Schwenke2012-06-121-0/+4
| | | | | | | | | | | | | | | | | | This makes it consistent with the other backends. Signed-off-by: Martin Schwenke <martin@meltin.net> Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit e0c9200c05b1f7a04e002f505ebb5ba9340c0ca1)
| * lib/tevent/testsuite: no longer use 'compat' symbolsStefan Metzmacher2012-06-121-12/+12
| | | | | | | | | | | | metze (This used to be ctdb commit 6559106b8b853920f325f2dba532f4008e931fa3)
| * Run the shutdown eventscript before we tear down the transportRonnie Sahlberg2012-05-301-1/+1
| | | | | | | | | | | | This allows eventscripts to still be able to call and use ctdb during the shutdown phase. (This used to be ctdb commit 1a6a011c772f7d302d114d7c8a151fa7820ec85f)
| * tests: Increment RSN always in ctdb_update_record_persistent testAmitay Isaacs2012-05-281-2/+2
| | | | | | | | | | | | | | | | | | | | If the record does not exist in persistent DB, RSN for that record is considered 0. To write a record, RSN for that record should be set to 1, otherwise the RSN check would fail. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit ac89da4eea98fa686408c5671a6c44c0fd1d7a58)
| * tests: Fix ctdb_fetch test (parse extra lines of output)Amitay Isaacs2012-05-281-1/+1
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 0be452958db95c8253c362a1c08a1966e53a1f99)
| * tests: Fix flakey behavior of ctdb_fetch testAmitay Isaacs2012-05-281-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were two issues with this test: 1. Since the messages are sent from one node to the next, if a node does not register for messages before CTDB on that nodes receives the message, it will never be seen by ctdb_fetch and it would block on receive and would not send any messages to next node. The crude solution is to sleep just before the messages are sent, so that ctdb_fetch on all nodes have registered for the messages. 2. If ctdb_fetch stops sending messages after timelimit expiry, the next node will keep waiting to receive messages in event_loop_once(). The default timeout is 30 seconds for event_loop_once(). Adding a timed event will always set the timeout value to the time remaining for the timed event to expire. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit bc55e09fdac9f743d6428bfe0be77840ad0fd1ba)
| * server: Replace BOOL datatype with bool, True/False with true/falseAmitay Isaacs2012-05-2810-24/+19
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 6e5cbe8fff71985e5a2fc16b7e9f2b868011ff5d)
| * tests/eventscripts: Tweak expected output for lockd:b restartMartin Schwenke2012-05-251-1/+1
| | | | | | | | | | | | | | Commit 13acd58c41fba1a33894fbd654fed69ea0eac322 mades this test fail, since lockd:b and lockd:bs were incorrectly producing the same output. (This used to be ctdb commit fd3b73d7e634f16cbb99d7d5a548e12f00d1aadb)
| * tests: Complex tests must not be run from a cluster nodeMartin Schwenke2012-05-251-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Tickle tests fail if run from a node involved in the test. The condition is actually weaker than this: the test can't be run from a CTDB node that is hosting public addresses that may be used by the test. Rework ctdb_test_check_real_cluster() to support checking this. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 14012781c3751a514055df29ea70adfb12ecb2d9)
| * Eventscripts: Fix deprecated iptables ! usageMartin Schwenke2012-05-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | This currently causes warning in the logs. This change is not SLES10-compatible but we already have some other non-SLES10-compatible changes. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 7640352c6697f9d4e0d13afbc8523afc64e7d462)
| * tests: test_wrap needs to set TEST_BIN_DIR when installedMartin Schwenke2012-05-251-0/+2
| | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit c5e3e4bccbde349739b90d8761e1aa19637887a8)
| * packaging: make ctdb-tests package depend on ncAmitay Isaacs2012-05-251-0/+1
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit d0b539c4d2d4dc8c9eb95801bff09c3bcbeebca5)
| * tests: Use per node log files when running tests with local daemonsAmitay Isaacs2012-05-251-1/+1
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 61df417821762d87ed01a7b5e64c35079940344d)
| * RECOVERY: Increase the time we allow before timing out recovery related tasks.Ronnie Sahlberg2012-05-251-1/+1
| | | | | | | | | | | | If the system is temporarily taking unusually long to perform these tasks it is better to wait a lot longer and allow the tasks to complete than timing out repeatedly and then becomming banned. (This used to be ctdb commit 03fa2a517247eb2adfba67248e2466f17ea14418)
| * RECOVER: When we pull databases during recovery, we used to reallocate the ↵Ronnie Sahlberg2012-05-254-3/+15
| | | | | | | | | | | | | | | | | | | | | | databuffer for each entry added. This would normally not be an issue, but for cases where memory is fragmented, this could start to cost significant cpu if we need to reallocate and move to a different region. Change this to instead preallocate , by default, 10MByte chunks to the data buffer. This significantly reduces the number of potential reallocate and move operations that may be required. Create a tunable to override/change how much preallocation should be used. (This used to be ctdb commit 1f262deaad0818f159f9c68330f7fec121679023)
| * DOCS: Document the new tunables to produce warnings if databases grow ↵Ronnie Sahlberg2012-05-213-78/+134
| | | | | | | | | | | | unexpectedly big. (This used to be ctdb commit 6cf6a9b071bd8dd730717ca033337ff73bf247bb)
| * DEBUG: Add checks for and print debug messages when 1) a database contains ↵Ronnie Sahlberg2012-05-213-1/+24
| | | | | | | | | | | | | | | | very many records, 2) when a database is very big, 3) when a single record is very big. Add tunables to control when to log these instances and allow it to be completely turned off by setting the threshold to 0 (This used to be ctdb commit 9ed58fef4991725f75509433496f4d5ffae0ae87)
| * TEVENT: Add back tracking of long runnig events to the local copy of tevent ↵Ronnie Sahlberg2012-05-215-0/+66
| | | | | | | | | | | | library (This used to be ctdb commit 5aba53e6adcfcd7edbdac9e30aa5fcba176aca00)
| * GANESHA: make the ganesha script executable by defaultRonnie Sahlberg2012-05-171-1/+1
| | | | | | | | (This used to be ctdb commit f59b40b3f8ea3da8ffb8601bc025e83c237072d5)
| * Merge remote branch 'martins/ganesha'Ronnie Sahlberg2012-05-174-120/+136
| |\ | | | | | | | | | (This used to be ctdb commit f23b5a160184db8c92f8c69307dc4a64adae839d)
| | * Eventscripts: Modernise 60.ganesha to match 60.nfsMartin Schwenke2012-05-164-119/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | Originally from Srikrishan Malik <srikrishan.malik@in.ibm.com> with some style changes by me. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 637cab6304dae66b85668506028c76ea1ee88980)
| | * Eventscripts: restart lockd in the background when going unhealthyMartin Schwenke2012-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes the restart can hang when there are I/O problems. Then the eventscript times out and gets killed so the node never marked as unhealthy. Restarting in the background avoids this. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 13acd58c41fba1a33894fbd654fed69ea0eac322)
| | * Eventscript functions: add optional version to nfs_check_rpc_service()Martin Schwenke2012-05-161-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | This can be optional because the 1st item of each action-triple is a test comparison that starts with '-'. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 92f74fd589467b46c758e116e97417edfe8773d7)
| * | Debug: When scripts hang, we may need to collect additional data in order to ↵Ronnie Sahlberg2012-05-179-21/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | debug why the script hung. Break this debug and datacollection out into an external script to make it easier to modify what data we need to collect. For now we only collect a pstree so we can see what part of the script we hung in. S1037271 (This used to be ctdb commit 6e68797af67bee36f2bad045f94806e7e98f27e9)
| * | tests: Move the "ctdb reloadips" test from complex/ to simple/Martin Schwenke2012-05-141-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is made possible by separation of public addresses files for local daemons and the addition of get_ctdbd_command_line_option(). Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 2bcd58b30d7cf6dd48ad7f019810c6965a44c85a)
| * | tests: Fix a typo in daemons_setup()Martin Schwenke2012-05-141-2/+2
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 863ad337fa3c4effe1fd370d3ba414027c600bd6)
| * | tests: New function get_ctdbd_command_line_option() for integration testingMartin Schwenke2012-05-141-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | This allows, for example, the public addresses file used by a particular daemon to be known. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit f4b7d14f2e3c7345e7a09abb27c32923fb78cbc4)
| * | tests: Use per-daemon public_addresses file for local daemonsMartin Schwenke2012-05-141-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | This allows a node's public addresses file to be hacked for testing. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit c7d6e4557d00de674737e2c8d6cbebaa2461c303)
| * | tests: Restore the old behaviour of "make test" so it uses tests/varMartin Schwenke2012-05-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is finally possible, given all the other changes... :-) This is a good default because daemons will be left running, test/var will still exist and test failures can be investigated. To "automatically" clean up, do: ./tests/run_tests.sh -C -V tests/var -- tests/simple/99_daemons_shutdown.sh ... although "killall ctdbd ; rm -rf tests/var" is less keystrokes. ;-) Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit d661f09c6c76543bd091d51bc0e6fe97ed0f55d1)
| * | tests: Fix wrapper scripts to handle options and tests without breakageMartin Schwenke2012-05-144-66/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the -V option is given and no tests are supplied, the "cd" command in run_tests.sh cause scripts/run_tests to interpret the argument to -V incorrectly. Therefore, the wrapper scripts can't use "cd" because they don't know what the options are doing! Instead scripts/run_tests searches for each test relative to the current directory and, if not previously found, then searches relative to the top-level tests directory. This is a much better way of doing things. Given that run_tests.sh and run_cluster_tests.sh were starting to contain duplicate complex logic, remove run_cluster_tests.sh and replace it with a symlink to run_tests.sh. Run_tests.sh checks $0 to see what options/defaults to use. Update INSTALL to deal with this. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit ed2db1f4e8d2b222d7f912a4a007ce48a23e83b0)
| * | tests: Add a test for "ctdb reloadips"Martin Schwenke2012-05-111-0/+108
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit d2514051761ba23deee0e118c25afab2ab8d854e)
| * | tests: In integration tests, use --node-ip to avoid locking weirdnessMartin Schwenke2012-05-111-1/+2
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit a00e80c701a0f9695f41c24e0360c25c0873d49d)
| * | tests: Allow run_cluster_tests.sh to take optionsMartin Schwenke2012-05-111-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | However, options must be followed by "--". This also fixes: * a bug where specifying tests caused local daemons to be used; and * an incorrect comment. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 6b8507d4d3062e709409b3790117d87311b3460d)
| * | tests: Allow run_tests.sh to take optionsMartin Schwenke2012-05-111-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | However, options must be followed by "--". Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit db8cf8f5e644a0b21a6040287887fee40f38d4db)
| * | tests/eventscripts: Fix a policy routing testMartin Schwenke2012-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The previous commit 55006ea8999ab3721fcde81b92692661065f0688 highlighted an error in this test. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 9f20fbf91706db94f65f62dbd6a4e087890c1da9)
| * | tests/eventscripts: $CTDB_BASE needs to be in $TEST_VAR_DIRMartin Schwenke2012-05-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The policy routing tests write the configuration file into $CTDB_BASE, as per rcommended practice. Unless this is in $TEST_VAR_DIR this won't work sensible when the tests are installed. Things are done slightly different than for /etc. Here we use symlinks and we want them to be dereferenced. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 61c80f58a8cfbaca7e669ef8cd95b4f6b5dc66c7)
| * | Packaging: Improve dependenciesMartin Schwenke2012-05-111-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't strictly need gawk (i.e. could probably use nawk), but that seems to provide /bin/awk on RHEL. PreReq seems old-school. We don't have an scriptlets, so nothing needs to be installed before CTDB. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit e7ba0a30e7b7fe78e83e493128b349708cf0038a)
| * | Packaging: add options to ctdb.spec.in to force use of bundled librariesMartin Schwenke2012-05-111-1/+30
| | | | | | | | | | | | | | | | | | | | | | | | Ideas borrowed from the Fedora samba4 spec file. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 14a630cbc638d2f3bf699de5d94131e5f7d1a3ea)
| * | Eventscript functions: add optional version to nfs_check_rpc_service()Martin Schwenke2012-05-111-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | This can be optional because the 1st item of each action-triple is a test comparison that starts with '-'. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 1957d53b78f101cd0cd37d9705a225deef5174a2)
| * | Packaging: devel package fixesMartin Schwenke2012-05-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Group was non-existent, typo in summary. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit f0a14169883661a702a352aa0311a2b433071a83)