summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | tests: More unit test factoring/rationalisation and bug fixesMartin Schwenke2012-04-188-266/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move some options from eventscripts/run_tests.sh to scripts/run_tests. Remove the former. Move some functions from eventscripts/scripts/local.sh to scripts/unit.sh. Both of these are modified during move so they are no longer eventscript-specific. Tweak */local.sh so that the new functions in unit.sh are used. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 7ff485687891732074c9fc9998502ca197663d02)
| | * | tests/eventscripts: Share directories must be absolute in eventscript testsMartin Schwenke2012-04-181-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes eventscripts/scripts/local.sh:setup_generic() so that directories listed in $FAKE_SHARES are absolute instead of potentially relative (and, therefore, ignored by the NFS share check). Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 8544162b7a4efa23c92bc0d2774df95bb7f0f463)
| | * | tests/eventscripts: Tweak an error message in a policy routing testMartin Schwenke2012-04-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It currently has my home directory pasted into it. That can't be right... ;-) Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 5d6e71cf6e1e0665ec96e7e4e2cfd31f40ebabae)
| | * | tests - run_tests needs to expand directories like "." and "..".Martin Schwenke2012-04-161-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit fd08fc6c88cb80190ce87325867de0391cf1af51)
| | * | tests/eventscripts - Restructure according to new conventionMartin Schwenke2012-04-1677-110/+86
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit eb13507713ba6732271b7c3024bfddbda6da5ffc)
| | * | tests - run_tests ignores trailing '/' on directoriesMartin Schwenke2012-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit dbec696930327ff07b39282e3084eef4ded064c0)
| | * | tests/takeover - Restructure according to new conventionMartin Schwenke2012-04-1631-62/+43
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit f94897ef9504c144937409688fa7a646e0b0ceae)
| | * | tests/onnode - Restructure according to new conventionMartin Schwenke2012-04-1616-66/+20
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 4c87888b2a559c0d1f285919a42de450a537a02f)
| | * | tests/tool - Restructure according to new conventionMartin Schwenke2012-04-1612-57/+13
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 89571585d87b391ff79647cd1f0f6ac193079e72)
| | * | tests/tool: New nodestatus testAmitay Isaacs2012-04-161-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit ca9e75eaea9c9b02bb44ca338e28fdae0c8d582c)
| | * | tests/tool: Fix the nodestatus testAmitay Isaacs2012-04-161-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Although not obvious, when asking each node for nodestatus, it will report each node is the current node. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit a65ba7211ec7f102b32060b173606a61fb5c20a9)
| | * | tests - run_tests includes common.sh, uses die()Martin Schwenke2012-04-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 21df43c74bfcff420fdaf9df5440c25529c543d2)
| | * | tests - run_tests can take a directory as an argumentMartin Schwenke2012-04-161-5/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it run all tests in the specified directory. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 89719384a74161ffa0c03602ecdd9e758d521d75)
| | * | tests - add -v option to set TEST_VERBOSE=trueMartin Schwenke2012-04-161-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 43badc5418b9f533398cd579607d9f1fc0f8f417)
| | * | tests - move functions only used by scripts/run_tests into that scriptMartin Schwenke2012-04-162-62/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Along with minor logic tweaks and removal of test_exit(). Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 00713eb46cce638339845799bba2da041b3d02fb)
| | * | tests - add scripts/unit.shMartin Schwenke2012-04-161-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will be sourced by all unit tests. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit afdaa5f032938d56ff315d9553cb285ebc413c4c)
| | * | tests - add scripts/common.shMartin Schwenke2012-04-161-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit a7ad94fe9f2e773567dbb6500469dd2dd2f2f04b)
| | * | tests - export new variable TEST_SCRIPTS_DIRMartin Schwenke2012-04-161-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces previous script-local variable ctdb_test_scripts_dir. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 107b465172205cb304549fcffaf36b9416696c15)
| | * | Tests - IP allocation - 2 tests for NODE_FLAGS_NOIPTAKEOVERMartin Schwenke2012-04-162-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit fa54a1095a7504863ed30bff8e0828a8be6dde55)
| | * | Tests - IP allocation - add another LCP2 test based on a test failureMartin Schwenke2012-04-161-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 89e322562f25dcb8d84357a19e71b2272b2f29a8)
| | * | Tests - turn of time logging by defaultMartin Schwenke2012-04-162-2/+3
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We haven't seen problems related to time jumps for a long time. Turn this off by default. To switch it back on set $CTDB_TEST_TIME_LOGGING to any non-null value. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 2aa9bbf3a52dde0707eb06acd91e57c8da5c717f)
| * | ctdbd: Fix spurious warnings when running with --nopublicipcheckAmitay Isaacs2012-04-131-14/+35
| | | | | | | | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 67b909a0718d6cfce82ffce0830da3a6ff1f6c4b)
| * | recoverd: Fix spurious warnings when running with --nopublicipcheckAmitay Isaacs2012-04-131-2/+2
| | | | | | | | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 7f8096f56d8274151705ac822b582d972078f8fe)
| * | tests: Use CTDB_TEST_REAL_CLUSTER to decide if tests use local daemonsAmitay Isaacs2012-04-132-3/+3
| | | | | | | | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit d5b2ad651495f32091bd33d30871638de0de633a)
| * | tests: Set the debug level = 3 when running local testsAmitay Isaacs2012-04-131-1/+1
| | | | | | | | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit b86b947797c51e3576c6b34f547434c3f0aa36f3)
| * | tests: Check assigned IPs from ctdb outputAmitay Isaacs2012-04-131-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | This fixes the test ctdb_config_add_ip when running against local daemons. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit b81c2c8a2360001fe73f9fd9aa1ba32665fdb0bb)
| * | tests: Check for assigned IP addresses only if we are on real clusterAmitay Isaacs2012-04-131-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | This fixes the ctdb_ip test when running against local daemons. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit a108fc14d90b6d552736d19b0ea104f2508dc331)
| * | ctdbd: Fix the error message stringAmitay Isaacs2012-04-131-1/+1
| | | | | | | | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 15f63ebab9686734f41a6adf38d4a7faa919ac66)
| * | tests: Fix the error messages in test event scriptAmitay Isaacs2012-04-131-1/+2
| | | | | | | | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 706e6e3ef6765fbba29e531e590c48fe742b9914)
| * | tests: Add regular expression parsing for hop_count_bucketsAmitay Isaacs2012-04-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This fixes the test to check ctdb statistics output. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 98c633ab4824e0e4d28ab2eb2532e16eb859bd94)
| * | tests: Add a script to run cluster tests and make target "test_cluster"Amitay Isaacs2012-04-132-0/+16
| | | | | | | | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 420a10be89c62b4d605f3b972d78fd69dd9f5bb1)
| * | tests: exportfs always outputs with options in bracketsAmitay Isaacs2012-04-131-1/+1
| | | | | | | | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit bdd8b8ab20169936fa723fa77cead1b76b6cd0b5)
| * | tests/tool: New nodestatus testAmitay Isaacs2012-04-131-0/+34
| | | | | | | | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 902d8a4709e7a269d2a75522a998f9a60ae13d78)
| * | tests/tool: Fix the nodestatus testAmitay Isaacs2012-04-131-1/+4
| |/ | | | | | | | | | | | | | | | | Although not obvious, when asking each node for nodestatus, it will report each node is the current node. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 261258c1a4268230b2559bc5d8664b1197b22450)
| * Add test for NoIPTakeoverRonnie Sahlberg2012-04-121-0/+83
| | | | | | | | (This used to be ctdb commit 79172330d10ae0d5a7e5bf724959c9e5784716b4)
| * CTDB: add back the "rebalanceip" commandRonnie Sahlberg2012-04-031-0/+75
| | | | | | | | (This used to be ctdb commit 83aea6488002aa75dd25752fa0d164afb8b4f300)
| * build: Substitute POPT macros once and reuse variablesAmitay Isaacs2012-03-301-4/+4
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit a2ba2c4ec153c8844cf7f5b0de03b2269ec892f3)
| * recovery: Add prototypes for tdb internal functionsAmitay Isaacs2012-03-301-0/+7
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 98ac99c4a79fe2ee024890bb27c3ca68dc02d434)
| * build: Use system tdb library if availableAmitay Isaacs2012-03-302-29/+58
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 10ab88a5c822ac403a70a9cd1a6c81020eb91d08)
| * build: Use system tevent library if availableAmitay Isaacs2012-03-302-28/+50
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 2ade83de4e1f318c91489ec9a7f90d1b26f77e1b)
| * build: Use system talloc library if availableAmitay Isaacs2012-03-302-23/+52
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 94f1e02406c353c3a0235685acdd107ee5a7f285)
| * build: Display correct LIB_FLAGS while buildingAmitay Isaacs2012-03-301-1/+1
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 0cbe7a4f92795203f022252a50a240b8bd4238c3)
| * build: Remove re-definition of same variableAmitay Isaacs2012-03-301-4/+4
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 36e690faab3d76919780c8550fe6d49fb6bbfba5)
| * packaging: Setup directories for rpmbuildAmitay Isaacs2012-03-301-0/+8
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 45773dab630ee44b39df0dd4b50f43fb1e7bb0ba)
| * build: Add rules to create ctags/etagsAmitay Isaacs2012-03-301-0/+5
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit a9e9444a7a78f5ef0e929a8dbd8ca0c68b40acd4)
| * Initscript - add backup of corrupt non-persistent databasesMartin Schwenke2012-03-281-63/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Corrupt non-persistent databases never get analysed because ctdbd zeroes them at startup. Modify the initscript so that corrupt non-persistent databases are moved aside to a backup. If the number of backups for a particular database exceeds $CTDB_MAX_CORRUPT_DB_BACKUPS (default 10) then the oldest excess backups are garbage collected. Abstracts from and cleans up the code for checking persistent databases. Logging of related messages is done to syslog or a log file as specified. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 00cd75595685dae829758abf1a4cb644af7ed50e)
| * Add policy routing documentation to ctdbd(1).Martin Schwenke2012-03-233-74/+635
| | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 5cdeb0dd8827b13b06265c75dfac359bcd6ad10c)
| * Merge remote branch 'martins/policy_routing'Ronnie Sahlberg2012-03-2226-945/+1508
| |\ | | | | | | | | | (This used to be ctdb commit 7293762046e25a9c96e6417e34e18c214ebc6e55)
| | * Tests - eventscripts - initial policy routing testsMartin Schwenke2012-03-2212-0/+422
| | | | | | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 7d7488a49bc7e799f39f3da3fa81be7a2e14480a)
| | * Tests - eventscripts - new function simple_test_command()Martin Schwenke2012-03-221-15/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | Allows running arbitrary command and comparing output against expected. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit da2e9650a97f99e7d694659926d9958927edd8ad)