Bug 815483 - extras/init.d/glusterd-Redhat stop action kills glusterfsd?
Summary: extras/init.d/glusterd-Redhat stop action kills glusterfsd?
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: scripts
Version: mainline
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Amar Tumballi
QA Contact: Ujjwala
URL:
Whiteboard:
Depends On:
Blocks: 817967
TreeView+ depends on / blocked
 
Reported: 2012-04-23 17:11 UTC by Louis Zuckerman
Modified: 2013-12-19 00:08 UTC (History)
4 users (show)

Fixed In Version: glusterfs-3.4.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-24 17:20:32 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Louis Zuckerman 2012-04-23 17:11:10 UTC
Description of problem:
There are three initscripts in extras/init.d, debian, suse, and redhat.  of these, the debian & suse scripts "stop" action only stops the glusterd process, and does not touch running glusterfsd processes.  the redhat script (line 52-53), on the other hand, appears to stop both glusterd & glusterfsd processes.  Is that  right?

Version-Release number of selected component (if applicable):

All?

How reproducible:

Personally, I can only confirm the behavior on debian-derived distros (debian & ubuntu) and it is true that "service glusterd stop" does not kill running glusterfsd processes.

I do not have access to a redhat or suse box to test.

Steps to Reproduce:
1. Create volume
2. Start volume
3. "service glusterd stop"
4. did the glusterfsd process get killed also?
  
Actual results:

On debian/ubuntu only the glusterd process is killed, glusterfsd processes are left alone.

On Redhat?

On Suse?

Expected results:

The expected behavior is that only the glusterd process will be killed by "service glusterd stop", but glusterfsd processes will be left alone.


Additional info:

IMHO there needs to be consensus & consistency across distributions as to what "service glusterd stop" will accomplish.  I think it should only stop glusterd, and leave running glusterfsd processes alone, because those are controlled pool-wide using "gluster volume start/stop" commands.

Thank you!

Comment 1 Amar Tumballi 2012-04-24 02:15:49 UTC
patch @ http://review.gluster.com/2919 fixes the issue. This will go in after a review.

Comment 2 Amar Tumballi 2012-05-19 06:42:19 UTC
Patch committed in upstream.

Comment 3 Anush Shetty 2012-05-31 07:02:56 UTC
Verified in master (f2a3291c2fe5a00bca1e4a77a37560ec30cc24bf)


Note You need to log in before you can comment on or make changes to this bug.