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
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.
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.
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