Bug 991086

Summary: Dist-geo-rep: Invalid slave url (::: three or more colons) error out with unclear error message.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: M S Vishwanath Bhat <vbhat>
Component: geo-replicationAssignee: Bug Updates Notification Mailing List <rhs-bugs>
Status: CLOSED EOL QA Contact: storage-qa-internal <storage-qa-internal>
Severity: medium Docs Contact:
Priority: low    
Version: 2.1CC: avishwan, chrisw, csaba, mzywusko, nsathyan, rhs-bugs, vagarwal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: usability
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1098991 1285192 (view as bug list) Environment:
Last Closed: 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: 1098991, 1285192    

Description M S Vishwanath Bhat 2013-08-01 15:00:03 UTC
Description of problem:
While creating the geo-rep session, invalid slave url with single colon (:) gives proper and clear error message. But specifying three or more colons (:::) gives unclear error message.

Version-Release number of selected component (if applicable):
glusterfs-3.4.0.14rhs-1.el6rhs.x86_64

How reproducible:
Always

Steps to Reproduce:
1. gluster v geo master_vol slave_node:slave_vol create
2. gluster v geo master_vol slave_node:::slave_vol create

Actual results:
After step 1

[root@spitfire ]# gluster v geo master lightning:slave create
lightning:slave is not a valid slave url.
geo-replication command failed

[root@spitfire ]# gluster v geo master lightning:::slave create
Unable to create /var/lib/glusterd/geo-replication/master-:slave/ssh%3A%2F%2Froot%4010.70.43.145%3Agluster%3A%2F%2F127.0.0.1%3A%3Aslave.status. Error : Bad file descriptor
geo-replication command failed


Expected results:
It should say the slave url is not valid.

Additional info:

Comment 2 Nagaprasad Sathyanarayana 2014-05-06 11:43:43 UTC
Dev ack to 3.0 RHS BZs

Comment 3 Aravinda VK 2014-05-19 10:18:01 UTC
Upstream patch sent
http://review.gluster.org/#/c/7796/

Comment 6 Aravinda VK 2015-11-25 08:50:59 UTC
Closing this bug since RHGS 2.1 release reached EOL. Required bugs are cloned to RHGS 3.1. Please re-open this issue if found again.

Comment 7 Aravinda VK 2015-11-25 08:52:13 UTC
Closing this bug since RHGS 2.1 release reached EOL. Required bugs are cloned to RHGS 3.1. Please re-open this issue if found again.