[Bugs] [Bug 1376685] New: Introduce graceful mode in stop-all-gluster-processes.sh
bugzilla at redhat.com
bugzilla at redhat.com
Fri Sep 16 07:30:30 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1376685
Bug ID: 1376685
Summary: Introduce graceful mode in
stop-all-gluster-processes.sh
Product: Red Hat Gluster Storage
Version: 3.1
Component: unclassified
Assignee: amukherj at redhat.com
Reporter: prasanna.kalever at redhat.com
QA Contact: rhinduja at redhat.com
CC: amukherj at redhat.com, bugs at gluster.org,
rhs-bugs at redhat.com, sankarshan at redhat.com,
smohan at redhat.com, storage-qa-internal at redhat.com
Depends On: 1367771
+++ This bug was initially created as a clone of Bug #1367771 +++
Description of problem:
Currently all of brick, gsyncd and other glustershd services/processes are
killed without checking for ongoing tasks such as geo-rep, self-heal, rebalance
and etc. which may lead to inconsistency after the node is brought back.
Version-Release number of selected component (if applicable):
3.1
Actual results:
inconsistency in data
Expected results:
Smooth resume with no data inconsistency
COMMIT: http://review.gluster.org/15188 committed in master by Atin Mukherjee
(amukherj at redhat.com)
------
commit 14b46be09c98c1ef75f55af34ec762b3e34899f1
Author: Prasanna Kumar Kalever <prasanna.kalever at redhat.com>
Date: Wed Aug 17 17:31:17 2016 +0530
extras: kill processes gracefully
Currently all of brick, gsyncd and other glustershd services/processes
are killed without checking for ongoing tasks such as geo-rep,
self-heal, rebalance and etc. which may lead to inconsistency after
the node is brought back.
This patch introduce an option '-g' which ensures whether all the
gluster processes are ready (not busy) to be terminated before we
executing 'kill' on them
Usage: ./extras/stop-all-gluster-processes.sh [-g] [-h]
options:
-g Terminate in graceful mode
-h Show this message, then exit
eg:
1. ./extras/stop-all-gluster-processes.sh
2. ./extras/stop-all-gluster-processes.sh -g
By default, this script executes in force mode, processes are killed
without checking for ongoing tasks, on specifying '-g' option this
script works in graceful mode, which returns exitcode if some of gluster
processes are busy in doing their jobs.
exitcodes include:
0 No errors/Success
64 Rebalance is in progress
65 Self-Heal is in progress
66 Tier daemon running on this node
127 option not found
Change-Id: I2f924b2bf9f04a81788d0f5604895a42755b33a1
BUG: 1367771
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever at redhat.com>
Reviewed-on: http://review.gluster.org/15188
Tested-by: Prasanna Kumar Kalever <pkalever at redhat.com>
Smoke: Gluster Build System <jenkins at build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
Reviewed-by: Rajesh Joseph <rjoseph at redhat.com>
CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
Reviewed-by: Ravishankar N <ravishankar at redhat.com>
Reviewed-by: mohammed rafi kc <rkavunga at redhat.com>
Reviewed-by: Atin Mukherjee <amukherj at redhat.com>
--- Additional comment from Worker Ant on 2016-08-29 07:55:20 EDT ---
COMMIT: http://review.gluster.org/15187 committed in master by Atin Mukherjee
(amukherj at redhat.com)
------
commit 87303b77ddbdc29a415acc2c73bfaafa9be10609
Author: Prasanna Kumar Kalever <prasanna.kalever at redhat.com>
Date: Wed Aug 17 17:47:08 2016 +0530
extras: kill gsyncd before glusterfsd
It's a good practice to kill gsyncd before brick process, else we see
unnecessary loops and logs of bring up the faulty bricks
Change-Id: I2d2176f2bf5014f3afd622194a8b2d60c86926af
BUG: 1367771
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever at redhat.com>
Reviewed-on: http://review.gluster.org/15187
Tested-by: Prasanna Kumar Kalever <pkalever at redhat.com>
CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
Smoke: Gluster Build System <jenkins at build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
Reviewed-by: Atin Mukherjee <amukherj at redhat.com>
Reviewed-by: Kotresh HR <khiremat at redhat.com>
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1367771
[Bug 1367771] Introduce graceful mode in stop-all-gluster-processes.sh
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=ga1chKclh9&a=cc_unsubscribe
More information about the Bugs
mailing list