Bug 1852314 - 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]
Summary: Exporting an OVA file from a VM results in its ovf file having a format of RA...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.3.11
: 4.3.11
Assignee: Steven Rosenberg
QA Contact: Polina
URL:
Whiteboard:
Depends On: 1845473
Blocks: 1830762
TreeView+ depends on / blocked
 
Reported: 2020-06-30 06:22 UTC by RHV bug bot
Modified: 2020-09-30 10:07 UTC (History)
7 users (show)

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.
Clone Of: 1845473
Environment:
Last Closed: 2020-09-30 10:07:26 UTC
oVirt Team: Virt
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4112 0 None None None 2020-09-30 10:07:33 UTC
oVirt gerrit 109549 0 master MERGED Core: Exporting a VM with disk as an OVA is RAW 2020-12-14 15:48:49 UTC
oVirt gerrit 109662 0 ovirt-engine-4.3 MERGED Core: Exporting a VM with disk as an OVA is RAW 2020-12-14 15:48:47 UTC

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


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