Bug 1056534 - virt-v2v OVF/OVA import fails when disks aren't attached to either IDE or SCSI controllers
Summary: virt-v2v OVF/OVA import fails when disks aren't attached to either IDE or SCS...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-22 11:54 UTC by Ronald van Zantvoort
Modified: 2015-08-27 14:33 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-15 15:47:45 UTC
Embargoed:


Attachments (Terms of Use)
This proposed patch makes the device list OVF-compliant, checks all possible controllers for disks and preserves bustypes (6.92 KB, patch)
2014-01-22 14:56 UTC, Ronald van Zantvoort
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1056045 0 unspecified CLOSED virt-v2v OVA import fails when no (optional) manifest file is included 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1056126 0 unspecified CLOSED virt-v2v OVA/OVF import fails with 'MegaBytes' as memory allocation units 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1056640 0 unspecified CLOSED virt-v2v OVA/OVF import fails when no (optional) ovf:capacityAllocationUnits is specified 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1056983 0 unspecified CLOSED virt-v2v OVA/OVF import fails when no (optional) ovf:populatedSize is specified 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1057006 0 unspecified CLOSED virt-v2v OVA/OVF import fails when no (optional) Name under VirtualSystem is specified 2021-02-22 00:41:40 UTC


Description Ronald van Zantvoort 2014-01-22 11:54:27 UTC
Description of problem:
virt-v2v only checks for disks attached to devices with ResourceType 5 or 6 (an IDE Controller and a Parallel SCSI HBA).
Disks attached to any other type of controller (FC HBA, iSCSI HBA, IB HCA, Other storage device) will not be picked up.

Version-Release number of selected component (if applicable):
Fedora 20/virt-v2v 0.9.0

How reproducible:
Attempt to import an OVA with an OVF with any disks attached to a non-IDE or parallel SCSI HBA. Disks attached to those controllers will not be detected.

Additional info:
The OVF standards specify CIM_ResourceAllocationSettingData (http://schemas.dmtf.org/wbem/cim-html/2.39.0+/CIM_ResourceAllocationSettingData.html) as ruling standard for ResourceType.
According to this spec, 5 and 6 are IDE Controller and Parallel SCSI HBA, resp.

For example VirtualBox's SATA controller will therefore (for lack of an ID for SATA controllers) become ID 20, Other storage device. The same would logically follow for SAS controllers, while FC, iSCSI and IB controllers have their own ID's.

virt-v2v doesn't consider any of these ID's and therefore can't pick up on any of those disks.

Another interesting point is that it also doesn't keep the controller metadata, instead collapsing into 'hd[a-z]' and 'sd[a-z]' disks.

Comment 1 Ronald van Zantvoort 2014-01-22 14:56:50 UTC
Created attachment 853903 [details]
This proposed patch makes the device list OVF-compliant, checks all possible controllers for disks and preserves bustypes

Proposed patch:

* hw_families & naming are now OVF compliant
* All listed controllers (the list is easily modifiable) are checked for disks
* Disks (attempt to) have their bustype set correctly by an additional metadata type and by evaluating the controller's ResourceSubType
* Both DVD's and CD-ROM's are now mapped in as cdroms

Comment 2 Richard W.M. Jones 2015-04-15 15:47:45 UTC
Hi, thanks for the bug report.  Unfortunately it is filed against a
very old version of virt-v2v (0.9) which we don't support at all.

Luckily there is a newer version which almost certainly fixes your
bug already.  It's available starting in Fedora 21.  If you still
experience this bug, please try with the new version, and reopen
if it still happens.

Comment 3 Ronald van Zantvoort 2015-08-27 14:33:11 UTC
(In reply to Richard W.M. Jones from comment #1)
> Unfortunately it is filed against a
> very old version of virt-v2v (0.9) 

Well, that tends to happen if you wait 16 months with a reply to a ready2commit submitted patch.


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