+++ This bug was initially created as a clone of Bug #1221270 +++
Description of problem:
Operations like detach-tier commit gives success for a non-tiered volume also
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.create a tired volume
2.detach the tier
3.again try to detach (detach-tier commit)
--- Additional comment from Anand Avati on 2015-05-13 11:15:37 EDT ---
REVIEW: http://review.gluster.org/10773 (tier: Do not allow detach-tier commands on a non-tiered volume) posted (#1) for review on master by mohammed rafi kc (firstname.lastname@example.org)
--- Additional comment from Anand Avati on 2015-05-28 01:29:49 EDT ---
REVIEW: http://review.gluster.org/10773 (tier: Do not allow detach-tier commands on a non-tiered volume) posted (#2) for review on master by mohammed rafi kc (email@example.com)
--- Additional comment from Anand Avati on 2015-05-28 10:01:32 EDT ---
COMMIT: http://review.gluster.org/10773 committed in master by Kaushal M (firstname.lastname@example.org)
Author: Mohammed Rafi KC <email@example.com>
Date: Wed May 13 20:33:45 2015 +0530
tier: Do not allow detach-tier commands on a non-tiered volume
Signed-off-by: Mohammed Rafi KC <firstname.lastname@example.org>
Reviewed-by: Atin Mukherjee <email@example.com>
Reviewed-by: Raghavendra G <firstname.lastname@example.org>
Reviewed-by: Kaushal M <email@example.com>
Tested-by: Gluster Build System <firstname.lastname@example.org>
Tested-by: NetBSD Build System
this bug is verified and found no issues.
[root@rhsqa14-vm1 ~]# gluster v detach-tier moon start
volume detach-tier start: failed: volume moon is not a tier volume
[root@rhsqa14-vm1 ~]# glusterfs --version
glusterfs 3.7.1 built on Jun 9 2015 02:31:54
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2013 Red Hat, Inc. <http://www.redhat.com/>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
It is licensed to you under your choice of the GNU Lesser
General Public License, version 3 or any later version (LGPLv3
or later), or the GNU General Public License, version 2 (GPLv2),
in all cases as published by the Free Software Foundation.
[root@rhsqa14-vm1 ~]# rpm -qa | grep gluster
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.