Bug 770558 - [ovirt] [vdsm] make vds_bootstrap executable again
Summary: [ovirt] [vdsm] make vds_bootstrap executable again
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: vdsm
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Dan Kenigsberg
QA Contact: yeylon@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-27 12:18 UTC by Haim
Modified: 2016-04-18 06:43 UTC (History)
8 users (show)

Fixed In Version: v4.9.3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-06 20:54:21 UTC
oVirt Team: ---


Attachments (Terms of Use)

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


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