Bug 1422087 - wrong VMware OVA import capacity
Summary: wrong VMware OVA import capacity
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: vdsm
Classification: oVirt
Component: General
Version: 4.18.30
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.1.1
: 4.19.6
Assignee: Tomáš Golembiovský
QA Contact: Nisim Simsolo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-14 12:46 UTC by Michal Skrivanek
Modified: 2017-04-21 09:44 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-21 09:44:16 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-4.1+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 71168 0 master MERGED v2v: decode capacity units from OVA 2017-02-15 07:25:15 UTC
oVirt gerrit 72349 0 ovirt-4.1 MERGED v2v: decode capacity units from OVA 2017-02-15 12:19:45 UTC

Description Michal Skrivanek 2017-02-14 12:46:30 UTC
When importing from OVA, we mistakenly assume that the disk capacity is always stored in GB. This is untrue and can mean that the disk capacity reported to engine is incorrect. This can is some cases cause the import to fail on storage errors because engine tries to prepare image in order of magnitudes larger than is necessary. The correct units of the ovf:capacity attribute are stored in ovf:capacityAllocationUnits attribute. The correct flow is to parse the units and then properly scale the reported capacity.

Comment 1 Nisim Simsolo 2017-03-19 14:25:46 UTC
Verification builds:
ovirt-engine-4.1.1.4-0.1.el7
vdsm-4.19.7-1.el7ev.x86_64
libvirt-client-2.0.0-10.el7_3.5.x86_64
qemu-kvm-rhev-2.6.0-28.el7_3.6.x86_64
sanlock-3.4.0-1.el7.x86_64
virt-v2v-1.32.7-3.el7_3.2.x86_64

Verification scenario: 
1. Create VMware VM with disk size smaller than 1GB.
2. Install OS on the VM.
3. Using VMware - vSphere client, export VM to OVF template (formatted as OVA).
4. Import OVA to RHEV.
5. Verify import succeeded, disk size in RHEV is shown as < 1 GB
6. Run VM, Verify VM is running properly and disk size (used/available) is equal to the original VM disk values.
7. Repeat test steps 1-6 this time import the VM itself and not the OVA.


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