Bug 1250828

Summary: Tiering: segfault when trying to rename a file
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: high    
Version: mainlineCC: bugs, rgowdapp
Target Milestone: ---Keywords: Reopened, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.8rc2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1254438 (view as bug list) Environment:
Last Closed: 2016-06-16 13:28:57 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: 1254438, 1260923    

Description Mohammed Rafi KC 2015-08-06 06:06:43 UTC
Description of problem:

On a tier volume with both cold and hot tiers as pure distribute, when trying to move a promoted/demoted file, mount process crashed (if build with debug enable, other wise assertion failure).

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

mainline

How reproducible:

100%

Steps to Reproduce:
1.create a tier volume (cold and hot tier as pure distribute)
2.create some file on mount point
3.let some files promote/demote
4.rename a promoted/demoted file

Actual results:

mount crash

Expected results:

mount should not crash

Additional info:

binary's are build with --debug-enable flag

Comment 1 Mohammed Rafi KC 2015-08-06 06:08:32 UTC
when creating a link file, dictionary used for passing xattributes contains some keys used for lookup.

Comment 2 Anand Avati 2015-08-06 06:12:19 UTC
REVIEW: http://review.gluster.org/11838 (dht/tiering : create new dictionary during migration) posted (#2) for review on master by mohammed rafi  kc (rkavunga)

Comment 3 Anand Avati 2015-08-06 13:01:50 UTC
COMMIT: http://review.gluster.org/11838 committed in master by Raghavendra G (rgowdapp) 
------
commit a3faffb259d5288907fac33a2822a8f61c3e86fe
Author: Mohammed Rafi KC <rkavunga>
Date:   Wed Aug 5 19:34:01 2015 +0530

    dht/tiering : create new dictionary during migration
    
    To avoid setting wrong xattr during creating link file
    
    Change-Id: Iad8de3521eae17e510035ed42e3e01933d647096
    BUG: 1250828
    Signed-off-by: Mohammed Rafi KC <rkavunga>
    Reviewed-on: http://review.gluster.org/11838
    Reviewed-by: N Balachandran <nbalacha>
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Dan Lambright <dlambrig>
    Reviewed-by: Raghavendra G <rgowdapp>

Comment 4 Nagaprasad Sathyanarayana 2015-10-25 14:54:19 UTC
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.

Comment 5 Niels de Vos 2016-06-16 13:28:57 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