Bug 770558

Summary: [ovirt] [vdsm] make vds_bootstrap executable again
Product: [Retired] oVirt Reporter: Haim <hateya>
Component: vdsmAssignee: Dan Kenigsberg <danken>
Status: CLOSED CURRENTRELEASE QA Contact: yeylon <yeylon>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: abaron, acathrow, bazulay, iheim, mgoldboi, srevivo, yeylon, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: v4.9.3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-06 20:54:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Haim 2011-12-27 12:18:35 UTC
Description of problem:

case:
#####
- host installation fails 

cause:
######
- during host installation, engine execute remote command for host to fetch certain script, and execute them, speceifically, vds_installer.py tries to run in subprocess vds_bootstrap.py with certain arguments, since #! /usr/bin/python was removed from file, shell tries to execute python file as bash script, and doesn't recognize import commands.

Error:
######

[root@rhev-a24c-04 tmp]# /tmp/vds_bootstrap_8f90c483-c1ee-4047-865e-d7f2f081c166.py -O Redhat -t 2011-12-27T10:39:20 -f /tmp/firewall.conf.8f90c483-c1ee-4047-865e-d7f2f081c166 http://10.16.144.104:8080/ 10.16.144.166 8f90c483-c1ee-4047-865e-d7f2f081c166
/tmp/vds_bootstrap_8f90c483-c1ee-4047-865e-d7f2f081c166.py: line 41: import: command not found
/tmp/vds_bootstrap_8f90c483-c1ee-4047-865e-d7f2f081c166.py: line 42: import: command not found
/tmp/vds_bootstrap_8f90c483-c1ee-4047-865e-d7f2f081c166.py: line 43: import: command not found
/tmp/vds_bootstrap_8f90c483-c1ee-4047-865e-d7f2f081c166.py: line 44: import: command not found
/tmp/vds_bootstrap_8f90c483-c1ee-4047-865e-d7f2f081c166.py: line 45: import: command not found
/tmp/vds_bootstrap_8f90c483-c1ee-4047-865e-d7f2f081c166.py: line 46: import: command not found
/tmp/vds_bootstrap_8f90c483-c1ee-4047-865e-d7f2f081c166.py: line 47: import: command not found
/tmp/vds_bootstrap_8f90c483-c1ee-4047-865e-d7f2f081c166.py: line 48: import: command not found
/tmp/vds_bootstrap_8f90c483-c1ee-4047-865e-d7f2f081c166.py: line 49: import: command not found
/tmp/vds_bootstrap_8f90c483-c1ee-4047-865e-d7f2f081c166.py: line 50: import: command not found
/tmp/vds_bootstrap_8f90c483-c1ee-4047-865e-d7f2f081c166.py: line 51: import: command not found
/tmp/vds_bootstrap_8f90c483-c1ee-4047-865e-d7f2f081c166.py: line 52: import: command not found
/tmp/vds_bootstrap_8f90c483-c1ee-4047-865e-d7f2f081c166.py: line 53: import: command not found
/tmp/vds_bootstrap_8f90c483-c1ee-4047-865e-d7f2f081c166.py: line 56: syntax error near unexpected token `('
/tmp/vds_bootstrap_8f90c483-c1ee-4047-865e-d7f2f081c166.py: line 56: `rnum = str(random.randint(100,1000000))'


git commit 6b3924fc6aeb7d8446f14c8f8a4ab2f6f921000b

Comment 1 Haim 2011-12-27 13:40:28 UTC
http://gerrit.ovirt.org/767