[SCM] CTDB repository - branch 2.5 updated - ctdb-2.5.5-5-g163852e
Amitay Isaacs
amitay at samba.org
Sun Apr 26 23:41:44 MDT 2015
The branch, 2.5 has been updated
via 163852e4a796b9f3ea4a3097c4e139209a9c51f9 (commit)
via eec6257fd80839f2b544d4819d561e00e032cf49 (commit)
via 2aaddcd0856b174fcfe4e987be7ebb3dedbcfd53 (commit)
via d43b6ea1fa9988c34ab1e277cb0a9fadae63484d (commit)
via e0f24e90a4516d1bb3654e96ec9c4ecfb96d27ff (commit)
from 3394a2ecd858e54602c9bc577273c9a62ef7066f (commit)
https://git.samba.org/?p=ctdb.git;a=shortlog;h=2.5
- Log -----------------------------------------------------------------
commit 163852e4a796b9f3ea4a3097c4e139209a9c51f9
Author: Amitay Isaacs <amitay at gmail.com>
Date: Fri Mar 27 12:00:56 2015 +1100
tests: Switch to tcp check in rpcinfo stub
Use -T tcp instead of deprecated options -u and -t. Also, check for
localhost.
Signed-off-by: Amitay Isaacs <amitay at gmail.com>
Reviewed-by: Martin Schwenke <martin at meltin.net>
Autobuild-User(master): Martin Schwenke <martins at samba.org>
Autobuild-Date(master): Fri Mar 27 09:16:50 CET 2015 on sn-devel-104
(Imported from commit 079575d80f5b28e452abf80efc4d005fb6dac270)
commit eec6257fd80839f2b544d4819d561e00e032cf49
Author: Amitay Isaacs <amitay at gmail.com>
Date: Fri Mar 27 12:04:03 2015 +1100
scripts: Use tcp connection for checking RPC services
It's possible for a RPC service to register only for UDP and not TCP.
Since we assume all the NFS operations are over TCP, always check RPC
services over TCP.
Signed-off-by: Amitay Isaacs <amitay at gmail.com>
Reviewed-by: Martin Schwenke <martin at meltin.net>
(Imported from commit 14886ed00c998c2ac4deb70f650584e9b371345d)
commit 2aaddcd0856b174fcfe4e987be7ebb3dedbcfd53
Author: Martin Schwenke <martin at meltin.net>
Date: Tue Mar 24 20:12:51 2015 +1100
scripts: Respect $RPCMOUNTDOPTS when restarting rpc.mountd
$RPCMOUNTDOPTS is ignored when restarting rpc.statd due to the service
being unresponsive. This variable can be used to increase the number
of rpc.mountd threads when there are a lot of clients reattaching so
ignoring it can mean that only a single rpc.mount thread is started.
Signed-off-by: Martin Schwenke <martin at meltin.net>
Reviewed-by: Amitay Isaacs <amitay at gmail.com>
(Imported from commit 130202d635d8712575fa201a12ef257f4278b862)
commit d43b6ea1fa9988c34ab1e277cb0a9fadae63484d
Author: Amitay Isaacs <amitay at gmail.com>
Date: Wed Jul 30 14:31:54 2014 +1000
daemon: Drop tunable that is no longer in use
Signed-off-by: Amitay Isaacs <amitay at gmail.com>
Reviewed-by: Martin Schwenke <martin at meltin.net>
(Imported from commit 62ba95a9f347d2ac0e4fb53dc62b94f557e17e8b)
commit e0f24e90a4516d1bb3654e96ec9c4ecfb96d27ff
Author: Amitay Isaacs <amitay at gmail.com>
Date: Wed Jul 30 12:32:08 2014 +1000
recoverd: Fix typo in comment
Signed-off-by: Amitay Isaacs <amitay at gmail.com>
Reviewed-by: Martin Schwenke <martin at meltin.net>
(Imported from commit 41ed26cbf7b81e372ea0b5cc3d96dfe217a0cf58)
-----------------------------------------------------------------------
Summary of changes:
config/functions | 5 +++--
include/ctdb_private.h | 1 -
server/ctdb_takeover.c | 4 ++--
server/ctdb_tunables.c | 1 -
tests/eventscripts/stubs/rpcinfo | 20 ++++++++++----------
5 files changed, 15 insertions(+), 16 deletions(-)
Changeset truncated at 500 lines:
diff --git a/config/functions b/config/functions
index 864b7d5..33a3a3a 100755
--- a/config/functions
+++ b/config/functions
@@ -395,7 +395,8 @@ _nfs_restart_rpc_service ()
echo "Trying to restart $_prog_name [${_p}]"
killall -q -9 "$_p"
nfs_dump_some_threads "$_p"
- $_maybe_background $_p ${MOUNTD_PORT:+-p} $MOUNTD_PORT
+ $_maybe_background $_p $RPCMOUNTDOPTS \
+ ${MOUNTD_PORT:+-p} $MOUNTD_PORT
;;
rquotad)
echo "Trying to restart $_prog_name [${_p}]"
@@ -434,7 +435,7 @@ ctdb_check_rpc ()
_localhost="${CTDB_RPCINFO_LOCALHOST:-127.0.0.1}"
- if ! ctdb_check_rpc_out=$(rpcinfo -u $_localhost $progname $version 2>&1) ; then
+ if ! ctdb_check_rpc_out=$(rpcinfo -T tcp $_localhost $progname $version 2>&1) ; then
ctdb_check_rpc_out="ERROR: $progname failed RPC check:
$ctdb_check_rpc_out"
echo "$ctdb_check_rpc_out"
diff --git a/include/ctdb_private.h b/include/ctdb_private.h
index 102168f..30905ac 100644
--- a/include/ctdb_private.h
+++ b/include/ctdb_private.h
@@ -106,7 +106,6 @@ struct ctdb_tunable {
uint32_t repack_limit;
uint32_t vacuum_limit;
uint32_t max_queue_depth_drop_msg;
- uint32_t use_status_events_for_monitoring;
uint32_t allow_unhealthy_db_read;
uint32_t stat_history_interval;
uint32_t deferred_attach_timeout;
diff --git a/server/ctdb_takeover.c b/server/ctdb_takeover.c
index ba476d1..caffd17 100644
--- a/server/ctdb_takeover.c
+++ b/server/ctdb_takeover.c
@@ -2811,12 +2811,12 @@ int ctdb_takeover_run(struct ctdb_context *ctdb, struct ctdb_node_map *nodemap,
}
ipreallocated:
- /*
+ /*
* Tell all nodes to run eventscripts to process the
* "ipreallocated" event. This can do a lot of things,
* including restarting services to reconfigure them if public
* IPs have moved. Once upon a time this event only used to
- * update natwg.
+ * update natgw.
*/
retry_data = talloc_zero_array(tmp_ctx, bool, nodemap->num);
CTDB_NO_MEMORY_FATAL(ctdb, retry_data);
diff --git a/server/ctdb_tunables.c b/server/ctdb_tunables.c
index e5ccf10..031e60f 100644
--- a/server/ctdb_tunables.c
+++ b/server/ctdb_tunables.c
@@ -64,7 +64,6 @@ static const struct {
{ "VacuumLimit", 5000, offsetof(struct ctdb_tunable, vacuum_limit), false },
{ "VacuumFastPathCount", 60, offsetof(struct ctdb_tunable, vacuum_fast_path_count), false },
{ "MaxQueueDropMsg", 1000000, offsetof(struct ctdb_tunable, max_queue_depth_drop_msg), false },
- { "UseStatusEvents", 0, offsetof(struct ctdb_tunable, use_status_events_for_monitoring), false },
{ "AllowUnhealthyDBRead", 0, offsetof(struct ctdb_tunable, allow_unhealthy_db_read), false },
{ "StatHistoryInterval", 1, offsetof(struct ctdb_tunable, stat_history_interval), false },
{ "DeferredAttachTO", 120, offsetof(struct ctdb_tunable, deferred_attach_timeout), false },
diff --git a/tests/eventscripts/stubs/rpcinfo b/tests/eventscripts/stubs/rpcinfo
index dd175f3..1866b59 100755
--- a/tests/eventscripts/stubs/rpcinfo
+++ b/tests/eventscripts/stubs/rpcinfo
@@ -5,23 +5,18 @@ prog="rpcinfo"
usage ()
{
cat >&2 <<EOF
-Usage: $prog -u host program [version]
+Usage: $prog -T tcp host program [version]
A fake rpcinfo stub that succeeds for items in FAKE_RPCINFO_SERVICES,
depending on command-line options.
-Note that "-u host" is ignored.
-
EOF
exit 1
}
parse_options ()
{
- # $POSIXLY_CORRECT means that the command passed to onnode can
- # take options and getopt won't reorder things to make them
- # options to this script.
- _temp=$(POSIXLY_CORRECT=1 getopt -n "$prog" -o "u:h" -l unix -l help -- "$@")
+ _temp=$(getopt -n "$prog" -o "T:h" -- "$@")
[ $? != 0 ] && usage
@@ -29,12 +24,17 @@ parse_options ()
while true ; do
case "$1" in
- -u) shift 2 ;; # ignore
+ -T) netid="$2"; shift 2 ;;
--) shift ; break ;;
- -h|--help|*) usage ;; # * shouldn't happen, so this is reasonable.
+ -h|*) usage ;; # * shouldn't happen, so this is reasonable.
esac
done
+ [ "$netid" = "tcp" ] || usage
+
+ host="$1" ; shift
+ [ "$host" = "localhost" -o "$host" = "127.0.0.1" ] || usage
+
[ 1 -le $# -a $# -le 2 ] || usage
p="$1"
@@ -49,7 +49,7 @@ for i in ${FAKE_RPCINFO_SERVICES} ; do
IFS="${IFS}:"
set -- $i
# $1 = program, $2 = low version, $3 = high version
-
+
if [ "$1" = "$p" ] ; then
if [ -n "$v" ] ; then
if [ "$2" -le "$v" -a "$v" -le "$3" ] ; then
--
CTDB repository
More information about the samba-cvs
mailing list