Bug 1208386

Summary: Data Tiering:Replica type volume not getting converted to tier type after attaching tier
Product: [Community] GlusterFS Reporter: Nag Pavan Chilakam <nchilaka>
Component: tieringAssignee: Joseph Elwin Fernandes <josferna>
Status: CLOSED CURRENTRELEASE QA Contact: bugs <bugs>
Severity: high Docs Contact:
Priority: high    
Version: mainlineCC: bugs, dlambrig, sankarshan
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.7dev-0.869.gitf5e4c94.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1229245 (view as bug list) Environment:
Last Closed: 2016-02-14 04:15:21 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: 1186580, 1229245, 1260923    

Description Nag Pavan Chilakam 2015-04-02 06:58:05 UTC
Description of problem:
=====================
Attaching a tier to a replica volume is not getting converted to a tier-replica volume.
Instead it is just getting converted to dist-rep volume with no tier gfid issued for each brick


Version-Release number of selected component (if applicable):
===========================================================
upstream nightly
glusterfs 3.7dev built on Mar 31 2015 01:05:54
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GlusterFS under the terms of the GNU General Public License.



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


Steps to Reproduce:
==================
1.create a pure replica volume with two bricks which are replica of each other ie 1x2
2.now attach a tier to it
3.the volume should now get converted to tier-dist-rep volume but is getting converted to just dist-rep vol

Actual results:
==============
the volume should now get converted to tier-dist-rep volume but is getting converted to just dist-rep vol

Expected results:
================
support replica volume to be converted to tier type


Additional info(cli):
=================
[root@interstellar ~]# gluster v create replica replica 2 interstellar:/pavanbrick1/replica/b1 transformers:/pavanbrick1/replica/b1
volume create: replica: success: please start the volume to access data
[root@interstellar ~]# gluster v start replica
volume start: replica: success
[root@interstellar ~]# gluster v status replica
Status of volume: replica
Gluster process                             TCP Port  RDMA Port  Online  Pid
------------------------------------------------------------------------------
Brick interstellar:/pavanbrick1/replica/b1  49155     0          Y       62403
Brick transformers:/pavanbrick1/replica/b1  49154     0          Y       21852
NFS Server on localhost                     2049      0          Y       62423
Self-heal Daemon on localhost               N/A       N/A        Y       62431
NFS Server on transformers.lab.eng.blr.redh
at.com                                      2049      0          Y       21876
Self-heal Daemon on transformers.lab.eng.bl
r.redhat.com                                N/A       N/A        Y       21883
 
Task Status of Volume replica
------------------------------------------------------------------------------
There are no active volume tasks
 
[root@interstellar ~]# gluster v status replica
Status of volume: replica
Gluster process                             TCP Port  RDMA Port  Online  Pid
------------------------------------------------------------------------------
Brick interstellar:/pavanbrick1/replica/b1  49155     0          Y       62403
Brick transformers:/pavanbrick1/replica/b1  49154     0          Y       21852
NFS Server on localhost                     2049      0          Y       62423
Self-heal Daemon on localhost               N/A       N/A        Y       62431
NFS Server on transformers.lab.eng.blr.redh
at.com                                      2049      0          Y       21876
Self-heal Daemon on transformers.lab.eng.bl
r.redhat.com                                N/A       N/A        Y       21883
 
Task Status of Volume replica
------------------------------------------------------------------------------
There are no active volume tasks
 
[root@interstellar ~]# gluster v info replica
 
Volume Name: replica
Type: Replicate
Volume ID: 6b567ac5-370f-4ed1-876d-bb8c7bd1f589
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: interstellar:/pavanbrick1/replica/b1
Brick2: transformers:/pavanbrick1/replica/b1
[root@interstellar ~]# gluster v attach-tier replica interstellar:/pavanbrick2/replica/hb1 transformers:/pavanbrick2/replica/hb1
volume add-brick: success
[root@interstellar ~]# gluster v status replica
Status of volume: replica
Gluster process                             TCP Port  RDMA Port  Online  Pid
------------------------------------------------------------------------------
Brick transformers:/pavanbrick2/replica/hb1 49155     0          Y       22084
Brick interstellar:/pavanbrick2/replica/hb1 49156     0          Y       62620
Brick interstellar:/pavanbrick1/replica/b1  49155     0          Y       62403
Brick transformers:/pavanbrick1/replica/b1  49154     0          Y       21852
NFS Server on localhost                     2049      0          Y       62638
Self-heal Daemon on localhost               N/A       N/A        Y       62646
NFS Server on transformers.lab.eng.blr.redh
at.com                                      2049      0          Y       22102
Self-heal Daemon on transformers.lab.eng.bl
r.redhat.com                                N/A       N/A        Y       22110
 
