summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * ctdbd: Pass event name to hung script debuggerMartin Schwenke2013-07-231-2/+3
| | | | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit e0f3fa1020e13b84bdd672538168d148f1847d57)
| * tests/complex: Fix NFS tests to work with root_squashMartin Schwenke2013-07-234-49/+50
| | | | | | | | | | | | | | | | | | Refactor the NFS test setup/cleanup code into new common functions. Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 29e98017221326bdc9b1c4f7c05b3b495c1de29b)
| * tests: Fix exit status of run_tests when a single test is run with -HMartin Schwenke2013-07-221-6/+6
| | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 9d6e1c147bd036d832b98c155f405ee2a5d6f57f)
| * tests/simple: Add -p in onnode test to help show groups of connectionsMartin Schwenke2013-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | Change the command from "true" to "hostname" since the former won't produce any output when used in combination with "onnode -p". This could just be changed to "echo" but the hostname might actually be useful. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit ae3c03d80264e997b7da9f3279d7810e18b8a1df)
| * ctdbd: Sleep at exit to allow time for log messages to flushMartin Schwenke2013-07-191-4/+9
| | | | | | | | | | | | | | | | | | | | Register print_exit_message() earlier so that it covers most of the early exits. Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 90d792cf28d6a823141e4c417b6978f02a9cf596)
| * ctdbd: Exit if something is already listening on CTDB socketMartin Schwenke2013-07-191-9/+18
| | | | | | | | | | | | | | | | Don't blindly remove the socket. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 3dd5b925dcf0e9a5b877638e471c5ecf36b46c58)
| * tests/eventscripts: Add tests for monitoring of missing interfacesMartin Schwenke2013-07-194-54/+108
| | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 53e4eca74429f76adc81d98e3d11d1bd61194d71)
| * eventscripts: A missing interface should cause monitoring to failMartin Schwenke2013-07-191-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A missing interface is at least as bad as an interface with a link that is down so should have a similar effect. This couldn't be done previously because orphaned interfaces used to be listed for monitoring. This was worked around in 10.interface in commit 49b2d1bd9554461ed8edbfc21e777c0eca9e1443 and fixed in ctdbd in commit cc1a3ae911d3fee8b87fda5de5ab6d9499d7510a. If $CTDB_PARTIALLY_ONLINE_INTERFACES="yes" then monitoring won't actually fail but the interface is still marked as down. While we're touching this code, use "ip link" instead of "ip addr". It is marginally cheaper but not enough for a separate patch. ;-) This effectively reverts d67955b42f7627be9dae995230c8fcbb8a948ec2. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 501f19b16fd6d67fbb754248868c38ee5bcf79ef)
| * eventscripts: Get list of configured interfaces using "ctdb ifaces"Martin Schwenke2013-07-191-3/+3
| | | | | | | | | | | | | | | | | | | | This was previosuly changed because ctdbd didn't garbage collect orphaned interfaces. This was fixed in commit cc1a3ae911d3fee8b87fda5de5ab6d9499d7510a. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit c6ab0f9405d5fa5b0b1693bc92e59da0d555a9d7)
| * ctdbd: Allow extra recovery to repair persistent DBs during first recoveryMartin Schwenke2013-07-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | Commit 8076773a9924dcf8aff16f7d96b2b9ac383ecc28 introduced a potential regression because a node may not have completed the "recovered" event (so might still be in CTDB_RUNSTATE_FIRST_RECOVERY) when another node becomes healthy. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 57ef5d3827ea3417a32703e259a53ce6fd10ac45)
| * packaging: Bundle debug_locks.sh script in RPMAmitay Isaacs2013-07-162-0/+2
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 5740155cc5de1a223412e8529aa1a383a5412514)
| * packaging: No need to check for existence of scripts, they always doAmitay Isaacs2013-07-161-3/+3
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 67c227a5d30cb8487b20b19b20bdfa4613906609)
| * scripts: ctdbd_wrapper logs a message to syslog if syslog is not being usedMartin Schwenke2013-07-111-0/+8
| | | | | | | | | | | | | | | | | | It can be very disconcerting when logging to syslog is expected but nothing is being logged there. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 412bc0e20bef694d4e911dc9c984fd7716231f1f)
| * Update Nagios check to work with ctdb versions past 30 Aug 2011Mathieu Parent2013-07-111-1/+5
| | | | | | | | | | | | | | | | Because of commit a779d83a6213e2ba Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit a4afe7af9c9391048d6f80135bbd5e15367770c7)
| * recoverd: Really fix bogus info in message about changed flagsMartin Schwenke2013-07-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Commit 9119a568c2b4601318f7751f537dca2f92a7230b attempted to fix this. However, this was wrong because old_flags and new_flags were confused. The latter has since been fixed in commit 7eb2f89979360b6cc98ca9b17c48310277fa89fc so this can now be fixed properly. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 40f2825d6e818dc8c745b6385a545969dfb45fbc)
| * doc: Update NEWSMartin Schwenke2013-07-111-0/+2
| | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 76703514040b804b880cab909f6ff52576f80f89)
| * Print deleted nodes as wellSumit Bose2013-07-111-1/+12
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 0930a3b806977555509c3228726e2250aef1f971)
| * IPv6 neighbor solicit cleanupSumit Bose2013-07-111-7/+8
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit a81edf7eb908659a379f0cb55fd5d04551dc2c37)
| * Fix memory leak in ctdb_send_message()Sumit Bose2013-07-111-5/+1
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit da87395d29f5d11ecfedaf36b53fa060a9140bfd)
| * Fixes for various issues found by CoveritySumit Bose2013-07-119-8/+42
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 05bfdbbd0d4abdfbcf28e3930086723508b35952)
| * Check return value of tdb_delete()Sumit Bose2013-07-111-1/+3
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 5cdcc3d45d358ddbcd7e864898eed9cbd9935429)
| * web: Update webpagesAmitay Isaacs2013-07-111-9/+3
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit ed9ba1d3dcfcb51aa69bf4d7a74b95063743d8d9)
| * Tests: Correct the arguments to memsetAmitay Isaacs2013-07-111-1/+1
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 9ffcd6a91287d86bae7b0c73aa129c81126e08e7)
| * doc: Update NEWSAmitay Isaacs2013-07-101-0/+35
| | | | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Pair-programmed-with: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 14141b02b61d2783b750ee5b30f9520253e88f09)
| * packaging: Add systemd supportMartin Schwenke2013-07-102-3/+33
| | | | | | | | | | | | | | | | Based on an original patch by Sumit Bose <sbose@redhat.com>. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit e43a4b7b69a21c4cec2453dcac436b64bf5d7f06)
| * build: Turn off all deprecation warningsMartin Schwenke2013-07-101-1/+1
| | | | | | | | | | | | | | | | | | The "‘tevent_loop_allow_nesting’ is deprecated" warnings will be around for a while and are annoying. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 30a0040fbb7c4d97d107f0e55c600295c2603a68)
| * build: Remove -DTEVENT_DEPRECATED_QUIET=1 from CFLAGSMartin Schwenke2013-07-101-1/+1
| | | | | | | | | | | | | | | | | | | | This reverts the last part of 788cdbddbc902a5b076d23473450065b551d274d - the rest of this has been implicitly reverted via tevent syncs. This is just leftover noise. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit b6bbfb4c464c39e322830cbbebcc51c225508584)
| * initscript: Simpify initscript and control CTDB via new ctdbd_wrapperMartin Schwenke2013-07-104-226/+331
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the initscript is very complex. This makes it hard to read and hard to add support for new init systems, such as systemd. Create a wrapper called ctdbd_wrapper to be installed alongside ctdbd. This is called by the initscript to start and stop ctdbd. It does the ctdbd option construct and waits until ctdbd is properly initialised before it exits. Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit e3abc7eebab5cceddc4ce7817890dd5db9be3450)
| * recoverd: Recovery daemon should use ctdb_get_pnn, which can't failMartin Schwenke2013-07-101-5/+1
| | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit c6fded59fa4da67f738a90fdacb51900e41801f9)
| * ctdbd: Print tdb flags when logging attached to database messageAmitay Isaacs2013-07-101-2/+3
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 846109169ee5e3d03135156e45c8dac93aa2e95b)
| * ctdbd: Set process names for child processesAmitay Isaacs2013-07-1011-1/+14
| | | | | | | | | | | | | | | | This helps distinguish processes in process list in top, perf, etc. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 2493f57ce268d6fe7e4c40a87852c347fd60d29e)
| * common/system: Add ctdb_set_process_name() functionAmitay Isaacs2013-07-106-0/+36
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit fc3689c977f48d7988eed0654fb8e5ce4b8bfc8b)
| * traverse: Remove unused start_time fieldAmitay Isaacs2013-07-101-3/+0
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit dc834d5e78c3fb97ae15cddf1139b3c4a4051a7c)
| * traverse: Send records directly from traverse child to srcnodeAmitay Isaacs2013-07-101-35/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently CTDB daemon reads records from a child process and then sends them to srcnode via TRAVERSE_DATA control. This ties up main CTDB daemon and also requires an extra copy of the record in the CTDB daemon. Instead send records directly from traverse child process. The control from child process still goes via local CTDB daemon as there is no infrastructure currently to open a TCP socket to the srcnode. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 1a74192aa7d51ed99553e7292860027f06b6ef37)
| * traverse: Pass reqid and srcnode information to local database traverseAmitay Isaacs2013-07-101-0/+4
| | | | | | | | | | | | | | | | | | So that traverse child process can directly send the TRAVERSE_DATA control to the srcnode without first sending it to local node. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit faabce1b99fb3de9ff03bf54d303e7656538fee3)
| * packaging: When building with system libraries, add dependency for themAmitay Isaacs2013-07-101-0/+3
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 8225b3e77e140db34b52571a95d553d1e59e3f1e)
| * ctdbd: No need for DeadlockTimeout tunableAmitay Isaacs2013-07-103-18/+0
| | | | | | | | | | | | | | | | | | The code for deadlock detection and killing smbd process causing deadlock has been removed and replaced with external debug script. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 2211cd94bea266547d3e6f167d3160a6b23bec88)
| * initscript: Export CTDB_DEBUG_LOCKS variableAmitay Isaacs2013-07-101-1/+1
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit a415a1986900135f889efc25ecaf2761b1dae81a)
| * scripts: Add an example debug_locks.sh script to debug locking issueAmitay Isaacs2013-07-101-0/+45
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit c711ff4702c5f95b75e4bf030665fc2afffc2f9e)
| * locking: Use external script to debug locking issuesAmitay Isaacs2013-07-101-152/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | Use an external script to parse /proc/locks and log useful debugging information about locks rather than doing that in C code. To use this feature, add configuration variable to /etc/sysconfig/ctdb: CTDB_DEBUG_LOCKS=/etc/ctdb/debug_locks.sh Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 2bfb8499366d530f16515b08928056bbda40f781)
| * locking: Update locking bucket intervalsAmitay Isaacs2013-07-101-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0 < 1 ms 1 < 10 ms 2 < 100 ms 3 < 1 s 4 < 2 s 5 < 4 s 6 < 8 s 7 < 16 s 8 < 32 s 9 < 64 s 10 >= 64 s Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 6fc36a7036933237d09151a0baf4d8ccd2bc2c99)
| * locking: Update locks latency in CTDB statistics only for RECORD or DB locksAmitay Isaacs2013-07-101-2/+6
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit dcc42a75b4638b3aa40c44ed9e0aaae26483e2b0)
| * tools/ctdb: Fix the format of DB statistics outputAmitay Isaacs2013-07-101-9/+14
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 594c421f90ce132c75fbd985872114e4967f92b5)
| * ctdbd: Remove incomplete ctdb_db_statistics_wire structureAmitay Isaacs2013-07-105-95/+16
| | | | | | | | | | | | | | | | | | | | Send the ctdb_db_statistics directly instead of first copying it to duplicate ctdb_db_statistics_wire structure. This simplifies the implementation of the control to get database statistics. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 26a4653df594d351ca0dc1bd5f5b2f5b0eb0a9a5)
| * ctdbd: Update debug messages for setting readonly property on databaseAmitay Isaacs2013-07-101-1/+4
| | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 545a46437dfb2b755bb2fddb11dea8c4ccce3ed7)
| * recoverd: Fix buffer overflow error in reloadipsAmitay Isaacs2013-07-051-8/+21
| | | | | | | | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 41182623891d74a7e9e9c453183411a161201e67)
| * tests/eventscripts: Add some rudimentary tests for 60.ganeshaMartin Schwenke2013-07-054-0/+81
| | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit e1cf1f728236d808bb41265e74bc65f54bf1c133)
| * eventscripts: New configuration variable $CTDB_SKIP_GANESHA_NFSD_CHECKMartin Schwenke2013-07-051-1/+3
| | | | | | | | | | | | | | | | | | This allows 60.ganesha to be unit tested, except for the core Ganesha monitoring code. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit f606df4f2db754592e6d1a16c26e155cacb2beef)
| * eventscript: Move Ganesha nfsd monitoring to a functionMartin Schwenke2013-07-051-51/+59
| | | | | | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit ceb5b2d37f7ab4894908ec26f3812b3bed991525)
| * eventscripts: Drop RPC service version from nfs_check_rpc_service() callsMartin Schwenke2013-07-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | Support for this was removed in commit 77302dbfd85754e02559eccb2dd6c090db0b6b9f and I overlooked its use in 60.ganesha. Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 520914e7ee1b879c1080e5857fda18ed5b973fd6)