Source: glusterfs
Version: 3.5.2-1
Severity: normal
Tags: patch upstream fixed-upstream
Forwarded: https://bugzilla.redhat.com/show_bug.cgi?id=1117888
Control: fixed -1 3.7.7-1

Hi

When trying to enable quotas on a GlusterFS, the operation fails with

# gluster volume quota test-volume enable
quota: Could not start quota auxiliary mount
Quota command failed. Please check the cli logs for more details

This is know in https://bugzilla.redhat.com/show_bug.cgi?id=1117888
and was addressed via http://review.gluster.org/13215 .

I know it is now late for the next jessie point release, but might we
shedule the fix for the next one?

Regards,
Salvatore
diff -Nru glusterfs-3.5.2/debian/changelog glusterfs-3.5.2/debian/changelog
--- glusterfs-3.5.2/debian/changelog	2016-05-27 15:13:57.000000000 +0200
+++ glusterfs-3.5.2/debian/changelog	2016-05-30 15:34:15.000000000 +0200
@@ -1,3 +1,11 @@
+glusterfs (3.5.2-2+deb8u3) jessie; urgency=medium
+
+  * Non-maintainer upload.
+  * quota: fix could not start auxiliary mount issue.
+    Closes: #nnnnnn
+
+ -- Salvatore Bonaccorso <car...@debian.org>  Mon, 30 May 2016 15:32:47 +0200
+
 glusterfs (3.5.2-2+deb8u2) jessie-proposed-updates; urgency=medium
 
   * Add missing glusterd hook script to glusterfs-server package.
diff -Nru glusterfs-3.5.2/debian/patches/03-quota-fix-could-not-start-auxiliary-mount-issue.diff glusterfs-3.5.2/debian/patches/03-quota-fix-could-not-start-auxiliary-mount-issue.diff
--- glusterfs-3.5.2/debian/patches/03-quota-fix-could-not-start-auxiliary-mount-issue.diff	1970-01-01 01:00:00.000000000 +0100
+++ glusterfs-3.5.2/debian/patches/03-quota-fix-could-not-start-auxiliary-mount-issue.diff	2016-05-30 15:34:15.000000000 +0200
@@ -0,0 +1,37 @@
+From e61a2171f2389ec6cf1be962b68609c2e763cbd9 Mon Sep 17 00:00:00 2001
+From: Manikandan Selvaganesh <mselv...@redhat.com>
+Date: Mon, 11 Jan 2016 18:08:27 +0530
+Subject: [PATCH] quota : fix could not start auxiliary mount issue
+
+In versions older than 3.7, when trying to enable
+quota, the following message appears :"quota: Could
+not start quota auxiliary mount". It was because,
+/var/run/gluster was not getting created in cli side.
+In 3.7, the code has been moved to glusterd and we are 
+making use of sys_mkdir.
+
+3.6 fix -> http://review.gluster.org/#/c/13308/
+
+
+Change-Id: Id4360409f76b57c0f676fe2b859f3647c4340575
+BUG: 1117888
+Signed-off-by: Manikandan Selvaganesh <mselv...@redhat.com>
+Reviewed-on: http://review.gluster.org/13215
+Smoke: Gluster Build System <jenk...@build.gluster.com>
+CentOS-regression: Gluster Build System <jenk...@build.gluster.com>
+NetBSD-regression: NetBSD Build System <jenk...@build.gluster.org>
+Reviewed-by: Niels de Vos <nde...@redhat.com>
+Reviewed-by: Vijaikumar Mallikarjuna <vmall...@redhat.com>
+---
+
+--- a/cli/src/cli-cmd-volume.c
++++ b/cli/src/cli-cmd-volume.c
+@@ -1029,7 +1029,7 @@ gf_cli_create_auxiliary_mount (char *vol
+         }
+ 
+         GLUSTERD_GET_QUOTA_AUX_MOUNT_PATH (mountdir, volname, "/");
+-        ret = mkdir (mountdir, 0777);
++        ret = mkdir_p (mountdir, 0700, _gf_true);
+         if (ret && errno != EEXIST) {
+                 gf_log ("cli", GF_LOG_ERROR, "Failed to create auxiliary mount "
+                         "directory %s. Reason : %s", mountdir,
diff -Nru glusterfs-3.5.2/debian/patches/series glusterfs-3.5.2/debian/patches/series
--- glusterfs-3.5.2/debian/patches/series	2016-05-27 15:13:57.000000000 +0200
+++ glusterfs-3.5.2/debian/patches/series	2016-05-30 15:34:15.000000000 +0200
@@ -1,2 +1,3 @@
 01-CVE-2014-3619.diff
 02-nfs-unix-domain-socket-created-as-fifo.diff
+03-quota-fix-could-not-start-auxiliary-mount-issue.diff

Reply via email to