Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1261951 - Improve error message when OVF cannot be parsed from export domain
Improve error message when OVF cannot be parsed from export domain
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
unspecified
Unspecified Unspecified
medium Severity medium
: ovirt-4.0.0-alpha
: 4.0.0
Assigned To: Shahar Havivi
sefi litmanovich
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-10 09:48 EDT by Richard W.M. Jones
Modified: 2016-08-23 16:29 EDT (History)
10 users (show)

See Also:
Fixed In Version: ovirt 4.0.0 alpha1
Doc Type: Bug Fix
Doc Text:
This update improves the error message written to the log when an OVF from the export domain cannot be parsed. The error message now attempts to pinpoint the problem.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-08-23 16:29:17 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Virt
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 47448 master MERGED Improve error message when OVF cannot be parsed from export domain Never
Red Hat Product Errata RHEA-2016:1743 normal SHIPPED_LIVE Red Hat Virtualization Manager 4.0 GA Enhancement (ovirt-engine) 2016-09-02 17:54:01 EDT

  None (edit)
Description Richard W.M. Jones 2015-09-10 09:48:24 EDT
Description of problem:

When OVF from the export domain cannot be parsed, the error
message is deeply unhelpful.  eg:

https://bugzilla.redhat.com/show_bug.cgi?id=1261281#c5

  "Error parsing OVF due to 2"

Even including the stack trace as debug info would massively
improve the situation, because we could at least see exactly
where in the parser things were failing.

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

ovirt 3.5

How reproducible:

100%

Steps to Reproduce:
1. Export any VM into the export storage domain.
2. Grab the OVF from
   https://bugzilla.redhat.com/show_bug.cgi?id=1261281#c5
3. Overwrite the VM's OVF in the ESD with the buggy OVF.
4. Go to the Storage -> Export tab
5. You will see an error message about corrupted OVF.
6. In engine.log you'll see the useless error message.
Comment 1 sefi litmanovich 2016-06-15 04:41:17 EDT
Verified with rhevm-4.0.0.2-0.1.el7ev.noarch according to steps in description.
After exporting the vm to export domain I changed the ovf on the ESD, played with several sections according to the attached patch.
Error message appears on audit log and engine log e.g.:

Failed to read VM '<UNKNOWN>' OVF, it may be corrupted. Underlying error message: OVF error: [Empty Name]: cannot read 'rasd:VirtualQuantity' with value: For input string: "hallo"

seems to be the expected result
Comment 3 errata-xmlrpc 2016-08-23 16:29:17 EDT
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://rhn.redhat.com/errata/RHEA-2016-1743.html

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