Bug 1337909 - NPE when trying to add a direct LUN disk
Summary: NPE when trying to add a direct LUN disk
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.0.0
Hardware: x86_64
OS: All
high vote
Target Milestone: ovirt-4.0.0-rc
: 4.0.0
Assignee: Tal Nisan
QA Contact: Kevin Alon Goldblatt
Depends On:
TreeView+ depends on / blocked
Reported: 2016-05-20 12:26 UTC by Yaniv Kaul
Modified: 2016-07-05 07:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2016-07-05 07:43:51 UTC
oVirt Team: Storage
rule-engine: ovirt-4.0.0+
rule-engine: blocker+
rule-engine: planning_ack+
amureini: devel_ack+
acanan: testing_ack+

Attachments (Terms of Use)
engine.log (256.38 KB, application/x-gzip)
2016-05-20 12:26 UTC, Yaniv Kaul
no flags Details

System ID Private Priority Status Summary Last Updated
oVirt gerrit 57896 0 master MERGED core: Fix NPE while trying to add a LUN disk to a VM 2016-05-24 08:43:02 UTC

Description Yaniv Kaul 2016-05-20 12:26:27 UTC
Created attachment 1159894 [details]

Description of problem:
When trying to add an iSCSI based direct LUN as a disk to a VM, I'm getting the following NPE. Same code works well on 3.6.x:
2016-05-20 06:40:40,338 ERROR [org.ovirt.engine.core.bll.storage.disk.AddDiskCommand] (default task-23) [5cf133a8] Command 'org.ovirt.engine.core.bll.storage.disk.AddDiskCommand' failed: null
2016-05-20 06:40:40,338 ERROR [org.ovirt.engine.core.bll.storage.disk.AddDiskCommand] (default task-23) [5cf133a8] 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.VmHandler.updateDisksVmDataForVm(VmHandler.java:338) [bll.jar:]
        at org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrder(VmDeviceUtils.java:991) [bll.jar:]
        at org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice(VmDeviceUtils.java:1398) [bll.jar:]
        at org.ovirt.engine.core.bll.utils.VmDeviceUtils.addDiskDevice(VmDeviceUtils.java:936) [bll.jar:]
        at org.ovirt.engine.core.bll.utils.VmDeviceUtils.addDiskDevice(VmDeviceUtils.java:928) [bll.jar:]
        at org.ovirt.engine.core.bll.storage.disk.AddDiskCommand.addManagedDeviceForDisk(AddDiskCommand.java:467) [bll.jar:]
        at org.ovirt.engine.core.bll.storage.disk.AddDiskCommand.lambda$createDiskBasedOnLun$0(AddDiskCommand.java:456) [bll.jar:]
        at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInNewTransaction(TransactionSupport.java:204) [utils.jar:]
        at org.ovirt.engine.core.bll.storage.disk.AddDiskCommand.createDiskBasedOnLun(AddDiskCommand.java:451) [bll.jar:]
        at org.ovirt.engine.core.bll.storage.disk.AddDiskCommand.executeVmCommand(AddDiskCommand.java:428) [bll.jar:]

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

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:

Additional info:

Comment 1 Red Hat Bugzilla Rules Engine 2016-05-20 12:26:32 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 2 Yaniv Kaul 2016-05-20 12:28:18 UTC
Tal - possible regression due to your recent changes?

Test code is @ https://gerrit.ovirt.org/#/c/57792/

Comment 3 Allon Mureinik 2016-05-22 04:31:17 UTC
(In reply to Yaniv Kaul from comment #2)
> Tal - possible regression due to your recent changes?
> Test code is @ https://gerrit.ovirt.org/#/c/57792/
Probably. Tal, please take care of this ASAP?

Comment 4 Yaniv Lavi 2016-05-23 13:14:57 UTC
oVirt 4.0 beta has been released, moving to RC milestone.

Comment 5 Yaniv Lavi 2016-05-23 13:19:14 UTC
oVirt 4.0 beta has been released, moving to RC milestone.

Comment 6 Yaniv Kaul 2016-06-22 11:59:03 UTC
Closed-upstream - works well in Lago.

Comment 7 Sandro Bonazzola 2016-07-05 07:43:51 UTC
oVirt 4.0.0 has been released, closing current release.

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