[Bugs] [Bug 1208386] New: Data Tiering:Replica type volume not getting converted to tier type after attaching tier

bugzilla at redhat.com bugzilla at redhat.com
Thu Apr 2 06:58:05 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1208386

            Bug ID: 1208386
           Summary: Data Tiering:Replica type volume not getting converted
                    to tier type after attaching tier
           Product: GlusterFS
           Version: mainline
         Component: tiering
          Severity: high
          Assignee: bugs at gluster.org
          Reporter: nchilaka at redhat.com
        QA Contact: bugs at gluster.org
                CC: bugs at gluster.org



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 at 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 at interstellar ~]# gluster v start replica
volume start: replica: success
[root at 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 at 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 at 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 at interstellar ~]# gluster v attach-tier replica
interstellar:/pavanbrick2/replica/hb1 transformers:/pavanbrick2/replica/hb1
volume add-brick: success
[root at 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 at 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 at interstellar ~]# 





[root at 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 at 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 at 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 at transformers samba]# 





[root at 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 at 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 at 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 at interstellar samba]#

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list