[Bugs] [Bug 1301030] [Snapshot]: Snapshot restore stucks in post validation.

bugzilla at redhat.com bugzilla at redhat.com
Fri Mar 11 08:07:15 UTC 2016


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



--- Comment #2 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/13548 committed in release-3.7 by Rajesh
Joseph (rjoseph at redhat.com) 
------
commit 7ece0b7b04059f79e25cd7bf44218eb4688dd8e3
Author: Avra Sengupta <asengupt at redhat.com>
Date:   Fri Jan 22 16:59:53 2016 +0530

    snapshot: Fix parent volinfo corruption in snapshot restore

        Backport of http://review.gluster.org/#/c/13282/

    Remove parent_volinfo irrespective of success or failure
    of glusterd_lvm_snapshot_remove(). This prevents the
    duplication of the volinfo after the execution of
    glusterd_snapshot_restore().

    When commit fails on originator node, we don't perform
    commit on the other nodes, as a result we don't have a
    backup of /var/lib/glusterd/vols/<volname> in the
    GLUSTERD_TRASH in other nodes. But in the postvalidate
    we try to restore from GLUSTED_TRASH and end up cleaning
    up /var/lib/glusterd/vols/<volname>. Hence moved
    glusterd_snapshot_backup_vol() from commit to prevalidate,
    so that the backup is always available when a cleanup is
    needed.

    Change-Id: Icd471b23faf02bad680b9a1aadc4a0175f7cce8b
    BUG: 1301030
    Signed-off-by: Avra Sengupta <asengupt at redhat.com>
    Reviewed-on: http://review.gluster.org/13282
    Smoke: Gluster Build System <jenkins at build.gluster.com>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Rajesh Joseph <rjoseph at redhat.com>
    (cherry picked from commit 3f78b6b3dc6376945a1b1a7c4af16103901ab746)
    Reviewed-on: http://review.gluster.org/13548

-- 
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=lcV166H9IA&a=cc_unsubscribe


More information about the Bugs mailing list