Bug 888346 - "gluster volume geo-replication .. config" with an incorrect hostname for the source gives a DeprecationWarning
"gluster volume geo-replication .. config" with an incorrect hostname for the...
Status: CLOSED CURRENTRELEASE
Product: GlusterFS
Classification: Community
Component: geo-replication (Show other bugs)
pre-release
Unspecified Unspecified
low Severity low
: ---
: ---
Assigned To: Niels de Vos
: Patch
Depends On:
Blocks: 888352 902213
  Show dependency treegraph
 
Reported: 2012-12-18 09:35 EST by Niels de Vos
Modified: 2013-07-24 13:26 EDT (History)
1 user (show)

See Also:
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 13:26:05 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Niels de Vos 2012-12-18 09:35:56 EST
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 09:37:31 EST
Posted as http://review.gluster.org/4328
Comment 2 Vijay Bellur 2012-12-18 17:17:49 EST
CHANGE: http://review.gluster.org/4328 (geo-rep: do not access BaseException.message in syncdutils) merged in master by Anand Avati (avati@redhat.com)

Note You need to log in before you can comment on or make changes to this bug.