Bug 1905009 - [Snapshot] Creation of snapshot using "force" option fails
Summary: [Snapshot] Creation of snapshot using "force" option fails
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: snapshot
Version: rhgs-3.5
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Srijan Sivakumar
QA Contact: Sayalee
URL:
Whiteboard:
Depends On:
Blocks: 1798861
TreeView+ depends on / blocked
 
Reported: 2020-12-07 11:17 UTC by Sayalee
Modified: 2021-07-05 15:36 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-05 15:33:40 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1798861 1 None None None 2023-03-15 08:33:22 UTC

Description Sayalee 2020-12-07 11:17:41 UTC
Describe the issue: 
===================
Came across this issue while verifying the doc bug[1]; on a 2X3 volume, failed to create snapshot if 1 brick of the volume is down.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1798861


Is this issue reproducible?
==========================
Always;
Was able to reproduce the issue on RHGS 3.5.3 build (6.0.45) and also on RHGS 3.3.0 build (3.8.4-44)


Steps to Reproduce:
==================
1. Create a X3 volume (1X3 or 2X3) and start it.
2. Kill one brick of the volume.
3. Create a snapshot of the volume using force option:
   # gluster snapshot create <snap-name> <vol-name> force


Actual results:
===============
Snapshot creation using 'force' even if one brick is down fails-

# gluster snapshot create snap2-post-killbrick vol1
snapshot create: failed: One or more bricks are not running. Please run volume status command to see brick status.
Please start the stopped brick and then issue snapshot create command or use [force] option in snapshot create to override this behavior.
Snapshot command failed

# gluster snapshot create snap2-post-killbrick vol1 force
snapshot create: failed: One or more bricks may be down.
Snapshot command failed


Expected results:
=================
As the RHGS Admin guide mentions-
""
Chpt : 8.2. Creating Snapshots
force - Snapshot creation will fail if any brick is down. In a n-way replicated Red Hat Gluster Storage volume where n >= 3 snapshot is allowed even if some of the bricks are down. In such case quorum is checked. Quorum is checked only when the force option is provided, else by-default the snapshot create will fail if any brick is down. Refer the Overview section for more details on quorum. 
""

Since the quorum was met in the above steps performed, snapshot creation should have been successful using force.


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