'--dest=DEST' and '-d DEST' options ignored

Bug #280091 reported by Alex Bransby-Williams
2
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
Fix Released
High
Unassigned

Bug Description

sudo vmbuilder kvm ubuntu --debug --ip=192.168.1.158 --hostname test --dest=/home/alex/testvm --mirror=http://192.168.1.60:9999/ubuntu --libvirt=qemu:///system

Will create the vm in './ubuntu-kvm' rather than '/home/alex/testvm'. Naturally if you repeat in the same dir (changing host,IP and dest):

sudo vmbuilder kvm ubuntu --debug --ip=192.168.1.159 --hostname test2 --dest=/home/alex/test2 --mirror=http://192.168.1.60:9999/ubuntu --libvirt=qemu:///system

Results in the following output:

2008-10-08 11:11:59,278 INFO
2008-10-08 11:11:59,281 DEBUG add_part - begin 0, length 4096, end 4095
2008-10-08 11:11:59,281 DEBUG add_part - begin 4096, length 1024, end 5119
2008-10-08 11:11:59,281 DEBUG ip: 192.168.1.159
2008-10-08 11:11:59,282 DEBUG net: 192.168.1.0
2008-10-08 11:11:59,282 DEBUG netmask: 255.255.255.0
2008-10-08 11:11:59,282 DEBUG broadcast: 192.168.1.255
2008-10-08 11:11:59,282 DEBUG gateway: 192.168.1.1
2008-10-08 11:11:59,282 DEBUG dns: 192.168.1.1
2008-10-08 11:11:59,288 DEBUG ip: 192.168.1.159
2008-10-08 11:11:59,288 DEBUG net: 192.168.1.0
2008-10-08 11:11:59,289 DEBUG netmask: 255.255.255.0
2008-10-08 11:11:59,289 DEBUG broadcast: 192.168.1.255
2008-10-08 11:11:59,289 DEBUG gateway: 192.168.1.1
2008-10-08 11:11:59,289 DEBUG dns: 192.168.1.1
2008-10-08 11:11:59,289 DEBUG Temporary directory: /tmp/vmbuildergFq9c4
2008-10-08 11:11:59,289 DEBUG Creating the root mount directory: /tmp/vmbuildergFq9c4/target
2008-10-08 11:11:59,289 DEBUG Creating temporary root: /tmp/vmbuildergFq9c4/root
2008-10-08 11:11:59,290 CRITICAL Oh, dear, an exception occurred
2008-10-08 11:11:59,290 INFO Cleaning up
2008-10-08 11:11:59,290 DEBUG ['rm', '-rf', '/tmp/vmbuildergFq9c4']
2008-10-08 11:11:59,292 INFO
2008-10-08 11:11:59,292 DEBUG
ubuntu-kvm already exists

Revision history for this message
Nick Barcet (nijaba) wrote :

Problem reproduced and about to be fixed

Changed in vm-builder:
assignee: nobody → nijaba
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Nick Barcet (nijaba) wrote :

Fixed commited

Changed in vm-builder:
assignee: nijaba → nobody
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package vm-builder - 0.9-0ubuntu3

---------------
vm-builder (0.9-0ubuntu3) intrepid; urgency=low

  [ Johan Euphrosine ]
  * Fix exception when suite provided does not exist (LP: #281801)
    and provide unit test for it.

  [ Chuck Short ]
  * Added parameters required for EC2 plugin.
  * Use ec2_name instead of hostname when submitting an AMI.
  * Update xen_kernel_path and xen_ramdisk_path for intrepid.
  * Default to amazon kernels/ramdisk pairs for now.
  * Split out ec2 module into its own package. (LP: #284762)

  [ Nicolas Barcet ]
  * Error out if domain is undefined (LP: #280125)
  * Fix --dest so that it is actually used now (LP: #280091)
  * Fix -c handling, values are now used (LP: #279159)
  * Create /var/run/network to fix bug LP: #276365
  * Handle fsimage type vms (Xen) in fstab and (hopefully) libvirt (LP: #282109)
  * Components where not parsed correctly (LP: #283263)
  * preflight_check() was called twice in a row in vm.py for no aparant
    reasons
  * Change default suite to intrepid
  * Intrepid needs groot=uuid, else update-grub tries to outsmart us later on
    and it won't boot as it cannot guess the uuid right.
  * Couple fixes when calling devletters, which is a function
  * Double parenthesis removed in devicemap.tmpl
  * Added function isDomain to fix bug LP: #284746
  * Documented unusual conf name value in help to fix bug LP: #284614
  * Fixed a bug in set_defaults occuring on reading untyped value from the
    configuration file
  * Match ec2 vocabulary by adding option name and clarifying help
    (LP: #284765, LP: #285170, LP: #285165)
  * Added a check for xen hypervisor when ec2 is selected (LP: #285191)
  * Added checks for presence of bucket, access key and secret key for ec2
    (LP: #284757)
  * Older suite need 128 bit inode for grub to recognize os. Thanks to Albert
    Damen for the pointer (LP: #285093)
  * The libvirt plugin now errors out if used with something else than KVM, as
    nothing else is supported yet.
  * Write out disk info in vmware's .vmx, converting it to use template while
    at it (LP: #286487)
  * Add 'config.version = "8"' to vmware.tmpl to fix LP: #286531

  [ Mathias Gug ]
  * Fix --templates option.

  [ Soren Hansen ]
  * Create /var/{run,lock} on the root filesystem, just like d-i.

 -- Soren Hansen <email address hidden> Fri, 24 Oct 2008 13:15:23 +0200

Changed in vm-builder:
status: Fix Committed → 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.