Bug 764919 (GLUSTER-3187)

Summary: geo-replication fails if glusterfs installed from src and glusterd started using /etc/init.d/glusterd
Product: [Community] GlusterFS Reporter: Lakshmipathi G <lakshmipathi>
Component: buildAssignee: Csaba Henk <csaba>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 3.2.1CC: gluster-bugs, vshankar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-05 10:10:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lakshmipathi G 2011-07-18 11:39:59 UTC
Steps to reproduce this issue-
1.Install glusterfs from src. glusterfs installed on default path -

# whereis glusterfs glusterfsd
glusterfs: /usr/local/sbin/glusterfs /usr/local/etc/glusterfs /usr/local/lib/glusterfs
glusterfsd: /usr/local/sbin/glusterfsd

2.start glusterd as "/etc/init.d/glusterd start"
3.Now start geo-replication session - 
It will fail with message like 
"[2011-07-18 02:38:09.618092] E [syncdutils:131:exception] <top>: FAIL: 
Traceback (most recent call last):
  File "/usr/local/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 102, in main
    main_i()
  File "/usr/local/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 296, in main_i
    local.connect()
  File "/usr/local/libexec/glusterfs/python/syncdaemon/resource.py", line 378, in connect
    raise RuntimeError("command failed: " + " ".join(argv))
RuntimeError: command failed: glusterfs -l /usr/local/var/log/glusterfs/geo-replication/geotest/ssh%3A%2F%2Froot%4010.1.12.173%3Afile%3A%2F%2F%2Fexport%2FgeoS.gluster.log -s localhost --volfile-id geotest --client-pid=-1 /tmp/gsyncd-aux-mount-YrZMWu"


It fails because environmental variable PATH invoked from with /etc/init.d/glusterd shows values "PATH=/sbin:/usr/sbin:/bin:/usr/bin"

But installing from src,does not create symlink at /usr/sbin but installs under path /usr/loca/sbin - 

[with rpm installation there is a  sym.link on /usr/sbin/glusterfs to /opt/glusterfs/version/sbin/glusterfs - so there is no issue when its started using /etc/init.d/glusterd]

Comment 1 Venky Shankar 2013-03-05 10:10:19 UTC
src and rpms are exclusive now...