Bug 764651 (GLUSTER-2919) - Wrong gsyncd path for geo-replication with .deb install
Summary: Wrong gsyncd path for geo-replication with .deb install
Keywords:
Status: CLOSED NOTABUG
Alias: GLUSTER-2919
Product: GlusterFS
Classification: Community
Component: geo-replication
Version: 3.2.0
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: ---
Assignee: Lakshmipathi G
QA Contact:
URL:
Whiteboard:
: GLUSTER-2967 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-20 14:05 UTC by Giovanni Toraldo (LiberSoft)
Modified: 2011-09-30 15:22 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Giovanni Toraldo (LiberSoft) 2011-05-20 14:05:54 UTC
`gluster volume geo-replication <master> <slave> config` assume that the slave has gsyncd binary under /usr/local, not true when using debian binary package.

I got a working georeplication manually changing /etc/glusterd/geo-replication/gsyncd.conf to:
remote_gsyncd = /usr/lib/glusterfs/glusterfs/gsyncd

This is the error I was getting:
[2011-05-20 15:30:19.641797] I [gsyncd:287:main_i] <top>: syncing: gluster://localhost:volume1 -> ssh://192.168.178.13:/srv/data
[2011-05-20 15:30:24.791280] E [syncdutils:131:log_raise_exception] <top>: FAIL: 
Traceback (most recent call last):
  File "/usr/lib/glusterfs/glusterfs/python/syncdaemon/syncdutils.py", line 152, in twrap
    tf(*aa)
  File "/usr/lib/glusterfs/glusterfs/python/syncdaemon/repce.py", line 118, in listen
    rid, exc, res = recv(self.inf)
  File "/usr/lib/glusterfs/glusterfs/python/syncdaemon/repce.py", line 42, in recv
    return pickle.load(inf)
EOFError

Comment 1 Csaba Henk 2011-05-26 06:51:27 UTC
Giovanni,

you are supposed to configure the geo-rep master/slave pair appropriately before starting the geo-rep session. So the phenomenon as you met with it is not a bug.

Still your case raises some things to think over:
- we could install a convenience symlink to gsyncd at the default [prefix-less build] gsyncd path (/usr/local/libexec/glusterfs/gsyncd), like we do for rpm-s but I fear that would be intrusive to debian fs layout, so I still think it's better to fall back to the requirement of manual initial configuration
- yes, the error shown is not user-friendly. We want to improve on that (http://bugs.gluster.com/show_bug.cgi?id=2778)
- the deb was not updated for 3.2.0; it could do with some refinements (eg. add python dependency for geo-replication).

Csaba

Comment 2 Csaba Henk 2011-05-31 19:54:40 UTC
*** Bug 2967 has been marked as a duplicate of this bug. ***

Comment 3 Lakshmipathi G 2011-08-22 06:08:00 UTC
creating a symlink on the postinst script of deb seems to be working.

--------------
#cat debian/postinst 
#!/bin/sh
# postinst script for glusterfs
#
# see: dh_installdeb(1)

set -e

case "$1" in
    configure)
    mkdir -p /usr/local/libexec/glusterfs/
    ln -s /usr/lib/glusterfs/glusterfs/gsyncd /usr/local/libexec/glusterfs/gsyncd 
    ;;
--------------

Comment 4 Csaba Henk 2011-08-22 09:28:07 UTC
(In reply to comment #3)
> creating a symlink on the postinst script of deb seems to be working.

This sentence is subtly interwoven with underlying assumption of a bug being faced here.

As of my agenda, there is no bug, the program is just needed to be configured properly (although a bug can exist at documentation level, by not making this clear).

I'm not adamantly fixed on this agenda, it's possible to argue against it. Just please relate to this statement first, before trying to provide workarounds.

Comment 5 Lakshmipathi G 2011-09-30 12:22:49 UTC
this issue becomes irrelevant since new changes are implemented with the bug 764557 regarding geo-rep setup.


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