[Bugs] [Bug 1449782] quota: limit-usage command failed with error " Failed to start aux mount"

bugzilla at redhat.com bugzilla at redhat.com
Mon Jun 19 04:56:47 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1449782



--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/17242 committed in release-3.8 by jiffin
tony Thottan (jthottan at redhat.com) 
------
commit 2dcb19813e7dbb2afd2f482ed9a3401371325b1d
Author: Sanoj Unnikrishnan <sunnikri at redhat.com>
Date:   Wed Mar 22 15:02:12 2017 +0530

    Fixes quota aux mount failure

    The aux mount is created on the first limit/remove_limit/list command
    and it remains until volume is stopped / deleted / (quota is disabled)
    , where we do a lazy unmount. If the process is uncleanly terminated,
    then the mount entry remains and we get (Transport disconnected) error
    on subsequent attempts to run quota list/limit-usage/remove commands.

    Second issue, There is also a risk of inadvertent rm -rf on the
    /var/run/gluster causing data loss for the user. Ideally, /var/run is
    a temp path for application use and should not cause any data loss to
    persistent storage.

    Solution:
    1) unmount the aux mount after each use.
    2) clean stale mount before mounting, if any.

    One caveat with doing mount/unmount on each command is that we cannot
    use same mount point for both list and limit commands.
    The reason for this is that list command needs mount to be accessible
    in cli after response from glusterd, So it could be unmounted by a
    limit command if executed in parallel (had we used same mount point)
    Hence we use separate mount points for list and limit commands.

    > Reviewed-on: https://review.gluster.org/16938
    > NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    > Smoke: Gluster Build System <jenkins at build.gluster.org>
    > Reviewed-by: Manikandan Selvaganesh <manikandancs333 at gmail.com>
    > CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    > Reviewed-by: Raghavendra G <rgowdapp at redhat.com>
    > Reviewed-by: Atin Mukherjee <amukherj at redhat.com>
    > (cherry picked from commit 2ae4b4058691b324535d802f4e6d24cce89a10e5)

    Change-Id: I4f9e39da2ac2b65941399bffb6440db8a6ba59d0
    BUG: 1449782
    Signed-off-by: Sanoj Unnikrishnan <sunnikri at redhat.com>
    Reviewed-on: https://review.gluster.org/17242
    Smoke: Gluster Build System <jenkins at build.gluster.org>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    Reviewed-by: Raghavendra G <rgowdapp at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=wBw9ZMD66e&a=cc_unsubscribe


More information about the Bugs mailing list