Description of problem: Creating a new virtual machine (install from iso, kvm i686) fails for me if I change the "File Location" under Simple File in the "Assigning storage space" dialog to anything outside of '/var/lib/libvirt/images'. Creating a symlink for /var/lib/libvirt/images to the desired destination works around this error. Version-Release number of selected component (if applicable): virt-manager-0.6.0-2.fc10.i386 How reproducible: Steps to Reproduce: 1. create new virtual machine inside virt-manager 2. choose simple file-dir outside of /var/lib/libvirt/images/ 3. choose forward Actual results: Error: Uncaught error validating input: local variable 'verr' referenced before assignment Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/create.py", line 303, in forward if(self.validate(notebook.get_current_page()) != True): File "/usr/share/virt-manager/virtManager/create.py", line 1009, in validate conn=self._guest.conn) File "/usr/lib/python2.5/site-packages/virtinst/VirtualDisk.py", line 135, in __init__ self.__validate_params() File "/usr/lib/python2.5/site-packages/virtinst/VirtualDisk.py", line 369, in __validate_params self.__check_if_path_managed() File "/usr/lib/python2.5/site-packages/virtinst/VirtualDisk.py", line 348, in __check_if_path_managed "connection: %s" % (self.path, verr)) UnboundLocalError: local variable 'verr' referenced before assignment
I get this error even when using the default path. python-virtinst-0.400.0-2.fc10.noarch This corrected it for me: diff -up virtinst-0.400.0/virtinst/VirtualDisk.py.org virtinst-0.400.0/virtinst/VirtualDisk.py --- virtinst-0.400.0/virtinst/VirtualDisk.py.org 2008-10-19 00:18:29.000000000 -0400 +++ virtinst-0.400.0/virtinst/VirtualDisk.py 2008-10-19 00:18:34.000000000 -0400 @@ -302,7 +302,7 @@ class VirtualDisk(VirtualDevice): def __check_if_path_managed(self): vol = None - err = None + verr = None pool = util.lookup_pool_by_path(self.conn, os.path.dirname(self.path)) if pool:
Thanks for the patch, identical fix was already upstream. Building a new rawhide package now. *** This bug has been marked as a duplicate of bug 467228 ***