Bug 1056126
Summary: | virt-v2v OVA/OVF import fails with 'MegaBytes' as memory allocation units | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Ronald van Zantvoort <van.zantvoort> | ||||||
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||||
Status: | CLOSED WONTFIX | QA Contact: | |||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | unspecified | CC: | mbooth, ptoscano, rbalakri, rjones, shavivi, van.zantvoort | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2015-04-15 15:47:34 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: | |||||||||
Attachments: |
|
Description
Ronald van Zantvoort
2014-01-21 14:37:29 UTC
hmmm... Strangely enough the examples in the comments behind AllocationUnits do specify 'bytes*10^3' as specific possibility :) However, so would 'bytes' be, which is something the code doesn't take into account either, nor decimal counts. Created attachment 853338 [details]
Proposed patch; fully compliant with OVF specs AFAICT
Patch changes the Memory parser to include the full OVF spec. Old parser just supported
'byte * 2^[number]', new parser accepts for example:
'byte'
'MegaBytes'
'KiloBytes * 2^5'
'byte*10^3'
Furthermore, according to spec, VirtualQuantityUnits should be used to find the unit for VirtualQuantity, but neither VMware nor VirtualBox seem to do this, instead insisting on AllocationUnits.
After patch checks VirtualQuantityUnits first, and if it's not there, fall back to AllocationUnits.
Created attachment 853938 [details] Revised patch; split out byte-calculation into function Revised patch, the Units property interpretation into bytes is now in a separate function so it can be reused for https://bugzilla.redhat.com/show_bug.cgi?id=1056640 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. (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. |