From d040cb45469d64fa7534247f9568b48b28114c3f Mon Sep 17 00:00:00 2001 From: Sahina Bose Date: Mon, 9 Jun 2014 16:02:51 +0530 Subject: server-plugin: To check if any vol has server side quorum Added a server side plugin to change status from Pending to OK/UNKNOWN depending on if volumes have server side quorum turned on Renamed service to ensure service definition gets updated on upgrades. Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1106421 Change-Id: I1f1ca1dcf56872342ec8e25396a89163d22aedeb Signed-off-by: Sahina Bose Reviewed-on: http://review.gluster.org/8023 Reviewed-by: darshan n Reviewed-by: Ramesh N --- config/gluster-commands.cfg | 6 ++++++ config/gluster-templates.cfg | 7 +++++++ 2 files changed, 13 insertions(+) (limited to 'config') diff --git a/config/gluster-commands.cfg b/config/gluster-commands.cfg index ac61fc5..b4df742 100644 --- a/config/gluster-commands.cfg +++ b/config/gluster-commands.cfg @@ -101,6 +101,12 @@ define command { command_line $USER1$/gluster/check_vol_server.py $ARG1$ $ARG2$ -o geo-rep } +# since no volume is required to query quorum status, dummy is passed +define command { + command_name check_quorum_status + command_line $USER1$/gluster/check_vol_server.py $HOSTNAME$ dummy -o quorum +} + define command{ command_name check_cluster_status command_line $USER1$/gluster/check_cluster_status.py $HOSTNAME$ diff --git a/config/gluster-templates.cfg b/config/gluster-templates.cfg index 2668e6d..b9e38da 100644 --- a/config/gluster-templates.cfg +++ b/config/gluster-templates.cfg @@ -54,6 +54,13 @@ define service { max_check_attempts 1 } +define service { + name gluster-passive-freshness-service + use gluster-passive-service + check_freshness 1 + freshness_threshold 3600 ;check freshness every 1 hour +} + define service { name gluster-brick-status-service use gluster-service -- cgit