Bug 1852314

Summary: Exporting an OVA file from a VM results in its ovf file having a format of RAW when the disk is COW [RHV clone - 4.3.11]
Product: Red Hat Enterprise Virtualization Manager Reporter: RHV bug bot <rhv-bugzilla-bot>
Component: ovirt-engineAssignee: Steven Rosenberg <srosenbe>
Status: CLOSED ERRATA QA Contact: Polina <pagranat>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: ahadas, bugs, michal.skrivanek, pagranat, pelauter, rdlugyhe, sbonazzo
Target Milestone: ovirt-4.3.11Keywords: ZStream
Target Release: 4.3.11   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhv-4.3.11-4 Doc Type: Bug Fix
Doc Text:
Previously, exporting a virtual machine or template to an OVA file incorrectly sets its format in the OVF metadata file to "RAW". This issue causes problems using the OVA file. The current release fixes this issue. Exporting to OVA sets the format in the OVF metadata file to "COW", which represents the disk's actual format, qcow2.
Story Points: ---
Clone Of: 1845473 Environment:
Last Closed: 2020-09-30 10:07:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1845473    
Bug Blocks: 1830762    

Description RHV bug bot 2020-06-30 06:22:31 UTC
+++ This bug is a downstream clone. The original bug is: +++
+++   bug 1845473 +++
======================================================================

Description of problem: When exporting a VM to an OVA file the export succeeds, but when extracting the ovf file from the OVA file via tar the ovf metadata has its format field set to RAW. An inspection of the actual disk file via qemu-img info shows that the disk format is actually qcow2.


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


How reproducible:


Steps to Reproduce:
1. Export as an OVA file a VM with a disk attached
2. Access the Host and use tar xvf to extract the vm.ovf file and the disk
3. open the ovf file and search for the format

Actual results:

The format is set to RAW


Expected results:

The format should be set to COW


Additional info:


Use "qemu-img info " command on the disk file to verify the format is qcow2.

(Originally by Steven Rosenberg)

Comment 1 RHV bug bot 2020-06-30 06:22:34 UTC
(In reply to Steven Rosenberg from comment #0)
> Steps to Reproduce:
> 1. Export as an OVA file a VM with a disk attached

Adding to the above that the disk should be of type RAW and with no snapshots.

(Originally by Arik Hadas)

Comment 6 Sandro Bonazzola 2020-07-06 15:02:19 UTC
$ git tag --contains da8dc63d6558c32919e6540acf0c9d8206692f02
ovirt-engine-4.3.11.1

Comment 9 Polina 2020-07-12 08:18:01 UTC
verified on ovirt-engine-4.3.11-0.1.el7.noarch

ovf:format="http://www.gnome.org/~markmc/qcow-image-format.html" ovf:volume-format="COW"

Comment 15 errata-xmlrpc 2020-09-30 10:07:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Virtualization Engine security, bug fix 4.3.11), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4112