Bug 1336813

Summary: [tiering]: error message shown during the failure of detach tier commit isn't intuitive
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: krishnaram Karthick <kramdoss>
Component: tierAssignee: hari gowtham <hgowtham>
Status: CLOSED WONTFIX QA Contact: Nag Pavan Chilakam <nchilaka>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: hgowtham, rhs-bugs
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1337227 1346032 1346039 (view as bug list) Environment:
Last Closed: 2018-11-08 19:15:41 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: 1337227, 1346032, 1346039    

Description krishnaram Karthick 2016-05-17 13:41:05 UTC
Description of problem:
When detach tier commit is attempted before the tier-rebalance is complete, it fails with the following error message.


# gluster v tier spiderman detach commit
Removing tier can result in data loss. Do you want to Continue? (y/n) y
volume detach-tier commit: failed: Brick's in Hot tier is not decommissioned yet. Use gluster volume detach-tier <VOLNAME> <start | commit | force> command instead
Tier command failed

The following portion of the error message isn't clear.

Use gluster volume detach-tier <VOLNAME> <start | commit | force> command instead

We should ask the user either to wait till tier-rebalance is complete or use force option to forcefully detach the tier

Version-Release number of selected component (if applicable):
glusterfs-3.7.9-5.el7rhgs.x86_64

How reproducible:
Always

Steps to Reproduce:
1. On a tiered volume, run detach tier commit before running detach tier start

Comment 2 Dan Lambright 2016-05-19 14:39:40 UTC
will change the message to 

volume detach tier commit: failed: Bricks in hot tier are not decommissioned yet. Use gluster volume tier <VOLNAME> detach start

Comment 4 hari gowtham 2017-08-16 11:28:14 UTC
fixed by https://review.gluster.org/#/c/13365/ (master)

Comment 5 hari gowtham 2018-11-08 19:15:41 UTC
As tier is not being actively developed, I'm closing this bug. Feel free to open it if necessary.