Bug 1684140

Summary: Import OVA failed to parse the OVF - Error loading ovf, message Content is not allowed in prolog
Product: Red Hat Enterprise Virtualization Manager Reporter: Liran Rotenberg <lrotenbe>
Component: ovirt-engineAssignee: Shmuel Melamud <smelamud>
Status: CLOSED ERRATA QA Contact: Liran Rotenberg <lrotenbe>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.3.1CC: mavital, michal.skrivanek, mtessun, rbarry, Rhev-m-bugs
Target Milestone: ovirt-4.3.3Keywords: Automation, Regression
Target Release: 4.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.3.3.1 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-08 12:39:10 UTC Type: Bug
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:    
Bug Blocks: 1645229, 1658249    
Attachments:
Description Flags
logs none

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