Cause: Python 2.6 has deprecated the usage of the .message attribute. Whenever this attribute is accessed, the Python runtime will print a warning like this:
DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
Consequence: This DeprecationWarning can get displayed by all processes that use the syncdutils.py (part of geo-replication) library. Common occurrences are while updating the glusterfs-geo-replication package, or executing geo-replication commands with an unresolvable hostname.
Fix: Instead of accessing the .message attribute from an Exception, use the .args array as done in other parts of the Python code.
Result: Not accessing the .message attribute prevents the DeprecationWarnings from occurring.