Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 904763

Summary: IOError: [Errno 2] No such file or directory: '/usr/share/virtio-win/virtio-win.vfd' during local iso setup
Product: [Retired] oVirt Reporter: Netbulae <info>
Component: ovirt-engine-installerAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: urgent    
Version: 3.2CC: acathrow, alourie, eedri, iheim, jkt, pzhukov, sbonazzo
Target Milestone: ---   
Target Release: 3.3   
Hardware: x86_64   
OS: Linux   
Whiteboard: integration
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 920035 (view as bug list) Environment:
Last Closed: 2013-09-23 07:31:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 920035, 951107    
Attachments:
Description Flags
engine setup log
none
engine setup log none

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)