ctdb-scripts: Switch NFS checks to new style
authorMartin Schwenke <martin@meltin.net>
Fri, 19 Jun 2015 06:35:12 +0000 (16:35 +1000)
committerAmitay Isaacs <amitay@samba.org>
Tue, 14 Jul 2015 07:57:18 +0000 (09:57 +0200)
commit74428e5c1463d6c60880ba593c880bc36a8f1ff4
tree0a47561e9e5bc42c73721323647957771bbd91e2
parent3161d611bb2931019a7d40c7795c12f0b70a903c
ctdb-scripts: Switch NFS checks to new style

Note that the 60.ganesha RPC checks need to be identical to those in
the nfs-checks.d/ directory.  This is because the NFS unit test
infrastructure checks output against what should be produced by the
checks in nfs-checks.d/.  This is a minor issue, since one of the aims
of this work is to remove the need for a separate 60.ganesha.

In most cases configuration variable CTDB_NFS_DUMP_STUCK_THREADS is
now ignored.  This is now handled by passing the desired number of
threads to the command specified in the service_debug_cmd variable in
a .check file.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
13 files changed:
ctdb/config/events.d/60.ganesha
ctdb/config/events.d/60.nfs
ctdb/config/functions
ctdb/config/nfs-checks.d/10.status.check [new file with mode: 0644]
ctdb/config/nfs-checks.d/20.nfs.check [new file with mode: 0644]
ctdb/config/nfs-checks.d/30.nlockmgr.check [new file with mode: 0644]
ctdb/config/nfs-checks.d/40.mountd.check [new file with mode: 0644]
ctdb/config/nfs-checks.d/50.rquotad.check [new file with mode: 0644]
ctdb/config/nfs-checks.d/README [new file with mode: 0644]
ctdb/packaging/RPM/ctdb.spec.in
ctdb/tests/eventscripts/etc-ctdb/nfs-checks.d [new symlink]
ctdb/tests/eventscripts/scripts/local.sh
ctdb/wscript