Description of problem: ====================== When we attach a tier to an EC(disperse) volume, the number of bricks gets totally skewed. For eg, when the EC volume was created it shows as below: Number of Bricks: 6 x (8 + 4) = 12 But when we attach a replica pair for tier layer, it converts this blindly assuming all bricks are replica pairs as below: Number of Bricks: 12 x 2 = 24 Also, the type should show as Tiered-Distributed-Disperse instead of just tier Version-Release number of selected component (if applicable): ============================================================ [root@vertigo ~]# gluster --version glusterfs 3.7dev built on Apr 13 2015 07:14:27 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@vertigo ~]# rpm -qa|grep gluster glusterfs-server-3.7dev-0.994.gitf522001.el6.x86_64 glusterfs-rdma-3.7dev-0.994.gitf522001.el6.x86_64 glusterfs-api-3.7dev-0.994.gitf522001.el6.x86_64 glusterfs-regression-tests-3.7dev-0.994.gitf522001.el6.x86_64 glusterfs-3.7dev-0.994.gitf522001.el6.x86_64 glusterfs-devel-3.7dev-0.994.gitf522001.el6.x86_64 glusterfs-resource-agents-3.7dev-0.994.gitf522001.el6.noarch glusterfs-libs-3.7dev-0.994.gitf522001.el6.x86_64 glusterfs-fuse-3.7dev-0.994.gitf522001.el6.x86_64 glusterfs-geo-replication-3.7dev-0.994.gitf522001.el6.x86_64 glusterfs-cli-3.7dev-0.994.gitf522001.el6.x86_64 glusterfs-api-devel-3.7dev-0.994.gitf522001.el6.x86_64 glusterfs-extra-xlators-3.7dev-0.994.gitf522001.el6.x86_64 glusterfs-debuginfo-3.7dev-0.994.gitf522001.el6.x86_64 How reproducible: ================ easily Steps to Reproduce: =================== 1.create a ec volume [root@vertigo ~]# gluster v create rhatvol redundancy 4 vertigo:/rhs/brick1/rhatvol-1 ninja:/rhs/brick1/rhatvol-2 vertigo:/rhs/brick2/rhatvol-3 ninja:/rhs/brick2/rhatvol-4 vertigo:/rhs/brick3/rhatvol-5 ninja:/rhs/brick3/rhatvol-6 vertigo:/rhs/brick4/rhatvol-7 ninja:/rhs/brick4/rhatvol-8 vertigo:/rhs/brick1/rhatvol-9 ninja:/rhs/brick1/rhatvol-10 vertigo:/rhs/brick2/rhatvol-11 ninja:/rhs/brick2/rhatvol-12 force 2. issue a vol info as below: Volume Name: rhatvol Type: Disperse Volume ID: e4594e70-9d75-47ce-b883-60d37cee989b Status: Created Number of Bricks: 1 x (8 + 4) = 12 Transport-type: tcp Bricks: Brick1: vertigo:/rhs/brick1/rhatvol-1 Brick2: ninja:/rhs/brick1/rhatvol-2 Brick3: vertigo:/rhs/brick2/rhatvol-3 Brick4: ninja:/rhs/brick2/rhatvol-4 Brick5: vertigo:/rhs/brick3/rhatvol-5 Brick6: ninja:/rhs/brick3/rhatvol-6 Brick7: vertigo:/rhs/brick4/rhatvol-7 Brick8: ninja:/rhs/brick4/rhatvol-8 Brick9: vertigo:/rhs/brick1/rhatvol-9 Brick10: ninja:/rhs/brick1/rhatvol-10 Brick11: vertigo:/rhs/brick2/rhatvol-11 Brick12: ninja:/rhs/brick2/rhatvol-12 3. Now attach a tier to this Volume Name: rhatvol Type: Tier Volume ID: 7fe23f41-877a-4f37-a86a-5ea937bdf9d7 Status: Started Number of Bricks: 12 x 2 = 24 Transport-type: tcp Bricks: Brick1: ninja:/rhs/brick1/testvol-tier Brick2: vertigo:/rhs/brick1/testvol-tier Brick3: vertigo:/rhs/brick1/testvol-1 Brick4: ninja:/rhs/brick1/testvol-2 Brick5: vertigo:/rhs/brick2/testvol-3 Brick6: ninja:/rhs/brick2/testvol-4 Brick7: vertigo:/rhs/brick3/testvol-5 Brick8: ninja:/rhs/brick3/testvol-6 Brick9: vertigo:/rhs/brick4/testvol-7 Brick10: ninja:/rhs/brick4/testvol-8 Brick11: vertigo:/rhs/brick1/testvol-9 Brick12: ninja:/rhs/brick1/testvol-10 Brick13: vertigo:/rhs/brick2/testvol-11 Brick14: ninja:/rhs/brick2/testvol-12 Brick15: interstellar:/rhs/brick1/testvol-11 Brick16: transformers:/rhs/brick1/testvol-12 Brick17: interstellar:/rhs/brick2/testvol-13 Brick18: transformers:/rhs/brick2/testvol-14 Brick19: interstellar:/rhs/brick1/testvol-15 Brick20: transformers:/rhs/brick1/testvol-16 Brick21: interstellar:/rhs/brick2/testvol-17 Brick22: transformers:/rhs/brick2/testvol-18 Brick23: interstellar:/rhs/brick1/testvol-19 Brick24: transformers:/rhs/brick1/testvol-20 It can be seen that number of bricks equaltion have changed to a wrong format also, the volume type should show something like tier-disperse rather than just tier Actual results: ============== It can be seen that number of bricks equaltion have changed to a wrong format also, the volume type should show something like tier-disperse rather than just tier Expected results: ================ show the vol type as tier-disperse or tier-distributed-disperse also, show no. of bricks with ec equation and seperating out tier layer
upstream patch : http://review.gluster.org/#/c/10339/
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.
This bug was ON_QA status, and on GlusterFS product in bugzilla, we don't have that as a valid status. We are closing it as 'CURRENT RELEASE ' to indicate the availability of the fix, please reopen if found again.