Bug 888346

Summary: "gluster volume geo-replication .. config" with an incorrect hostname for the source gives a DeprecationWarning
Product: [Community] GlusterFS Reporter: Niels de Vos <ndevos>
Component: geo-replicationAssignee: Niels de Vos <ndevos>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: pre-releaseCC: gluster-bugs
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 888352 902213 (view as bug list) Environment:
Last Closed: 2013-07-24 17:26:05 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: 888352, 902213    

Description Niels de Vos 2012-12-18 14:35:56 UTC
Description of problem:


# gluster volume geo-replication source ssh://root@vm-104x::target config
/usr/libexec/glusterfs/python/syncdaemon/syncdutils.py:175: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  sys.stderr.write('failure: ' + exc.message + "\n")
failure: failed to resolve vm-104x: Name or service not known
geo-replication command failed


The hostname is incorrect, and "Name or service not known" should be displayed without the DeprecationWarning.

Comment 1 Niels de Vos 2012-12-18 14:37:31 UTC
Posted as http://review.gluster.org/4328

Comment 2 Vijay Bellur 2012-12-18 22:17:49 UTC
CHANGE: http://review.gluster.org/4328 (geo-rep: do not access BaseException.message in syncdutils) merged in master by Anand Avati (avati)