vmbuilder crashed with VMBuilderException in run_cmd()

Bug #694192 reported by Micah Gersten
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Trying to create a hardy vm running the following command using vm-tools in ubuntu-qa-tools:
vm-new hardy amd64 clean

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: python-vm-builder 0.12.4-0ubuntu1.2
ProcVersionSignature: Ubuntu 2.6.35-24.42-generic 2.6.35.8
Uname: Linux 2.6.35-24-generic x86_64
Architecture: amd64
Date: Fri Dec 24 12:04:58 2010
ExecutablePath: /usr/bin/vmbuilder
InterpreterPath: /usr/bin/python2.6
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/vmbuilder qemu ubuntu --timezone=America/Chicago --suite=hardy --dest=/opt/vms/kvm/clean-hardy-amd64 --hostname=clean-hardy-amd64 --mirror=http://mirror.anl.gov/ubuntu --rootsize=5120 --swapsize=1024 --kernel-flavour=generic --components=main,restricted,universe,multiverse --libvirt=qemu:///system --arch=amd64 --exec=/tmp/vm-new-setup-zEtmLg --ssh-key=/home/micah/.ssh/id_rsa.pub --user=micah --mem=512 --addpkg=lsb-release --security-mirror=http://security.ubuntu.com/ubuntu --debug
ProcEnviron:
 PATH=(custom, no user)
 LANG=C
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/vmbuilder', 'qemu', 'ubuntu', '--timezone=America/Chicago', '--suite=hardy', '--dest=/opt/vms/kvm/clean-hardy-amd64', '--hostname=clean-hardy-amd64', '--mirror=http://mirror.anl.gov/ubuntu', '--rootsize=5120', '--swapsize=1024', '--kernel-flavour=generic', '--components=main,restricted,universe,multiverse', '--libvirt=qemu:///system', '--arch=amd64', '--exec=/tmp/vm-new-setup-zEtmLg', '--ssh-key=/home/micah/.ssh/id_rsa.pub', '--user=micah', '--mem=512', '--addpkg=lsb-release', '--security-mirror=http://security.ubuntu.com/ubuntu', '--debug']
SourcePackage: vm-builder
Title: vmbuilder crashed with VMBuilderException in run_cmd()
UserGroups:

Revision history for this message
Micah Gersten (micahg) wrote :
tags: removed: need-duplicate-check
Chuck Short (zulcss)
visibility: private → public
Dave Walker (davewalker)
Changed in vm-builder (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

This looks to be because of this in VMBuilder/plugins/ubuntu/dapper.py:
def set_locale(self):
    lang = self.context.get_setting('lang')
    if lang:
        self.install_from_template('/etc/default/locale', 'locale', { 'lang' : lang })
        self.run_in_target('locale-gen', lang)
    ...

The version in natty does:
def set_locale(self):
    lang = self.context.get_setting('lang')
    if lang:
        self.install_from_template('/etc/default/locale', 'locale', { 'lang' : lang })
        if lang != "C":
            self.run_in_target('locale-gen', lang)
    ...

Revision history for this message
Micah Gersten (micahg) wrote :

I backported 0.12.4+bzr461 to maverick and everything seems to be working.
For the record, here's my output from locale:
LANG=C
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

Revision history for this message
dino99 (9d9) wrote :

This version is outdated and no more supported

Changed in vm-builder (Ubuntu):
status: Confirmed → Invalid
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.