Public bug reported: Binary package hint: python-vm-builder
Originally attached to bug #562189 I believe this is a bug. There are two checks for pre-existing VMs, and they differ: /usr/lib/python2.7/dist-packages/VMBuilder/plugins/libvirt/__init__.py line 54: if hostname in self.all_domains() and not self.context.overwrite: line 80: if hostname in self.all_domains() and not self.vm.overwrite: Changing line 80 to match line 54 prevents this error. I believe this is an ok fix. Consider splitting this into a function, rather than copying and pasting code, if these are supposed to be identical lines. Line 80 throws an error when run: Traceback (most recent call last): File "/usr/bin/vmbuilder", line 24, in <module> cli.main() File "/usr/lib/python2.7/dist-packages/VMBuilder/contrib/cli.py", line 227, in main hypervisor.finalise(destdir) File "/usr/lib/python2.7/dist-packages/VMBuilder/hypervisor.py", line 78, in finalise self.call_hooks('deploy', destdir) File "/usr/lib/python2.7/dist-packages/VMBuilder/distro.py", line 67, in call_hooks call_hooks(self, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/VMBuilder/util.py", line 158, in call_hooks getattr(plugin, func, log_no_such_method)(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/VMBuilder/plugins/libvirt/__init__.py", line 80, in deploy if hostname in self.all_domains() and not self.vm.overwrite: AttributeError: 'Libvirt' object has no attribute 'vm' ** Affects: vm-builder (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in Ubuntu. https://bugs.launchpad.net/bugs/795358 Title: vmbuilder script fails on deploy/cleanup To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/795358/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs