Bug 1631595

Summary: glusterfs geo-replication breaks
Product: [Community] GlusterFS Reporter: Ritesh Khadgaray <khadgaray>
Component: geo-replicationAssignee: bugs <bugs>
Status: CLOSED WORKSFORME QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.1CC: anoopcs, atumball, bugs, humble.devassy, jonathansteffan, matthias, ndevos, pasik, perplexed767, ramkrsna
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-6.x, glusterfs-5.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-25 12:57:04 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:

Description Ritesh Khadgaray 2018-09-21 02:43:56 UTC
Description of problem:
geo-replication fails 

Version-Release number of selected component (if applicable):
4.1.4

How reproducible:
awlays

Steps to Reproduce:
1. Setup geo-replication

Actual results:
From gsyncd log
Traceback (most recent call last):
  File "/usr/libexec/glusterfs/python/syncdaemon/repce.py", line 101, in worker
    res = getattr(self.obj, rmeth)(*in_data[2:])
  File "/usr/libexec/glusterfs/python/syncdaemon/changelogagent.py", line 37, in init
    return Changes.cl_init()
  File "/usr/libexec/glusterfs/python/syncdaemon/changelogagent.py", line 21, in __getattr__
    from libgfchangelog import Changes as LChanges
  File "/usr/libexec/glusterfs/python/syncdaemon/libgfchangelog.py", line 17, in <module>
    class Changes(object):
  File "/usr/libexec/glusterfs/python/syncdaemon/libgfchangelog.py", line 19, in Changes
    use_errno=True)
  File "/usr/lib64/python2.7/ctypes/__init__.py", line 361, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libgfchangelog.so: cannot open shared object file: No such file or directory


Expected results:
No error

Additional info:
From /usr/libexec/glusterfs/python/syncdaemon/libgfchangelog.py 

class Changes(object):
    libgfc = CDLL("/usr/lib64/libgfchangelog.so", mode=RTLD_GLOBAL,
                  use_errno=True)

.so libraries are provided by -devel packages. To fix this user will have to install devel pacakge, or the code needs to be updated to use "libgfchangelog.so.1" .

related mail from other users - https://lists.gluster.org/pipermail/gluster-users/2018-July/034425.html

Comment 1 perplexed767 2018-12-18 19:17:26 UTC
Had this problem in 4.1.5

Think this is fixed in 4.1.6

Comment 2 Amar Tumballi 2019-06-25 12:57:04 UTC
With later releases, this is working fine.

Thanks for letting us know perplexed767.