Bug 1204641
Summary: | [geo-rep] stop-all-gluster-processes.sh fails to stop all gluster processes | |||
---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Kotresh HR <khiremat> | |
Component: | scripts | Assignee: | Kotresh HR <khiremat> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | ||
Severity: | medium | Docs Contact: | ||
Priority: | unspecified | |||
Version: | mainline | CC: | avishwan, bugs, chrisw, csaba, gluster-bugs, nlevinki, pprakash, psriniva, rcyriac, sanandpa | |
Target Milestone: | --- | Keywords: | Regression, Reopened, ZStream | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-3.8rc2 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | 1204044 | |||
: | 1225331 (view as bug list) | Environment: | ||
Last Closed: | 2016-06-16 12:43:55 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1184846, 1225331 |
Description
Kotresh HR
2015-03-23 09:35:57 UTC
Description of problem: 'service glusterd stop' stops only the management daemon and not all the gluster processes. A separate script 'stop-all-gluster-processes.sh' was created to achieve the intent of stopping all gluster processes. That fails to work when there is more than one gsync process running. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Have geo-rep session(s) created between master and slave (any configuration) 2. After successfully establishing and starting session(s), do a "ps aux | grep gluster | grep gsync | awk {'print $2'} " to make sure that there is more than one gsync process running (or any related process for that matter) 3. Execute the script "/usr/share/glusterfs/scripts/stop-all-gluster-processes.sh" and that should go through without any errors. 4. Run the 'ps' command again (mentioned in step 2) to verify that the gluster processes have stopped. Actual results: The script fails when there is more than one process running. It errors out saying 'too many arguments' Expected results: The script should work irrespective of number of processes active at that time. Additional info: Patch Sent: http://review.gluster.org/#/c/9970/ REVIEW: http://review.gluster.org/9970 (extras: Fix stop-all-gluster-processes.sh script) posted (#5) for review on master by Kotresh HR (khiremat) COMMIT: http://review.gluster.org/9970 committed in master by Vijay Bellur (vbellur) ------ commit 85865daa1b7dd11badf9f5192e050e1998c76f8a Author: Kotresh HR <khiremat> Date: Mon Mar 23 15:07:47 2015 +0530 extras: Fix stop-all-gluster-processes.sh script "test -n" command takes single string as argument. The command was failing with "Too many arguments" when multiple pids are got. Change-Id: Icc409082f492c72522168d5e203684f00f52cf1b BUG: 1204641 Signed-off-by: Kotresh HR <khiremat> Reviewed-on: http://review.gluster.org/9970 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Aravinda VK <avishwan> Reviewed-by: Vijay Bellur <vbellur> This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.0, please open a new bug report. glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939 [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.0, please open a new bug report. glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939 [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.0, please open a new bug report. glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939 [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.0, please open a new bug report. glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939 [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user REVIEW: http://review.gluster.org/10931 (scripts: Added script stop-all-gluster-processes.sh in rpm) posted (#1) for review on master by Aravinda VK (avishwan) REVIEW: http://review.gluster.org/10931 (scripts: Added script stop-all-gluster-processes.sh in rpm) posted (#2) for review on master by Aravinda VK (avishwan) One more packaging related patch expected. Moving this to ASSIGNED. REVIEW: http://review.gluster.org/10931 (scripts: Added script stop-all-gluster-processes.sh in rpm) posted (#4) for review on master by Aravinda VK (avishwan) Fix for this BZ is already present in a GlusterFS release. You can find clone of this BZ, fixed in a GlusterFS release and closed. Hence closing this mainline BZ as well. This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.8.0, please open a new bug report. glusterfs-3.8.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://blog.gluster.org/2016/06/glusterfs-3-8-released/ [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user |