Bug 1763129

Summary: either don't allow or else throw a warning if a user tries to create a volume with replica count greater than 3
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Nag Pavan Chilakam <nchilaka>
Component: cliAssignee: Sunil Kumar Acharya <sheggodu>
Status: CLOSED ERRATA QA Contact: Arthy Loganathan <aloganat>
Severity: low Docs Contact:
Priority: unspecified    
Version: rhgs-3.5CC: pprakash, puebele, ravishankar, rhs-bugs, rkothiya, sheggodu, storage-qa-internal
Target Milestone: ---   
Target Release: RHGS 3.5.z Batch Update 3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-6.0-38 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1763152 (view as bug list) Environment:
Last Closed: 2020-12-17 04:50:17 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: 1763152    

Description Nag Pavan Chilakam 2019-10-18 10:12:29 UTC
Description of problem:
===========================
currently we only support volumes of replica count 3
Any volume with replica count 2 throws a warning (which again needs a bit of modification as mentioned in BZ#1763124)

however glusterfs still create a volume of replica count >3 as below example, without any caution/warning.

[root@dhcp35-190 ~]# gluster v create rep rep 4 dhcp35-237.lab.eng.blr.redhat.com:/gluster/brick1/rep2 $HOSTNAME:/gluster/brick1/rep2 dhcp35-29.lab.eng.blr.redhat.com:/gluster/brick1/rep2 dhcp35-157.lab.eng.blr.redhat.com:/gluster/brick1/rep2 
volume create: rep: success: please start the volume to access data



We must throw a warning saying that " replica count other than or greater than  3 is not supported,"


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

Comment 2 Sanju 2019-10-18 11:10:04 UTC
upstream patch: https://review.gluster.org/#/c/glusterfs/+/23566

Comment 7 Yaniv Kaul 2020-05-05 14:42:39 UTC
This should be a fairly simple tests to automate. Do we have it automated?

Comment 8 Nag Pavan Chilakam 2020-05-05 15:49:12 UTC
(In reply to Yaniv Kaul from comment #7)
> This should be a fairly simple tests to automate. Do we have it automated?

Not yet automated

Comment 15 errata-xmlrpc 2020-12-17 04:50:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (glusterfs bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:5603