ubuntu-vm-builder crashed with VMBuilderUserError in main()

Bug #777318 reported by Muelli
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
Opinion
Low
Unassigned

Bug Description

just started it.

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: ubuntu-vm-builder 0.12.4-0ubuntu1.2
ProcVersionSignature: Ubuntu 2.6.38-6.34-generic 2.6.38-rc7
Uname: Linux 2.6.38-6-generic x86_64
Architecture: amd64
Date: Mon May 2 19:45:59 2011
ExecutablePath: /usr/bin/ubuntu-vm-builder
InterpreterPath: /usr/bin/python2.6
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/ubuntu-vm-builder kvm natty --destdir=/tmp/ubuntu-vm --addpkg=openssh-server --addpkg=nano --rootpass=root
PythonArgs: ['/usr/bin/ubuntu-vm-builder', 'kvm', 'natty', '--destdir=/tmp/ubuntu-vm', '--addpkg=openssh-server', '--addpkg=nano', '--rootpass=root']
SourcePackage: vm-builder
Title: ubuntu-vm-builder crashed with VMBuilderUserError in main()
UserGroups: adm admin audio cdrom dialout dip floppy fuse kvm libvirtd lpadmin netdev plugdev powerdev scanner tty video

Revision history for this message
Muelli (ubuntu-bugs-auftrags-killer) wrote :
visibility: private → public
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for taking the time to report this bug.

vmbuilder must be run as root. You ran it as non-root user, which was the reason for the error. You will also need to use ubuntu' in place of natty for the second argument, and specify natty for the suite instead. Something like the following should work:

sudo vmbuilder kvm ubuntu --suite=natty -addpkg=openssh-server --addpkg=nano

Changed in vm-builder (Ubuntu):
status: New → Invalid
Revision history for this message
Muelli (ubuntu-bugs-auftrags-killer) wrote :

Calling the program with the wrong arguments shouldn't make it crash. Hence it's a bug.

Changed in vm-builder (Ubuntu):
status: Invalid → New
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

This wasn't a crash, it was a meaningful error message.

Changed in vm-builder (Ubuntu):
importance: Undecided → Low
tags: removed: need-duplicate-check
Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

Resolving as invalid.

Changed in vm-builder (Ubuntu):
status: New → Invalid
Revision history for this message
Muelli (ubuntu-bugs-auftrags-killer) wrote :

But it makes apport pop up to report a crash.

Changed in vm-builder (Ubuntu):
status: Invalid → New
Revision history for this message
James Page (james-page) wrote :

Sounds like there is some debate as to whether this is a crash or an error message.

I'm going to change status to 'Opinion' so that further discussion can happen.

Changed in vm-builder (Ubuntu):
status: New → Opinion
Revision history for this message
Muelli (ubuntu-bugs-auftrags-killer) wrote :

Well. I'm still surprised how this can seriously not be considered a crash. Yes it's an error message. Maybe even a good and meaningful one. But it's a crash nonetheless.
I'd use logging.exception to print the stack trace along with an error message instead of letting the Python exception handler handle it and make Apport show up.

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.