Bug 1236149

Summary: creating a snapshot with force option is no longer useful when one of the node in the cluster is down
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: snapshotAssignee: Bug Updates Notification Mailing List <rhs-bugs>
Status: CLOSED WORKSFORME QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: asriram, mlawrenc, rcyriac, rhs-bugs, storage-qa-internal, sunkumar
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
If a node/brick is down, the snapshot create command fails even with the force option.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-02 13:32:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1216951    

Description SATHEESARAN 2015-06-26 17:14:06 UTC
Description of problem:
-----------------------
Creating a gluster volume level snapshot, while one of the node in the 'Trusted Storage Pool' ( gluster cluster ) is down, does provides the warning that one of the node is down and suggests to use 'force' option to override this behaviour.

But when using 'force' option in creating snapshot again throws the errors out saying that quorum is not met.

Thus the suggestion to create snapshot with force option becomes a wrong suggestion


Version-Release number of selected component (if applicable):
-------------------------------------------------------------
glusterfs-3.7.1-5.el6rhs

How reproducible:
-----------------
Always

Steps to Reproduce:
--------------------
1. Create a 'Trusted Storage Pool'
2. Create a distributed volume and start it
3. Stop glusterd in one of the node
4. Create snapshot
5. Create snapshot with force option 

Actual results:
---------------
Snapshot create failed and volume snapshot suggested to use 'force' option to override this behaviour.
Using 'force' option again failed saying that quorum is not met

Expected results:
----------------
1. If the snapshot create is not allowed, when one of the node is down, then it should be explicitly informed.
2. Suggestion to use 'force' with snapshot create should be removed

Additional info:
----------------
Below is the console log, where snapshot creation is attempted, when one of the node in the cluster is down.

[root@~]# gluster snapshot create snap1 r3v
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

[root@ ~]# gluster snapshot create snap1 r3v force
snapshot create: failed: One or more bricks may be down.
Snapshot command failed

Comment 1 monti lawrence 2015-07-22 19:24:52 UTC
Doc text is edited. Please sign off to be included in Known Issues.

Comment 2 Avra Sengupta 2015-07-27 07:17:46 UTC
Doc text looks good. Verified

Comment 7 Sunny Kumar 2018-04-02 13:32:23 UTC
If a node/brick is down, the we can not proceed with snapshot creation and this behavior can not be override with force option.