Bug 1684140 - Import OVA failed to parse the OVF - Error loading ovf, message Content is not allowed in prolog
Summary: Import OVA failed to parse the OVF - Error loading ovf, message Content is no...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.3.1
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ovirt-4.3.3
: 4.3.0
Assignee: Shmuel Melamud
QA Contact: Liran Rotenberg
URL:
Whiteboard:
Depends On:
Blocks: 1645229 1658249
TreeView+ depends on / blocked
 
Reported: 2019-02-28 14:35 UTC by Liran Rotenberg
Modified: 2019-05-08 12:39 UTC (History)
5 users (show)

Fixed In Version: ovirt-engine-4.3.3.1
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-08 12:39:10 UTC
oVirt Team: Virt
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
logs (86.15 KB, application/x-xz)
2019-02-28 14:41 UTC, Liran Rotenberg
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2019:1085 0 None None None 2019-05-08 12:39:21 UTC
oVirt gerrit 98419 0 'None' MERGED core: Redundant quotes around OVF in OVA export 2020-05-03 11:37:23 UTC
oVirt gerrit 98605 0 'None' MERGED core: Remove redundant quotes in extract_ova.py parameters 2020-05-03 11:37:23 UTC

Description Liran Rotenberg 2019-02-28 14:35:24 UTC
Description of problem:
After making an OVA file using RHEV, trying to import it fails with engine error:
Error parsing OVF due to Error loading ovf, message Content is not allowed in prolog.

This error is shown when trying to import using REST API. Using the WEB UI the window stuck on "loading".

Version-Release number of selected component (if applicable):
ovirt-engine-4.3.1.1-0.1.el7.noarch
vdsm-4.30.9-1.el7ev.x86_64
qemu-kvm-rhev-2.12.0-21.el7.x86_64
libvirt-4.5.0-10.el7_6.4.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Create a VM.
2. Export the VM as OVA.
3. Import the OVA made in step 2.

Actual results:
Using REST API - getting an error in the engine, WEB UI window is keep showing as loading.

Expected results:
REST API - Import the OVA successfully.
WEB UI - show the VM in the given path, letting the user to import it.

Additional info:
The immediate difference I saw in the OVA logs is that the XML is now starting with a quote: '<?xml version="1.0" encoding="UTF-8"? .......</ovf:Envelope>' 
while before(working) was without it: <?xml version="1.0" encoding="UTF-8"? .......</ovf:Envelope>

Comment 1 Liran Rotenberg 2019-02-28 14:41:20 UTC
Created attachment 1539534 [details]
logs

Comment 6 RHV bug bot 2019-03-29 11:14:48 UTC
WARN: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops

Comment 8 Liran Rotenberg 2019-04-02 10:58:10 UTC
Verified on:
ovirt-engine-4.3.3.1-0.1.el7.noarch

Steps:
1. Create a VM.
2. Export the VM as OVA.
3. Import the OVA made in step 2.

Tested both with WEB-UI and REST API.

Results:
In both tests, the import was successful.

Comment 10 errata-xmlrpc 2019-05-08 12:39:10 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, 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/RHEA-2019:1085


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