Bug 1754477

Summary: Thin-arbiter: Raise error in CLI if replica-count is not 2
Product: [Community] GlusterFS Reporter: Vishal Pandey <vpandey>
Component: glusterdAssignee: Vishal Pandey <vpandey>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: amukherj, bugs, srakonde
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-14 09:39:09 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:

Description Vishal Pandey 2019-09-23 11:37:40 UTC
Description of problem:

When creating a thin-arbiter volume, if the replica-count provided is other than 2, the cli command fails(which is the expected behaviour) but it fails once transaction is committed on localhost.

This, ideally should be handled in cli itself.

Version-Release number of selected component (if applicable): v7


How reproducible:
Try and create a volume with replica 3 and thin-arbiter 1 and provide 4 bricks in the cli.


Steps to Reproduce:
1. Run  gluster v create vol1 replica 3 thin-arbiter 1 node1:<brickpath> node2:<brickpath> node3:<brickpath> ta-node:<ta-path> force
2. 
3.

Actual results:
volume create: vol1: failed: Commit failed on localhost. Please check the log file for more details.


Expected results:
For thin-arbiter configuration, replica count must be 2 and thin-arbiter count must be 1. The 3rd brick of the replica will be the thin-arbiter brick



Additional info:

Comment 1 Worker Ant 2019-09-25 07:35:04 UTC
REVIEW: https://review.gluster.org/23478 (glusterd: raise error in cli when replica not equal to 2 in thin-arbiter volume creation) posted (#2) for review on master by Vishal Pandey

Comment 2 Worker Ant 2019-10-14 09:39:09 UTC
REVIEW: https://review.gluster.org/23478 (cli: raise error in cli when replica != 2 while ta vol creation) merged (#6) on master by Atin Mukherjee