Task Status of Volume replica
------------------------------------------------------------------------------
There are no active volume tasks
 
[root@interstellar ~]# gluster v info replica
 
Volume Name: replica
Type: Distributed-Replicate
Volume ID: 6b567ac5-370f-4ed1-876d-bb8c7bd1f589
Status: Started
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: transformers:/pavanbrick2/replica/hb1
Brick2: interstellar:/pavanbrick2/replica/hb1
Brick3: interstellar:/pavanbrick1/replica/b1
Brick4: transformers:/pavanbrick1/replica/b1
[root@interstellar ~]# 





[root@transformers samba]# getfattr -d -e hex -m . /pavanbrick2/replica/hb1/
getfattr: Removing leading '/' from absolute path names
# file: pavanbrick2/replica/hb1/
security.selinux=0x756e636f6e66696e65645f753a6f626a6563745f723a66696c655f743a733000
trusted.gfid=0x00000000000000000000000000000001
trusted.glusterfs.volume-id=0x6b567ac5370f4ed1876dbb8c7bd1f589

[root@transformers samba]# getfattr -d -e hex -m . /pavanbrick1/replica/b1/
getfattr: Removing leading '/' from absolute path names
# file: pavanbrick1/replica/b1/
security.selinux=0x756e636f6e66696e65645f753a6f626a6563745f723a66696c655f743a733000
trusted.gfid=0x00000000000000000000000000000001
trusted.glusterfs.dht=0x000000010000000000000000ffffffff
trusted.glusterfs.volume-id=0x6b567ac5370f4ed1876dbb8c7bd1f589

[root@transformers samba]# gluster --version
glusterfs 3.7dev built on Mar 31 2015 01:05:54
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GlusterFS under the terms of the GNU General Public License.
[root@transformers samba]# 





[root@interstellar samba]# getfattr -d -e hex -m . /pavanbrick2/replica/hb1/
getfattr: Removing leading '/' from absolute path names
# file: pavanbrick2/replica/hb1/
security.selinux=0x756e636f6e66696e65645f753a6f626a6563745f723a66696c655f743a733000
trusted.gfid=0x00000000000000000000000000000001
trusted.glusterfs.volume-id=0x6b567ac5370f4ed1876dbb8c7bd1f589

[root@interstellar samba]# getfattr -d -e hex -m . /pavanbrick1/replica/b1/
getfattr: Removing leading '/' from absolute path names
# file: pavanbrick1/replica/b1/
security.selinux=0x756e636f6e66696e65645f753a6f626a6563745f723a66696c655f743a733000
trusted.gfid=0x00000000000000000000000000000001
trusted.glusterfs.dht=0x000000010000000000000000ffffffff
trusted.glusterfs.volume-id=0x6b567ac5370f4ed1876dbb8c7bd1f589

[root@interstellar samba]# gluster --version
glusterfs 3.7dev built on Mar 31 2015 01:05:54
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GlusterFS under the terms of the GNU General Public License.
[root@interstellar samba]#

Comment 1 Dan Lambright 2015-04-21 18:40:49 UTC
This problem is similar to bug 1207204, it was fixed by 10054- the new volume name is "tier" after the attach occurs. 

The gluster v info will be updated and this is being track separately by bug 1206546.

Comment 2 Niels de Vos 2015-05-15 13:07:38 UTC
This change should not be in "ON_QA", the patch posted for this bug is only available in the master branch and not in a release yet. Moving back to MODIFIED until there is an beta release for the next GlusterFS version.

Comment 3 Joseph Elwin Fernandes 2016-02-14 04:15:21 UTC
This bug is fixed in https://bugzilla.redhat.com/show_bug.cgi?id=1207204