Bug 1214339

Summary: Incorrect and unclear "vol info" o/p for tiered volume
Product: [Community] GlusterFS Reporter: Anoop <annair>
Component: tieringAssignee: Mohammed Rafi KC <rkavunga>
Status: CLOSED CURRENTRELEASE QA Contact: bugs <bugs>
Severity: medium Docs Contact:
Priority: urgent    
Version: mainlineCC: bugs, nchilaka, sankarshan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-4.1.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1229256 (view as bug list) Environment:
Last Closed: 2018-10-08 09:52:34 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: 1229256, 1260923    

Description Anoop 2015-04-22 13:30:15 UTC
Description of problem:
Incorrect volume info on attaching tier to a disperse volume

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


How reproducible:


Steps to Reproduce:
1. Create a disperse volume 
[root@dhcp35-56 ~]# gluster vol create vol2 disperse 6 redundancy 2 10.70.35.56:/rhs/brick1 10.70.35.67:/rhs/brick1 10.70.35.56:/rhs/brick2 10.70.35.67:/rhs/brick2 10.70.35.56:/rhs/brick3 10.70.35.67:/rhs/brick3 force

2.Attach a tier to this volume 
[root@dhcp35-56 ~]# gluster vol attach-tier vol2 replica 2 10.70.35.56:/rhs/brick4 10.70.35.67:/rhs/brick4  force
volume add-brick: success

3. Check the volume info 
Volume Name: vol2
Type: Tier
Volume ID: b267ba15-82df-4842-bd41-ac233592d5ba
Status: Created
Number of Bricks: 4 x 2 = 8
Transport-type: tcp
Bricks:
Brick1: 10.70.35.67:/rhs/brick4
Brick2: 10.70.35.56:/rhs/brick4
Brick3: 10.70.35.56:/rhs/brick1
Brick4: 10.70.35.67:/rhs/brick1
Brick5: 10.70.35.56:/rhs/brick2
Brick6: 10.70.35.67:/rhs/brick2
Brick7: 10.70.35.56:/rhs/brick3
Brick8: 10.70.35.67:/rhs/brick3

Says "4 x 2 =8", which is incorrect. 

Additionally, the volume info should also show the sub components of the tiered volume. In the above case, the user should be able to figure out that the volume is a combination of disperse (cold) and replica (hot). Output should also explicity tell the bricks in either tiers.

Comment 1 Dan Lambright 2015-04-22 17:15:24 UTC
I believe this was fixed in a separate bug, assigning to Rafi to see.

Comment 2 Mohammed Rafi KC 2015-04-23 05:26:03 UTC
upstream patch : http://review.gluster.org/#/c/10339/

Comment 3 Niels de Vos 2015-05-15 13:07:30 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 4 Amar Tumballi 2018-10-08 09:52:34 UTC
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.