Bug 1070883 - Uncaught error validating install parameters: cannot stat file .... for an irrelevant file
Summary: Uncaught error validating install parameters: cannot stat file .... for an ir...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-manager
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-27 16:27 UTC by Dr. David Alan Gilbert
Modified: 2014-03-04 06:45 UTC (History)
3 users (show)

Fixed In Version: virt-manager-1.0.0-3.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-04 06:45:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dr. David Alan Gilbert 2014-02-27 16:27:10 UTC
Description of problem:
Uncaught error validating install parameters: cannot stat file '/home/dgilbert/Blahblah-x_Ethernet_Dual_SFP+_Port_Adapter_Card_User_Manual.pdf': No such file or directory
(slightly obfuscated name).
That file used to exist in my home directory this morning, but I mv'd it into my ~/Documents - but it should never have been associated with VM storage, and anyway why would a missing file I'm not using in my VM stop creation.

Version-Release number of selected component (if applicable):
virt-manager-common-1.0.0-2.fc20.noarch
virt-manager-1.0.0-2.fc20.noarch

How reproducible:
seems 100% - but not sure how it got to this state, see below

Steps to Reproduce:
1. Create a new VM on local machine, selecting a local ISO and local storage
2.  hit forward at end of stage 4

Actual results:
Uncaught error validating install parameters: cannot stat file '/home/dgilbert/Blahblah-x_Ethernet_Dual_SFP+_Port_Adapter_Card_User_Manual.pdf': No such file or directory

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 1397, in validate
    return self.validate_storage_page()
  File "/usr/share/virt-manager/virtManager/create.py", line 1638, in validate_storage_page
    if self.addstorage.validate_disk_object(ret) is False:
  File "/usr/share/virt-manager/virtManager/addstorage.py", line 360, in validate_disk_object
    names = disk.is_conflict_disk()
  File "/usr/share/virt-manager/virtinst/devicedisk.py", line 863, in is_conflict_disk
    read_only=self.read_only)
  File "/usr/share/virt-manager/virtinst/devicedisk.py", line 380, in path_in_use_by
    for vol in conn.fetch_all_vols() if vol.backing_store)
  File "/usr/share/virt-manager/virtinst/connection.py", line 237, in fetch_all_vols
    return self.cb_fetch_all_vols()  # pylint: disable=E1102
  File "/usr/share/virt-manager/virtManager/connection.py", line 178, in <lambda>
    for obj in pool.get_volumes(refresh=False).values()])
  File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 141, in get_xmlobj
    xml = self._get_raw_xml(inactive, refresh_if_nec)
  File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 197, in _get_raw_xml
    self.refresh_xml()
  File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 160, in refresh_xml
    self._xml = self._XMLDesc(self._active_xml_flags)
  File "/usr/share/virt-manager/virtManager/storagepool.py", line 44, in _XMLDesc
    return self._backend.XMLDesc(flags)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2697, in XMLDesc
    if ret is None: raise libvirtError ('virStorageVolGetXMLDesc() failed', vol=self)
libvirtError: cannot stat file '/home/dgilbert/Blahblah-3_Ethernet_Dual_SFP+_Port_Adapter_Card_User_Manual.pdf': No such file or directory

Expected results:
an installing vm

Additional info:

Comment 1 Cole Robinson 2014-02-27 18:20:04 UTC
Thanks for the report, fixed upstream now:

commit f67df117017e6de855a8c0e900e47fe920dfaa48
Author: Cole Robinson <crobinso>
Date:   Thu Feb 27 13:16:21 2014 -0500

    vmm connection: Handle missing storage volumes (bz 1070883)
    
    Similar to what was done in a808bd669293ac66047a716b2e84a5a64c99667b
    for the virtinst connection wrapper.

Comment 2 Fedora Update System 2014-02-28 18:24:12 UTC
virt-manager-1.0.0-3.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/virt-manager-1.0.0-3.fc20

Comment 3 Fedora Update System 2014-03-01 14:07:05 UTC
Package virt-manager-1.0.0-3.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing virt-manager-1.0.0-3.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-3272/virt-manager-1.0.0-3.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-03-04 06:45:41 UTC
virt-manager-1.0.0-3.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.