Bug 904763 - IOError: [Errno 2] No such file or directory: '/usr/share/virtio-win/virtio-win.vfd' during local iso setup
Summary: IOError: [Errno 2] No such file or directory: '/usr/share/virtio-win/virtio-w...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-installer
Version: 3.2
Hardware: x86_64
OS: Linux
urgent
medium
Target Milestone: ---
: 3.3
Assignee: Sandro Bonazzola
QA Contact:
URL:
Whiteboard: integration
Depends On:
Blocks: 920035 951107
TreeView+ depends on / blocked
 
Reported: 2013-01-27 12:39 UTC by Netbulae
Modified: 2013-09-23 07:31 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
: 920035 (view as bug list)
Environment:
Last Closed: 2013-09-23 07:31:02 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)
engine setup log (97.30 KB, text/x-log)
2013-01-27 12:39 UTC, Netbulae
no flags Details
engine setup log (97.30 KB, text/x-log)
2013-02-18 15:32 UTC, Netbulae
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 12207 0 None None None Never

Description Netbulae 2013-01-27 12:39:34 UTC
Created attachment 688416 [details]
engine setup log

Description of problem:

It looks like there is something going wrong with copying the windows vfd to the iso domain.

2013-01-27 13:27:21::DEBUG::common_utils::472::root:: output =  inst_add_iso_storage_domain 
-----------------------------
 
(1 row)


2013-01-27 13:27:21::DEBUG::common_utils::473::root:: stderr = 
2013-01-27 13:27:21::DEBUG::common_utils::474::root:: retcode = 0
2013-01-27 13:27:21::DEBUG::nfsutils::145::root:: refreshing NFS exports
2013-01-27 13:27:21::DEBUG::setup_sequences::59::root:: running _loadFilesToIsoDomain
2013-01-27 13:27:21::ERROR::engine-setup::1783::root:: Traceback (most recent call last):
  File "/bin/engine-setup", line 1780, in _loadFilesToIsoDomain
    utils.copyFile(filename, targetPath, basedefs.CONST_VDSM_UID, basedefs.CONST_KVM_GID)
  File "/usr/share/ovirt-engine/scripts/common_utils.py", line 705, in copyFile
    shutil.copy2(fileSrc, destination)
  File "/usr/lib64/python2.7/shutil.py", line 128, in copy2
    copyfile(src, dst)
  File "/usr/lib64/python2.7/shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/usr/share/virtio-win/virtio-win.vfd'

2013-01-27 13:27:21::ERROR::engine-setup::1784::root:: Failed to copy files to iso domain


Version-Release number of selected component (if applicable):
3.2 beta

Comment 1 Itamar Heim 2013-01-30 08:56:05 UTC
I don't think there is a windows vfd yet for ovirt (maybe there is in fedora?). not sure if this bug should fix having one or not copying it.

Comment 2 Sandro Bonazzola 2013-02-14 08:04:48 UTC
I can't reproduce this on a F18 clean install + yum update and ovirt 3.2 from beta repository. 
Netbulae can you try to reproduce the issue?

Comment 3 Netbulae 2013-02-18 13:58:44 UTC
Sorry, it took me a while to get some time to test it.

Still the same error on 3.2 stable:

2013-02-18 14:54:15::DEBUG::nfsutils::145::root:: refreshing NFS exports
2013-02-18 14:54:15::DEBUG::setup_sequences::59::root:: running _loadFilesToIsoDomain
2013-02-18 14:54:15::ERROR::engine-setup::1852::root:: Traceback (most recent call last):
  File "/bin/engine-setup", line 1849, in _loadFilesToIsoDomain
    utils.copyFile(filename, targetPath, basedefs.CONST_VDSM_UID, basedefs.CONST_KVM_GID)
  File "/usr/share/ovirt-engine/scripts/common_utils.py", line 705, in copyFile
    shutil.copy2(fileSrc, destination)
  File "/usr/lib64/python2.7/shutil.py", line 128, in copy2
    copyfile(src, dst)
  File "/usr/lib64/python2.7/shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/usr/share/virtio-win/virtio-win.vfd'

2013-02-18 14:54:15::ERROR::engine-setup::1853::root:: Failed to copy files to iso domain

Comment 4 Sandro Bonazzola 2013-02-18 14:25:49 UTC
Netbulae can you attach the full engine-setup log of the comment #3 run?

Comment 5 Netbulae 2013-02-18 15:32:30 UTC
Created attachment 698923 [details]
engine setup log

Comment 6 Sandro Bonazzola 2013-02-19 13:24:26 UTC
Thanks Netbulae, I've reproduced the issue.
Looking at the code of engine-setup, it tries to load files (iso,vfd) from existing rpms (for RHEL) to the configured iso domain.
I think this part need a little rewrite for testing if the files exists before trying to copy them, avoiding the traceback in the log file.
/usr/share/virtio-win/virtio-win.vfd is not provided by any package in Fedora.

Comment 8 Sandro Bonazzola 2013-03-08 14:06:03 UTC
setting back to post because downstream patches are not yet merged.

Comment 9 Sandro Bonazzola 2013-03-11 09:02:25 UTC
reverting what I've done with comment #8, cloned to bug #920035 for downstream.

Comment 10 Itamar Heim 2013-08-21 16:39:49 UTC
as RC is built, moving to ON_QA (hopefully did not catch incorrect bugs when doing this)

Comment 11 Itamar Heim 2013-09-23 07:31:02 UTC
closing as this should be in 3.3 (doing so in bulk, so may be incorrect)


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