Bug 1508908

Summary: OVF parsing failure: cannot read 'VmInit' with value: null
Product: [oVirt] ovirt-engine Reporter: Elad <ebenahar>
Component: BLL.StorageAssignee: Maor <mlipchuk>
Status: CLOSED CURRENTRELEASE QA Contact: Raz Tamir <ratamir>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.1.7.4CC: amureini, bugs, ebenahar, michal.skrivanek, mlipchuk
Target Milestone: ovirt-4.1.7Keywords: Automation, Regression
Target Release: ---Flags: rule-engine: ovirt-4.1+
rule-engine: blocker+
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-13 12:25:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1508327    
Bug Blocks:    
Attachments:
Description Flags
engine.log none

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