Bug 1212576

Summary: Inappropriate error message generated when non-resolvable hostname is given for peer in 'gluster volume create' command for distribute-replicate volume creation
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: glusterdAssignee: Gaurav Kumar Garg <ggarg>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: medium Docs Contact:
Priority: medium    
Version: rhgs-3.0CC: amukherj, asrivast, ggarg, nlevinki, nsathyan, rcyriac, rtalur, sasundar, smohan, vagarwal, vbellur
Target Milestone: ---Keywords: Patch
Target Release: RHGS 3.1.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.7.0-2.el6rhs Doc Type: Bug Fix
Doc Text:
Previously for replicate volume the brick order check on volume create and add-brick was done by the cli. This check would fail when there is incorrect brick-order for replicate volume and it was showing ambiguous message "failed to resolve host name" even host name is correct. With this fix resolving hostname/ip-address will be done after brick have resolved by performing brick order check for replicate volume. consequence, the user will no longer be questioned and given an option to continue the operation when a bad brick order is given or the brick order check fails. In such a case, the user can use 'force' to bypass the check and allow the command to succeed.
Story Points: ---
Clone Of: 1007209 Environment:
Last Closed: 2015-07-29 04:40:59 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: 1007209    
Bug Blocks: 1091935, 1202842    

Comment 2 Atin Mukherjee 2015-04-16 17:17:09 UTC
The fix is already into upstream with http://review.gluster.org/9373
BZ should be moved to 'Modified' the moment branching takes place.

Comment 3 Gaurav Kumar Garg 2015-04-16 18:12:48 UTC
Another part of this bug fix also available in upstream master http://review.gluster.org/#/c/7589/

Comment 6 SATHEESARAN 2015-06-26 11:20:18 UTC
While creating a volume with the non-resolvable hostname , then proper error message is thrown as follows:

"volume create: test: failed: Host rhs-client345.lab.eng.blr.redhat.com is not in 'Peer in Cluster' state"

Tested with glusterfs-3.7.1-5.el6rhs

Marking this bug as VERIFIED

Comment 7 errata-xmlrpc 2015-07-29 04:40:59 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, 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://rhn.redhat.com/errata/RHSA-2015-1495.html