Bug 1508908 - OVF parsing failure: cannot read 'VmInit' with value: null
Summary: OVF parsing failure: cannot read 'VmInit' with value: null
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.1.7.4
Hardware: x86_64
OS: Unspecified
unspecified
urgent
Target Milestone: ovirt-4.1.7
: ---
Assignee: Maor
QA Contact: Raz Tamir
URL:
Whiteboard:
Depends On: 1508327
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-02 13:32 UTC by Elad
Modified: 2017-11-20 15:37 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-11-13 12:25:50 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: blocker+


Attachments (Terms of Use)
engine.log (219.00 KB, application/x-gzip)
2017-11-02 13:32 UTC, Elad
no flags Details

Description Elad 2017-11-02 13:32:15 UTC
Created attachment 1347021 [details]
engine.log

Description of problem:
An attempt to list the unregistered VMs under an imported storage domain fails with the following:

2017-11-02 15:23:23,533+02 ERROR [org.ovirt.engine.core.utils.ovf.OvfManager] (default task-11) [814e3133-09d3-4149-920a-99b14e6441ee] Error parsing OVF due to OVF error: jhfj: cannot read 'VmInit' with value: null

Version-Release number of selected component (if applicable):
ovirt-engine-4.1.7.5-0.1.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. Have a storage domain and a VM with a disk that resides on it (could be achieved also with a diskless VM)
2. Deactivate and detach the storage domain from the data center
3. Attach the storage domain to the data center
4. Access the domain's unregistered VMs (via webadmin or REST API)


Actual results:
Failure to parse the OVFs on the storage domain with the mentioned exception

Expected results:
OVFs parsing should succeed


Additional info:
engine.log

Comment 1 Raz Tamir 2017-11-02 14:35:13 UTC
Raising severity as all register objects from an imported domain is probably broken because of this.
See https://bugzilla.redhat.com/show_bug.cgi?id=1497763

Comment 2 Yaniv Kaul 2017-11-02 16:07:04 UTC
Dup of https://bugzilla.redhat.com/show_bug.cgi?id=1508829 ?

Comment 3 Elad 2017-11-02 16:11:31 UTC
It's not the same scenario so not sure

Comment 4 Maor 2017-11-02 17:10:00 UTC
Can you please reproduce this scenario with debug mode, that way we should also see the entity's OVF.

Comment 5 Michal Skrivanek 2017-11-03 08:49:37 UTC
(In reply to Yaniv Kaul from comment #2)
> Dup of https://bugzilla.redhat.com/show_bug.cgi?id=1508829 ?

looks like bug 1508327, please retest since bug 1508327 is ON_QA already

Comment 6 Allon Mureinik 2017-11-05 12:24:49 UTC
(In reply to Michal Skrivanek from comment #5)
> (In reply to Yaniv Kaul from comment #2)
> > Dup of https://bugzilla.redhat.com/show_bug.cgi?id=1508829 ?
> 
> looks like bug 1508327, please retest since bug 1508327 is ON_QA already
Moving to ON_QA based on this input

Comment 7 Raz Tamir 2017-11-05 13:44:19 UTC
Verified on rhevm-4.1.7.6-0.1.el7


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