Bug 762720 (GLUSTER-988)

Summary: volgen in master generates error
Product: [Community] GlusterFS Reporter: Raghavendra Bhat <rabhat>
Component: unclassifiedAssignee: Vijay Bellur <vbellur>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: mainlineCC: gluster-bugs, vijay
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 Raghavendra Bhat 2010-06-07 13:01:50 UTC
In master volgen gives error while generating the volfiles on aws machines. It works fine on my laptop and generates volfile. But on aws instances it errors out.
This is the error reported on aws instance.

Command:
bash-3.2# glusterfs-volgen --name=stripe --raid=0 ip-10-244-43-207:/mnt/nightly/data/export1 ip-10-244-43-207:/mnt/nightly/data/export2 ip-10-244-43-207:/mnt/nightly/data/export3 ip-10-244-43-207:/mnt/nightly/data/export4


Error:
Traceback (most recent call last):
  File "/usr/local/bin/glusterfs-volgen", line 30, in ?
    from Common import *
  File "/usr/local/share/glusterfs/Common.py", line 77
    volfile_dict[line.split()[0]] = string.join (line.split()[1:], ' ') if line.split() > 1 else " "
                                                                         ^
SyntaxError: invalid syntax

Comment 1 Anand Avati 2010-06-10 09:24:39 UTC
PATCH: http://patches.gluster.com/patch/3398 in master (Changes to volgen such that it does not error out in python2.4)