testdrive fails to create VM

Bug #524217 reported by Michael Gauthier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
testdrive (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: testdrive

Running in Ubuntu 9.10 with VirtualBox 3.0.8.

Welcome to Testdrive!

  1. Ubuntu Desktop (i386) (lucid)
     +-cache--> [2010-02-17 04:03:16] lucid-desktop-i386.iso
  2. Ubuntu Server (i386) (lucid)
  3. Ubuntu Alternate (i386) (lucid)
  4. Ubuntu DVD (i386) (lucid)
  5. Ubuntu Netbook (lucid)
  6. Other (prompt for ISO URL)

Command line output follows:

Select an ISO to testdrive: 1
WARNING: Your CPU's lack of VT will seriously impact performance.

INFO: Using VirtualBox for virtual machine hosting...

INFO: Syncing the specified ISO...

      rsync://cdimage.ubuntu.com/cdimage/daily-live/current/lucid-desktop-i386.iso

receiving file list ...
1 file to consider

sent 120 bytes received 97 bytes 144.67 bytes/sec
total size is 738897920 speedup is 3405059.54
INFO: VirtualBox 3.0 detected.

INFO: Creating disk image...

VirtualBox Command Line Management Interface Version 3.0.8_OSE
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Disk image created. UUID: 8ca4e0ec-6d00-4f50-bef9-abffdde4c29b
VirtualBox Command Line Management Interface Version 3.0.8_OSE
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

ERROR: Could not find a registered machine named 'testdrive'
Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
Context: "FindMachine(Bstr(a->argv[0]), machine.asOutParam())" at line 863 of file VBoxManageModifyVM.cpp
INFO: Creating the Virtual Machine...

Traceback (most recent call last):
  File "/usr/bin/testdrive", line 241, in <module>
    os.unlink("%s/.VirtualBox/Machines/%s/%s.xml" % (HOME, VBOX_NAME, VBOX_NAME))
OSError: [Errno 2] No such file or directory: '/home/gauthierm/.VirtualBox/Machines/testdrive/testdrive.xml'

Revision history for this message
Michael Gauthier (mike-silverorange) wrote :

This is a problem in the code to delete existing vm images. The "if os.path.exists()" call has an erroneous == 0 at the end causing the os.path.unlink() to always run even if the file doesn't exist. This causes a python exception trying to delete a file that does not exist.

Revision history for this message
Dustin Kirkland  (kirkland) wrote : Re: [Bug 524217] Re: testdrive fails to create VM

Thanks! I'll get it fixed.

Changed in testdrive (Ubuntu):
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package testdrive - 1.21-0ubuntu1

---------------
testdrive (1.21-0ubuntu1) lucid; urgency=low

  * testdrive: fix conditional test, LP: #524217
 -- Dustin Kirkland <email address hidden> Sat, 13 Feb 2010 17:38:17 -0600

Changed in testdrive (Ubuntu):
status: In Progress → Fix Released
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.