vmbuilder: --execscript in current directory is not found

Bug #486955 reported by Eric Hammond
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

This problem happens with the vmbuilder on trunk.

When running vmbuilder I passed in an option like

  --execscript setup-karmic-server

where "setup-karmic-server" was an executable file in my current directory.

vmbuilder output the following messages which give a warm fuzzy:

2009-11-23 04:43:15,002 DEBUG : Checking if --exec PATH exists: setup-karmic-server
2009-11-23 04:43:15,002 DEBUG : Checking permissions of --exec PATH: setup-karmic-server

It proceeded to build the entire image, then tried to run my script. At this point, it died with the error:

  Couldn't find the program 'setup-karmic-server' on your system

If it's really checking to make sure that the script exists and is executable it might also check to make sure that the script is in the path, or add the current working directory to the path.

The workaround is to specify a full path like

  --execscript $(pwd)/setup-karmic-server

but this was an annoying thing to have to run into and to run again, so it would be nice to save others the hassle.

See also related bug 292733.

ProblemType: Bug
Architecture: i386
Date: Mon Nov 23 05:03:36 2009
DistroRelease: Ubuntu 9.10
Ec2AMI: ami-1515f67c
Ec2AMIManifest: ubuntu-images-us/ubuntu-karmic-9.10-i386-server-20091027.1.manifest.xml
Ec2AvailabilityZone: us-east-1a
Ec2InstanceType: c1.medium
Ec2Kernel: aki-5f15f636
Ec2Ramdisk: ari-0915f660
Package: python-vm-builder 0.11.3-0ubuntu1
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: User Name 2.6.31-302.7-ec2
SourcePackage: vm-builder
Tags: ec2-images
Uname: Linux 2.6.31-302-ec2 i686

Revision history for this message
Eric Hammond (esh) wrote :
Chuck Short (zulcss)
Changed in vm-builder (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Scott Moser (smoser)
tags: removed: ec2-images
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.