Bug 1289017

Summary: Failed to show rebalance status if the volume name has 'tier' substring
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Arthy Loganathan <aloganat>
Component: tierAssignee: Bug Updates Notification Mailing List <rhs-bugs>
Status: CLOSED ERRATA QA Contact: Sweta Anandpara <sanandpa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: byarlaga, hgowtham, nchilaka, rhs-bugs, sankarshan, storage-qa-internal
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.7.5-12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-01 06:01:15 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: 1260783    
Attachments:
Description Flags
server logs none

Description Arthy Loganathan 2015-12-07 09:04:33 UTC
Description of problem:
Failed to show rebalance status if the volume name has 'tier' substring

Version-Release number of selected component (if applicable):
glusterfs-server-3.7.5-8.el7rhgs.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Create a volume with volume name tiervol
2. Start the rebalance on volume
3. Do gluster volume rebalance status.

Actual results:
Rebalance status should be displayed.

Expected results:
Errorring out with the message, "volume rebalance: tiervol: failed: volume tiervol is not a tier volume."

Additional info:
[root@node71 ~]# gluster vol info
 
Volume Name: tiervol
Type: Distributed-Replicate
Volume ID: 4a458535-e1d4-4e54-b4fd-47661cb9d0b5
Status: Created
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: 10.70.46.236:/bricks/brick0/tiervol_brick0
Brick2: 10.70.46.203:/bricks/brick0/tiervol_brick1
Brick3: 10.70.46.236:/bricks/brick1/tiervol_brick2
Brick4: 10.70.46.203:/bricks/brick1/tiervol_brick3
Options Reconfigured:
performance.readdir-ahead: on
[root@node71 ~]# 

[root@node71 ~]# gluster volume rebalance tiervol fix-layout start
volume rebalance: tiervol: success: Rebalance on tiervol has been started successfully. Use rebalance status command to check status of the rebalance process.
ID: 6e12d9ff-57f5-4a5f-bd06-2afd2cf984e1

[root@node71 ~]# gluster volume rebalance tiervol status
volume rebalance: tiervol: failed: volume tiervol is not a tier volume.
[root@node71 ~]#

Comment 2 hari gowtham 2015-12-07 10:19:33 UTC
This patch will be fixed by the patch mentioned below.

http://review.gluster.org/#/c/12883/ (upstream)

Comment 4 hari gowtham 2015-12-17 12:52:53 UTC
The Downstream patch for that is:
https://code.engineering.redhat.com/gerrit/#/c/63889/
(Merged)

Comment 5 Sweta Anandpara 2015-12-22 04:13:46 UTC
Tested and verified this on the build glusterfs-3.7.5-12.el7rhgs.x86_64

Tried out different combinations of volume name (with tier substring in it) and performed a rebalance, which worked as expected. 

Moving this bug to verified in 3.0.2. Detailed logs are attached!

Comment 6 Sweta Anandpara 2015-12-22 04:15:02 UTC
Created attachment 1108557 [details]
server logs

Comment 8 errata-xmlrpc 2016-03-01 06:01:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0193.html