Bug 1261741

Summary: Tier: glusterd crash when trying to detach , when hot tier is having exactly one brick and cold tier is of replica type
Product: [Community] GlusterFS Reporter: Mohammed Rafi KC <rkavunga>
Component: tieringAssignee: Mohammed Rafi KC <rkavunga>
Status: CLOSED CURRENTRELEASE QA Contact: bugs <bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: mainlineCC: bugs, dlambrig, nchilaka
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.8rc2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1261742 (view as bug list) Environment:
Last Closed: 2016-06-16 13:36:20 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: 1260923, 1261742    

Description Mohammed Rafi KC 2015-09-10 06:03:44 UTC
Description of problem:
glusterd crash when trying to detach , when hot tier is having exactly one brick and cold tier with two bricks. This because of wrong calculation of subvols.


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

mainline

How reproducible:

100%

Steps to Reproduce:
1.create a replica 2 volume with two bricks
2.attach a tier with one brick
3.detach the tier

Actual results:

crash

Expected results:

detach should success.

Additional info:

Comment 1 Vijay Bellur 2015-09-10 06:04:29 UTC
REVIEW: http://review.gluster.org/12145 (tier/glusterd : Disable subvol match check during detach tier) posted (#1) for review on master by mohammed rafi  kc (rkavunga)

Comment 2 Vijay Bellur 2015-09-12 13:23:09 UTC
REVIEW: http://review.gluster.org/12145 (tier/glusterd : Disable subvol match check during detach tier) posted (#3) for review on master by Dan Lambright (dlambrig)

Comment 3 Vijay Bellur 2015-09-14 09:05:28 UTC
COMMIT: http://review.gluster.org/12145 committed in master by Atin Mukherjee (amukherj) 
------
commit 2e041639d8e49e2b768dd43c6f702106250e4da9
Author: Mohammed Rafi KC <rkavunga>
Date:   Thu Sep 10 11:27:42 2015 +0530

    tier/glusterd : Disable subvol match check during detach tier
    
    For tiering, user does not have authorization to choose
    for bricks to detach, so we don't need to whether subvols
    match for the bricks or not.
    
    Change-Id: I7e777ccc1aa261f652f9b158718fcd55185c7794
    BUG: 1261741
    Signed-off-by: Mohammed Rafi KC <rkavunga>
    Reviewed-on: http://review.gluster.org/12145
    Reviewed-by: Dan Lambright <dlambrig>
    Tested-by: NetBSD Build System <jenkins.org>
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Atin Mukherjee <amukherj>

Comment 4 Niels de Vos 2016-06-16 13:36:20 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.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