Bug 1209123 - [USS]: gluster volume reset <vol-name>, resets the uss configured option but snapd process continues to run
Summary: [USS]: gluster volume reset <vol-name>, resets the uss configured option but ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: snapshot
Version: mainline
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mohammed Rafi KC
QA Contact:
URL:
Whiteboard: USS
Depends On: 1178100 1209329
Blocks: 1245926
TreeView+ depends on / blocked
 
Reported: 2015-04-06 10:41 UTC by Mohammed Rafi KC
Modified: 2018-08-29 03:18 UTC (History)
4 users (show)

Fixed In Version: glusterfs-4.1.3 (or higher)
Doc Type: Bug Fix
Doc Text:
Clone Of: 1178100
: 1245926 (view as bug list)
Environment:
Last Closed: 2018-08-29 03:18:45 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Mohammed Rafi KC 2015-04-06 10:41:42 UTC
+++ This bug was initially created as a clone of Bug #1178100 +++

Description of problem:
=======================

gluster volume reset is used to "reset all the reconfigured options" and USS is one of them. But snapd process continues to be online 

[root@inception ~]# gluster v i vol_test | grep uss
features.uss: on
[root@inception ~]# ps -eaf | grep snapd
root      4182     1  0 15:10 ?        00:00:00 /usr/sbin/glusterfsd -s localhost --volfile-id snapd/vol_test -p /var/lib/glusterd/vols/vol_test/run/vol_test-snapd.pid -l /var/log/glusterfs/snaps/vol_test/snapd.log --brick-name snapd-vol_test -S /var/run/acfb4e617ee26303307f24cfb63c442e.socket --brick-port 49158 --xlator-option vol_test-server.listen-port=49158
root      4228  4111  0 15:10 pts/0    00:00:00 grep snapd
[root@inception ~]# gluster v reset vol_test
volume reset: success: reset volume successful
[root@inception ~]# gluster v i vol_test | grep uss
[root@inception ~]# ps -eaf | grep snapd
root      4182     1  0 15:10 ?        00:00:00 /usr/sbin/glusterfsd -s localhost --volfile-id snapd/vol_test -p /var/lib/glusterd/vols/vol_test/run/vol_test-snapd.pid -l /var/log/glusterfs/snaps/vol_test/snapd.log --brick-name snapd-vol_test -S /var/run/acfb4e617ee26303307f24cfb63c442e.socket --brick-port 49158 --xlator-option vol_test-server.listen-port=49158
root      4274  4111  0 15:11 pts/0    00:00:00 grep snapd
[root@inception ~]# 



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

glusterfs-3.6.0.40-1.el6rhs.x86_64


How reproducible:
================

always


Steps to Reproduce:
===================
1. Create 4 node cluster
2. Create and start a volume
3. Enable USS, confirm snapd process is started on all node
4. Check gluster v i vol-name, uss should be enabled
5. gluster v status should show snapshot-daemon online
6. Reset the volume using "gluster volume reset <vol-name>"
7. Check gluster v i vol-name, uss should not be listed
8. gluster v status should not show snapshot-daemon
9. check snapd process using "ps -eaf | grep snapd" on all nodes

Actual results:
===============
snapd process is online


Expected results:
=================
snapd process should not be running

--- Additional comment from RHEL Product and Program Management on 2015-01-02 05:23:36 EST ---

Since this issue was entered in bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

--- Additional comment from Nagaprasad Sathyanarayana on 2015-01-05 03:27:12 EST ---

As discussed and agreed by engineering leads & PM. deferring this BZ to next update.

Comment 1 Anand Avati 2015-04-06 12:13:40 UTC
REVIEW: http://review.gluster.org/10138 (Snapshot:Stop snapd service during reset on a volume) posted (#1) for review on master by mohammed rafi  kc (rkavunga)

Comment 2 Anand Avati 2015-04-06 12:16:35 UTC
REVIEW: http://review.gluster.org/10138 (Snapshot:Stop snapd service during reset on a volume) posted (#2) for review on master by mohammed rafi  kc (rkavunga)

Comment 3 Anand Avati 2015-04-06 17:42:35 UTC
REVIEW: http://review.gluster.org/10138 (Snapshot:Stop snapd service during reset on a volume) posted (#3) for review on master by Niels de Vos (ndevos)

Comment 4 Anand Avati 2015-04-07 06:12:59 UTC
REVIEW: http://review.gluster.org/10138 (Snapshot:Stop snapd service during reset on a volume) posted (#4) for review on master by mohammed rafi  kc (rkavunga)

Comment 5 Anand Avati 2015-04-07 11:18:38 UTC
REVIEW: http://review.gluster.org/10138 (Snapshot:Stop snapd service during reset on a volume) posted (#5) for review on master by mohammed rafi  kc (rkavunga)

Comment 6 Avra Sengupta 2015-08-18 09:52:28 UTC
Fixed with http://review.gluster.org/#/c/10850/


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