fails when libvirt guest exists

Bug #544065 reported by Magne Rasmussen
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
VMBuilder
Confirmed
Undecided
Unassigned

Bug Description

vmbuilder fails when using libvirt and a guest with the same name already exists.

2010-03-22 11:08:52,797 DEBUG : Calling preflight_check method in VMBuilder.plugins.libvirt plugin.
Traceback (most recent call last):
  File "/home/magne/vmbuilder/vmbuilder", line 24, in <module>
    cli.main()
  File "/home/magne/vmbuilder/VMBuilder/contrib/cli.py", line 112, in main
    hypervisor.install_os()
  File "/home/magne/vmbuilder/VMBuilder/hypervisor.py", line 49, in install_os
    self.call_hooks('preflight_check')
  File "/home/magne/vmbuilder/VMBuilder/distro.py", line 66, in call_hooks
    call_hooks(self, *args, **kwargs)
  File "/home/magne/vmbuilder/VMBuilder/util.py", line 158, in call_hooks
    getattr(plugin, func, log_no_such_method)(*args, **kwargs)
  File "/home/magne/vmbuilder/VMBuilder/plugins/libvirt/__init__.py", line 54, in preflight_check
    if hostname in self.all_domains() and not self.vm.overwrite:
AttributeError: 'Libvirt' object has no attribute 'vm'

I'm using revision 426 of branch http://bazaar.launchpad.net/~ubuntu-virt/vmbuilder/0.12

Revision history for this message
Loïc Minier (lool) wrote :

I get this too with lucid final; creating a vm in the current dir with --libvirt=qemu:///system and then repeating that after wiping it with rm -rf causes the above exception.

Changed in vmbuilder:
status: New → Confirmed
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.