Bug 467548
| Summary: | Creating a new vm failes if image-file location outside default | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Sven Lankes <sven> |
| Component: | virt-manager | Assignee: | Daniel Berrangé <berrange> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | berrange, crobinso, hbrock, jruemker |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2008-10-20 14:02:37 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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 *** |
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