Description of problem: traceback creating a KVM fully virtualized x86_64 guest with LVM logical volume as disk. Looks to be a typo 'verr' vs 'ver'? Version-Release number of selected component (if applicable): virt-manager-0.6.0-2.fc10.x86_64 How reproducible: 100% Steps to Reproduce: 1. Launch virt-manager 2. Create a KVM x86_64 fully virtualized guest 3. Select Network tree installation method 4. Choose http://download.fedora.redhat.com/pub/fedora/linux/development/x86_64/os 5. Select a LVM logical volume as the backing store (/dev/linux/vguest1), select Next Actual results: 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 Expected results: No traceback Additional info:
Perhaps just a variable not being initialized? The following fix addresses the issue: --- /usr/lib/python2.5/site-packages/virtinst/VirtualDisk.py 2008-10-17 14:44:29.000000000 -0400 +++ /tmp/fix.py 2008-10-17 14:44:25.000000000 -0400 @@ -303,6 +303,7 @@ 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:
*** This bug has been marked as a duplicate of bug 467228 ***