Bug 764919 (GLUSTER-3187) - geo-replication fails if glusterfs installed from src and glusterd started using /etc/init.d/glusterd
Summary: geo-replication fails if glusterfs installed from src and glusterd started us...
Keywords:
Status: CLOSED NOTABUG
Alias: GLUSTER-3187
Product: GlusterFS
Classification: Community
Component: build
Version: 3.2.1
Hardware: x86_64
OS: Linux
medium
low
Target Milestone: ---
Assignee: Csaba Henk
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-18 11:39 UTC by Lakshmipathi G
Modified: 2013-03-05 10:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-05 10:10:19 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

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...


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