Bug 1204044
| Summary: | [geo-rep] stop-all-gluster-processes.sh fails to stop all gluster processes | |||
|---|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Sweta Anandpara <sanandpa> | |
| Component: | geo-replication | Assignee: | Kotresh HR <khiremat> | |
| Status: | CLOSED ERRATA | QA Contact: | Rahul Hinduja <rhinduja> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | high | |||
| Version: | rhgs-3.0 | CC: | aavati, asriram, asrivast, avishwan, csaba, kcleveng, khiremat, nlevinki, pprakash, rcyriac, rhinduja, sanandpa, vagarwal | |
| Target Milestone: | --- | Keywords: | Regression, ZStream | |
| Target Release: | RHGS 3.1.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | glusterfs-3.7.1-1 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1204641 (view as bug list) | Environment: | ||
| Last Closed: | 2015-07-29 04:39:47 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: | 1225331 | |||
| Bug Blocks: | 1152992, 1184846, 1191838, 1202842, 1223636 | |||
|
Description
Sweta Anandpara
2015-03-20 09:06:19 UTC
Severity could be changed depending on the number of customers who are using this script. Choosing to take/not-take this bug in 3.0.4 will affect the outcome of related-doc-bug 1184846 Hi Sweta, I see this being added as a known issue for the 3.0.4 release. Could you please lead me to someone who can provide the info or can you please fill out the doc text field? Please get in touch with Aravinda or Kotresh for the updated content that has to go in the doc. Patch Sent Upstream: http://review.gluster.org/#/c/9970/ RCA: test -n takes single string as argument. In the script, if multiple
pids are got, it fails with "Too many arguments".
Documentation changes required irrespective of whether the patch is taken in for 3.04 or not:
Present Documentation:
----------
In section: 4.1. Starting and Stopping the glusterd service
Run the following command to stop glusterd manually.
# service glusterd stop
Note
Stopping the glusterd service does not stop all the glusterprocesses
such as glusterfsd, gsyncd etc. Execute the script stop-all-gluster-
processes.sh available at the /usr/share/glusterfs/scripts directory to
stop all the gluster processes.
-------------------
Instead of directly killing geo-rep processes through script, we should say
use geo-rep stop command to stop geo-replication if geo-rep is established that inturn kills all geo-rep processess and update status properly.
Later use the "stop-all-gluster-processes.sh" script to kill all other gluster processess.
Kotresh, I see this bug added in the known issues tracker bug for the 3.0.4 release. Could you please change the doc type to known issue and fill out the doc text field? Hi Kotresh, Please review the edited doc text for technical accuracy and sign off. The doc text looks fine. *** Bug 1014850 has been marked as a duplicate of this bug. *** stop-all-gluster-processes.sh is not packaged with the glusterfs-3.7.0-2 version. Moving this bug to assigned state. [root@georep1 ~]# ls /usr/share/glusterfs/scripts/ generate-gfid-file.sh get-gfid.sh gsync-sync-gfid gsync-upgrade.sh post-upgrade-script-for-quota.sh pre-upgrade-script-for-quota.sh slave-upgrade.sh [root@georep1 ~]# rpm -qa | grep gluster | xargs rpm -ql | grep stop-all-gluster-processes.sh* [root@georep1 ~]# Patches: master: http://review.gluster.org/10931 release-3.7: http://review.gluster.org/11015 downstream: https://code.engineering.redhat.com/gerrit/#/c/49676/ Verified with build: glusterfs-3.7.1-7.el6rhs.x86_64
[root@georep1 ~]# ps aux | grep gsync | awk {'print $2'}
16277
16327
16328
16344
16363
16449
16450
16463
16469
18137
18138
18159
[root@georep1 ~]# bash /usr/share/glusterfs/scripts/stop-all-gluster-processes.sh
sending SIGTERM to process 16277
sending SIGTERM to process 16563
sending SIGTERM to process 16618
sending SIGTERM to process 15420
sending SIGTERM to process 15402
sending SIGTERM to process 16610
sending SIGTERM to process 15656
sending SIGTERM to process 16092
sending SIGKILL to process 16277
[root@georep1 ~]#
[root@georep1 ~]# ps aux | grep gsync
root 18207 0.0 0.0 103308 852 pts/0 S+ 16:20 0:00 grep gsync
[root@georep1 ~]#
Moving the bug to verified
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-1495.html |