From f6dec81995bf3242bb0de14d791e1d817b9559dd Mon Sep 17 00:00:00 2001 From: Sahina Bose Date: Tue, 13 May 2014 16:18:14 +0530 Subject: plugins: Change service state to Warning for self-heal problem If unsynced entries are present, the service "Volume Self-Heal" changes to WARNING rather than CRITICAL Change-Id: Ib258d766dd63c69ef86083a8ea1faee0cbe5a8b6 Signed-off-by: Sahina Bose Reviewed-on: http://review.gluster.org/7760 Reviewed-by: Shubhendu Tripathi --- plugins/check_volume_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/check_volume_status.py') diff --git a/plugins/check_volume_status.py b/plugins/check_volume_status.py index ce2b4de..bef8dbd 100755 --- a/plugins/check_volume_status.py +++ b/plugins/check_volume_status.py @@ -95,7 +95,7 @@ def getVolumeSelfHealStatus(args): message = "No unsynced entries present" elif (volume[args.volume]['status'] == glustercli. VolumeSplitBrainStatus.SPLITBRAIN): - exitstatus = utils.PluginStatusCode.CRITICAL + exitstatus = utils.PluginStatusCode.WARNING message = ("Unsynced entries present %s" % (volume[args.volume]['unsyncedentries'])) return exitstatus, message -- cgit