Bug 1368817

Summary: NPE on detection of unmanaged VM
Product: [oVirt] ovirt-engine Reporter: Arik <ahadas>
Component: BLL.VirtAssignee: Arik <ahadas>
Status: CLOSED CURRENTRELEASE QA Contact: Israel Pinto <ipinto>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: bugs, tjelinek
Target Milestone: ovirt-4.1.0-alphaFlags: rule-engine: ovirt-4.1+
rule-engine: planning_ack+
rule-engine: devel_ack+
mavital: testing_ack+
Target Release: 4.1.0.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-15 14:55:03 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:

Description Arik 2016-08-21 14:45:08 UTC
Description of problem:
The mechanism that was added in order to cache the static data of the VM used by the monitoring doesn't handle the case of unmanaged (external or hosted-engine) VMs well and produces a NPE.

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


How reproducible:


Steps to Reproduce:
1. Add host with running VMs.
2.
3.

Actual results:
NPE

Expected results:
The host should be added with no NPE.

Additional info:
VmManager#init

Comment 1 Tomas Jelinek 2016-08-22 07:00:00 UTC
it happens only on 4.1

Comment 2 Sandro Bonazzola 2016-12-12 13:57:13 UTC
The fix for this issue should be included in oVirt 4.1.0 beta 1 released on December 1st. If not included please move back to modified.

Comment 3 Israel Pinto 2017-02-06 08:28:18 UTC
Verify with:
Red Hat Virtualization Manager Version: 4.1.0.3-0.1.el7

OS Version:RHEL - 7.3 - 7.el7
Kernel Version:3.10.0 - 550.el7.x86_64
KVM Version:2.6.0 - 28.el7_3.3.1
LIBVIRT Version:libvirt-2.0.0-10.el7_3.4
VDSM Version:vdsm-4.19.4-1.el7ev

Steps: 
Add host with running VM (from different environment) and check for NPE 

Results:
No NPE and host was add to set the external VMs can be stop from the Engine.