Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1362243

Summary: NullPointerException when removing vm with disks
Product: [oVirt] ovirt-engine Reporter: Raz Tamir <ratamir>
Component: BLL.StorageAssignee: Tal Nisan <tnisan>
Status: CLOSED WORKSFORME QA Contact: Aharon Canan <acanan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0.2.2CC: bugs, tnisan
Target Milestone: ovirt-4.0.4Keywords: Automation
Target Release: ---Flags: tnisan: ovirt-4.0.z?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
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-08-02 10:19:37 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 Raz Tamir 2016-08-01 16:24:17 UTC
Created attachment 1186466 [details]
engine log

Description of problem:
A NullPointerException is raised when removing a vm with it's disks:
2016-08-01 19:19:42,572 INFO  [org.ovirt.engine.core.bll.storage.disk.image.RemoveAllVmImagesCommand] (org.ovirt.thread.pool-6-thread-25) [31ac4df1] Running command: RemoveAllVmImagesCommand internal: true. Entities affected :  ID: c3a96b77-01c6-4cbf-aecb-65aab493bd78 Type: VM
2016-08-01 19:19:42,593 ERROR [org.ovirt.engine.core.bll.storage.disk.GetAllDisksByVmIdQuery] (default task-25) [] Query 'GetAllDisksByVmIdQuery' failed: null
2016-08-01 19:19:42,633 INFO  [org.ovirt.engine.core.bll.storage.disk.image.RemoveImageCommand] (org.ovirt.thread.pool-6-thread-25) [2af57627] Running command: RemoveImageCommand internal: true. Entities affected :  ID: 00000000-0000-0000-0000-000000000000 Type: Storage
2016-08-01 19:19:42,595 ERROR [org.ovirt.engine.core.bll.storage.disk.GetAllDisksByVmIdQuery] (default task-25) [] Exception: java.lang.NullPointerException



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

How reproducible:
100%

Steps to Reproduce:
1. Create a vm with 1 disk attached
2. Remove the vm with the disk
3.

Actual results:
The vm will be removed but NullPointerException is raised in engine.log (attached)

Expected results:


Additional info:

Comment 1 Tal Nisan 2016-08-02 10:19:37 UTC
Tried to reproduce but could not, looking at the stacktrace it seems that everything should be OK as well.
After discussing with Raz it seems that it does not reproduce on their environments so closing as WORKSFORME, feel free to reopen if you find a certain scenario in which it reproduces