Wind River Support Network

HomeDefectsOVP-537
Fixed

OVP-537 : glusterfs can use the project's cross-python path on the target

Created: Aug 13, 2013    Updated: Mar 11, 2016
Resolved Date: Oct 11, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.8
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

If your host's python binary's version is too old, the WR Linux build system will generate a cross-python to use instead.  Glusterfs will compile the path to that cross-python into the gsyncd binary and it will attempt to use that path to run the gsyncd.py script.  Strace on the target shows the problem:

    7108  execve("/ala-lpggp42/nstan/workspace/WIND00428059/bitbake_build/bin/python", ["/ala-lpggp42/nstan/workspace/WIND00428059/bitbake_build/bin/python", "/usr/libexec/glusterfs/python/syncdaemon/gsyncd.py", "--version"], ["SHELL=/bin/sh", "TERM=linux", "HUSHLOGIN=FALSE", "USER=root", "MAIL=/var/spool/mail/root", "PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin", "PWD=/root", "EDITOR=/bin/vi", "PS1=\\u@\\h:\\w\\$ ", "SHLVL=1", "HOME=/root", "LOGNAME=root", "_=/usr/bin/strace"]) = -1 ENOENT (No such file or directory)

Workaround

Modify the glusterfs init script to run 'export PYTHON=/usr/bin/python' on the target before starting glusterfs.

Steps to Reproduce

.../configure --enable-board=intel-xeon-core --enable-rootfs=ovp-ovirt-node+third-party-engine --enable-addons=wr-ovp ...
make all
strings export/dist/usr/libexec/glusterfs/gsyncd | egrep python
Live chat
Online