Bug 1374179 - NPE when querying VM disks
Summary: NPE when querying VM disks
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
high vote
Target Milestone: ovirt-4.0.5
: ---
Assignee: Tal Nisan
QA Contact: Aharon Canan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-08 07:59 UTC by Arik
Modified: 2016-09-19 11:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-19 11:07:16 UTC
oVirt Team: Storage
amureini: ovirt-4.0.z?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)
engine log (17.20 MB, text/plain)
2016-09-08 07:59 UTC, Arik
no flags Details

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


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