Bug 1417588 - glusterd is setting replicate volume property over disperse volume or vice versa
Summary: glusterd is setting replicate volume property over disperse volume or vice versa
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: glusterd
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gaurav Yadav
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1438338
TreeView+ depends on / blocked
 
Reported: 2017-01-30 11:18 UTC by Gaurav Yadav
Modified: 2017-05-30 18:40 UTC (History)
1 user (show)

Fixed In Version: glusterfs-3.11.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1438338 (view as bug list)
Environment:
Last Closed: 2017-05-30 18:40:10 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Gaurav Yadav 2017-01-30 11:18:41 UTC
Description of problem:glusterd is setting replicate volume property over disperse volume and viceversa lusterd is setting disperse volume property over replicate volume 



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


How reproducible:


Steps to Reproduce:
Case 1:
1.Create disperse volume
  gluster v create test-vol2 disperse 3 192.168.122.109:/d/backends/b{4,5,6} force

2. Try to set 
gluster volume set test-vol2 cluster.shd-max-threads 1222

3.
Check for output of above commands

Case 2:
1.Create replicate volume
  gluster v create test-vol replicate 3 192.168.122.109:/d/backends/b{4,5,6} force

2. Try to set 
gluster volume set test-vol2 disperse.shd-max-threads 1222

3.
Check for output of above command

Actual results:
For both the case glusterd is allowing client to set all values.(int, string)

Expected results:
For both the case glusterd should give error.



Additional info:

Comment 1 Worker Ant 2017-01-31 10:46:21 UTC
REVIEW: https://review.gluster.org/16489 (glusterd : Fix for replicate and disperse volume option) posted (#1) for review on master by Gaurav Yadav (gyadav)

Comment 2 Worker Ant 2017-02-02 09:41:22 UTC
REVIEW: https://review.gluster.org/16489 (glusterd : Fix for replicate and disperse volume option) posted (#2) for review on master by Gaurav Yadav (gyadav)

Comment 3 Worker Ant 2017-02-13 10:19:13 UTC
REVIEW: https://review.gluster.org/16489 (glusterd : Fix for replicate and disperse volume option) posted (#3) for review on master by Gaurav Yadav (gyadav)

Comment 4 Worker Ant 2017-02-13 17:59:32 UTC
REVIEW: https://review.gluster.org/16489 (glusterd : Fix for replicate and disperse volume option) posted (#4) for review on master by Gaurav Yadav (gyadav)

Comment 5 Worker Ant 2017-02-22 10:19:41 UTC
REVIEW: https://review.gluster.org/16489 (glusterd : Fix for replicate and disperse volume option) posted (#5) for review on master by Gaurav Yadav (gyadav)

Comment 6 Worker Ant 2017-03-06 07:21:55 UTC
REVIEW: https://review.gluster.org/16489 (glusterd : Fix for replicate and disperse volume option) posted (#6) for review on master by Gaurav Yadav (gyadav)

Comment 7 Worker Ant 2017-03-06 10:22:52 UTC
REVIEW: https://review.gluster.org/16489 (glusterd : Fix for replicate and disperse volume option) posted (#7) for review on master by Gaurav Yadav (gyadav)

Comment 8 Worker Ant 2017-03-06 12:45:27 UTC
REVIEW: https://review.gluster.org/16489 (glusterd : Fix for replicate and disperse volume option) posted (#8) for review on master by Gaurav Yadav (gyadav)

Comment 9 Worker Ant 2017-03-06 13:04:21 UTC
REVIEW: https://review.gluster.org/16489 (glusterd : Fix for replicate and disperse volume option) posted (#9) for review on master by Gaurav Yadav (gyadav)

Comment 10 Worker Ant 2017-03-06 16:51:58 UTC
COMMIT: https://review.gluster.org/16489 committed in master by Jeff Darcy (jdarcy) 
------
commit c618de80696c4572fad9e28f0454e63ebb2ff4ed
Author: Gaurav Yadav <gyadav>
Date:   Tue Jan 31 16:14:46 2017 +0530

    glusterd : Fix for replicate and disperse volume option
    
    While setting volume option(disperse-shd-max-threads) for
    replicate volume and volume option(cluster-shd-max-threads)
    for disperse volume, glusterd is not validating volume options
    and setting all the values irrespective of proper validation
    for disperse-shd-max-threads and cluster-shd-max-threads
    
    Change-Id: Ic88815ad49e901e74ffc042170f5caabf7c17a89
    BUG: 1417588
    Signed-off-by: Gaurav Yadav <gyadav>
    Reviewed-on: https://review.gluster.org/16489
    Smoke: Gluster Build System <jenkins.org>
    Reviewed-by: Atin Mukherjee <amukherj>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>

Comment 11 Shyamsundar 2017-05-30 18:40:10 UTC
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.11.0, please open a new bug report.

glusterfs-3.11.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://lists.gluster.org/pipermail/announce/2017-May/000073.html
[2] https://www.gluster.org/pipermail/gluster-users/


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