Bug 1374179

Summary: NPE when querying VM disks
Product: [oVirt] ovirt-engine Reporter: Arik <ahadas>
Component: BLL.StorageAssignee: Tal Nisan <tnisan>
Status: CLOSED WORKSFORME QA Contact: Aharon Canan <acanan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.0.3CC: bugs, michal.skrivanek, tnisan
Target Milestone: ovirt-4.0.5Flags: amureini: ovirt-4.0.z?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
Target Release: ---   
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: 2016-09-19 11:07:16 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:
Attachments:
Description Flags
engine log none

Description Arik 2016-09-08 07:59:44 UTC
Created attachment 1198943 [details]
engine log

Description of problem:
Noticed the following error in the log of rhev.tlv:
2016-09-08 09:44:10,102 ERROR [org.ovirt.engine.core.bll.storage.disk.GetAllDisksByVmIdQuery] (default task-199) [] Exception: java.lang.NullPointerException
        at org.ovirt.engine.core.common.businessentities.storage.BaseDisk.setDiskVmElements(BaseDisk.java:83) [common.jar:]
        at org.ovirt.engine.core.bll.storage.disk.GetAllDisksByVmIdQuery.executeQueryCommand(GetAllDisksByVmIdQuery.java:40) [bll.jar:]
        at org.ovirt.engine.core.bll.QueriesCommandBase.executeCommand(QueriesCommandBase.java:103) [bll.jar:]
        at org.ovirt.engine.core.dal.VdcCommandBase.execute(VdcCommandBase.java:33) [dal.jar:]
        at org.ovirt.engine.core.bll.Backend.runQueryImpl(Backend.java:558) [bll.jar:]
        at org.ovirt.engine.core.bll.Backend.runQuery(Backend.java:529) [bll.jar:]


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

How reproducible:
Not clear

Steps to Reproduce:
Probably just to trigger the query

Actual results:
NPE

Expected results:
No NPE

Additional info:

Comment 1 Red Hat Bugzilla Rules Engine 2016-09-08 09:18:07 UTC
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.

Comment 2 Allon Mureinik 2016-09-08 09:27:14 UTC
Tal, does this ring any bells?

Comment 3 Tal Nisan 2016-09-19 11:07:16 UTC
Couldn't reproduce after numerous reproduction attempts in any constellation I can think of.
In any case the NPE is only in the UI thread that attempts to gather the VM<->Disk data and does not affect any backend flow.
Closing for now as works for me until new information or clearer steps to reproduce will be prodived