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 - NullPointerException when removing vm with disks
Summary: NullPointerException when removing vm with disks
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.0.2.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: ovirt-4.0.4
: ---
Assignee: Tal Nisan
QA Contact: Aharon Canan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-01 16:24 UTC by Raz Tamir
Modified: 2016-08-02 10:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-02 10:19:37 UTC
oVirt Team: Storage
tnisan: ovirt-4.0.z?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)
engine log (deleted)
2016-08-01 16:24 UTC, Raz Tamir
no flags Details

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


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