Bug 762167 (GLUSTER-435)

Summary: glusterfs-volgen does not work when glusterfs is installed at a prefix
Product: [Community] GlusterFS Reporter: Krishna Srinivas <krishna>
Component: scriptsAssignee: Harshavardhana <fharshav>
Status: CLOSED DUPLICATE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: mainlineCC: cww, gluster-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Krishna Srinivas 2009-12-04 15:00:11 UTC
root@halt:/opt/glusterfs/bin# python glusterfs-volgen
Traceback (most recent call last):
  File "glusterfs-volgen", line 9, in <module>
    from CreateVolfile import *
ImportError: No module named CreateVolfile
root@halt:/opt/glusterfs/bin#

root@halt:/opt/glusterfs/bin# head glusterfs-volgen
#!/usr/bin/python

import getopt, sys, os, string
from optparse import OptionParser,OptionGroup,make_option

if not "/usr/share/glusterfs" in sys.path:
    sys.path.append("/usr/share/glusterfs")

from CreateVolfile import *
from CreateBooster import *
root@halt:/opt/glusterfs/bin#

"/usr/share/glusterfs" is hardcoded. "/opt/glusterfs/share/glusterfs" has to be used instead.

Comment 1 Harshavardhana 2009-12-04 23:12:11 UTC

*** This bug has been marked as a duplicate of bug 437 ***