Bug 1214666 - Data Tiering:command prompt hangs when fetching quota list of a tiered volume
Summary: Data Tiering:command prompt hangs when fetching quota list of a tiered volume
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: tiering
Version: mainline
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
Assignee: Joseph Elwin Fernandes
QA Contact: bugs@gluster.org
URL:
Whiteboard:
Depends On: 1214219 1214222 1219048 1219848 1224075 1224077
Blocks: qe_tracker_everglades 1229259 1260923
TreeView+ depends on / blocked
 
Reported: 2015-04-23 10:49 UTC by Nag Pavan Chilakam
Modified: 2016-06-20 00:01 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
: 1229259 (view as bug list)
Environment:
Last Closed: 2016-02-14 06:39:03 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Nag Pavan Chilakam 2015-04-23 10:49:26 UTC
Description of problem:
======================
When we enable a quota on a regular volume and then attach a tier, and then try to list quota settings on this tiered volume, the command prompt hangs indefinitely 


Version-Release number of selected component (if applicable):
============================================================
[root@zod ~]# gluster --version
glusterfs 3.7dev built on Apr 17 2015 14:27:16
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@zod ~]# rpm -qa|grep gluster
glusterfs-api-3.7dev-0.1009.git8b987be.el7.centos.x86_64
glusterfs-cli-3.7dev-0.1009.git8b987be.el7.centos.x86_64
glusterfs-3.7dev-0.1009.git8b987be.el7.centos.x86_64
glusterfs-server-3.7dev-0.1009.git8b987be.el7.centos.x86_64
glusterfs-fuse-3.7dev-0.1009.git8b987be.el7.centos.x86_64
glusterfs-libs-3.7dev-0.1009.git8b987be.el7.centos.x86_64

Steps to Reproduce:
==================
1.create a regular volume
2.enable quota on the volume
3.attach a tier to this volume to make it tier volume
4. now issue a "gluster v quota vol3 list" to display quota settings,
it can be seen that the command prompt freezes indefinitely, till the user intervenes with ctrl+c as below
                  Path                   Hard-limit Soft-limit   Used  Available  Soft-limit exceeded? Hard-limit exceeded?
---------------------------------------------------------------------------------------------------------------------------
^C




Expected results:
================
should be able to get quota settings even for tierd volume

Additional info:
================
[root@zod ~]# gluster v create vol3 replica 2 10.70.35.144:/brick_100G_1/vol3 yarrow.lab.eng.blr.redhat.com:/brick_100G_1/vol3 10.70.35.144:/brick_100G_2/vol3 yarrow.lab.eng.blr.redhat.com:/brick_100G_2/vol3 force
volume create: vol3: success: please start the volume to access data
[root@zod ~]# gluster v start vol3
volume start: vol3: success
[root@zod ~]# gluster v info vol3
 
Volume Name: vol3
Type: Distributed-Replicate
Volume ID: f324afbd-390c-434c-b0f1-d9222218014a
Status: Started
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: 10.70.35.144:/brick_100G_1/vol3
Brick2: yarrow.lab.eng.blr.redhat.com:/brick_100G_1/vol3
Brick3: 10.70.35.144:/brick_100G_2/vol3
Brick4: yarrow.lab.eng.blr.redhat.com:/brick_100G_2/vol3

[root@zod ~]# gluster v quota vol3 enable 
glvolume quota : success

[root@zod ~]# gluster v set vol3 features.uss on
volume set: success

[root@zod ~]# gluster v info vol3
 
Volume Name: vol3
Type: Distributed-Replicate
Volume ID: f324afbd-390c-434c-b0f1-d9222218014a
Status: Started
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: 10.70.35.144:/brick_100G_1/vol3
Brick2: yarrow.lab.eng.blr.redhat.com:/brick_100G_1/vol3
Brick3: 10.70.35.144:/brick_100G_2/vol3
Brick4: yarrow.lab.eng.blr.redhat.com:/brick_100G_2/vol3
Options Reconfigured:
features.uss: on
features.quota: on
[root@zod ~]# gluster v quota vol3 list
quota: No quota configured on volume vol3

[root@zod ~]# gluster v quota vol3 limit-usage / 20GB
volume quota : success
[root@zod ~]# gluster v quota vol3 limit-usage / 20GB 90%
volume quota : success
[root@zod ~]# gluster v quota vol3 list
                  Path                   Hard-limit Soft-limit   Used  Available  Soft-limit exceeded? Hard-limit exceeded?
---------------------------------------------------------------------------------------------------------------------------
/                                         20.0GB       90%      0Bytes  20.0GB              No                   No
[root@zod ~]# gluster v quota vol3 list
                  Path                   Hard-limit Soft-limit   Used  Available  Soft-limit exceeded? Hard-limit exceeded?
---------------------------------------------------------------------------------------------------------------------------
/                                         20.0GB       90%     200.6MB  19.8GB              No                   No
[root@zod ~]# 
[root@zod ~]# 
[root@zod ~]# gluster v attach-tier vol3 replica 2 moonshine.lab.eng.blr.redhat.com:/ssdbricks_75G_1/vol3  yarrow.lab.eng.blr.redhat.com:/ssdbricks_75G_1/vol3 moonshine.lab.eng.blr.redhat.com:/ssdbricks_75G_2/vol3 yarrow.lab.eng.blr.redhat.com:/ssdbricks_75G_2/vol3 force
volume add-brick: success
[root@zod ~]# gluster v quota vol3 list
                  Path                   Hard-limit Soft-limit   Used  Available  Soft-limit exceeded? Hard-limit exceeded?
---------------------------------------------------------------------------------------------------------------------------
^C
[root@zod ~]# gluster v detach-tier vol3
volume remove-brick unknown: success
[root@zod ~]# gluster v quota vol3 list
                  Path                   Hard-limit Soft-limit   Used  Available  Soft-limit exceeded? Hard-limit exceeded?
---------------------------------------------------------------------------------------------------------------------------
/                                         20.0GB       90%       1.2GB  18.8GB              No                   No
[root@zod ~]# gluster v info vol3
 
Volume Name: vol3
Type: Distributed-Replicate
Volume ID: f324afbd-390c-434c-b0f1-d9222218014a
Status: Started
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: 10.70.35.144:/brick_100G_1/vol3
Brick2: yarrow.lab.eng.blr.redhat.com:/brick_100G_1/vol3
Brick3: 10.70.35.144:/brick_100G_2/vol3
Brick4: yarrow.lab.eng.blr.redhat.com:/brick_100G_2/vol3
Options Reconfigured:
features.uss: on
features.quota: on

Comment 1 Joseph Elwin Fernandes 2015-05-01 06:39:36 UTC
This bug depends on these bugs to be fixed

bug 1214219: Data Tiering:Enabling quota command fails with "quota command failed : Commit failed on localhost"
http://review.gluster.org/10474 
This will fix the hang that is caused due to incorrect graph built in vol file of quotad


bug 1214222: Directories are missing on the mount point after attaching tier to distribute replicate volume. 
http://review.gluster.org/10363 
This will fix the disappearing of the directories, and hence disappearing of the qouta list, when a tier is attached.

Comment 2 Niels de Vos 2015-05-15 13:07:42 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 3 Joseph Elwin Fernandes 2016-02-14 06:39:03 UTC
This bug depends on https://bugzilla.redhat.com/show_bug.cgi?id=1214222 and 
https://bugzilla.redhat.com/show_bug.cgi?id=1214219.

Both of them are closed


Note You need to log in before you can comment on or make changes to this bug.