From d0fef7cc3ee1f09536fd2ae85fe1620ee09100a9 Mon Sep 17 00:00:00 2001 From: Ramesh Nachimuthu Date: Thu, 17 Apr 2014 16:38:21 +0530 Subject: volume status: event handler for brick status Adding an event handler for brick status services. It will reschedule the volume status service to determine the current status of volume after any brick state change Change-Id: I94fa018e5aed15be53f45506f1a38efd698eca79 Signed-off-by: Ramesh Nachimuthu --- config/gluster-commands.cfg | 5 +++++ config/gluster-templates.cfg | 1 + 2 files changed, 6 insertions(+) (limited to 'config') diff --git a/config/gluster-commands.cfg b/config/gluster-commands.cfg index f1b94a4..60d6757 100644 --- a/config/gluster-commands.cfg +++ b/config/gluster-commands.cfg @@ -95,3 +95,8 @@ define command{ command_name check_cluster_status command_line $USER1$/gluster/check_cluster_status.py $HOSTNAME$ } + +define command{ + command_name submit_external_command + command_line $USER1$/gluster/submit_external_command.py -c '$ARG1$' -H '$ARG2$' -s '$ARG3$' -t '$ARG4$' +} diff --git a/config/gluster-templates.cfg b/config/gluster-templates.cfg index d9bebf9..8af2931 100644 --- a/config/gluster-templates.cfg +++ b/config/gluster-templates.cfg @@ -58,6 +58,7 @@ define service { use gluster-passive-service register 0 _GLUSTER_ENTITY Brick + event_handler submit_external_command!'SCHEDULE_SVC_CHECK'!$HOSTGROUPNAME$!'Volume Status - $_SERVICEVOL_NAME$'!'$LONGDATETIME$' } define service { -- cgit