Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 869596

Summary: NPE when creating direct lun via API (at org.ovirt.engine.core.bll.AddDiskCommand.ExecuteVmCommand(AddDiskCommand.java:301))
Product: Red Hat Enterprise Virtualization Manager Reporter: Jakub Libosvar <jlibosva>
Component: ovirt-engineAssignee: Liron Aravot <laravot>
Status: CLOSED CURRENTRELEASE QA Contact: Jakub Libosvar <jlibosva>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: amureini, dyasny, hateya, iheim, lpeer, Rhev-m-bugs, sgrinber, yeylon, ykaul
Target Milestone: ---Keywords: Regression, TestBlocker
Target Release: 3.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: SI24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 19:59:06 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 864840, 866539, 886520    
Attachments:
Description Flags
engine log none

Description Jakub Libosvar 2012-10-24 11:35:29 UTC
Description of problem:
Creating direct lun via rest using following body leads to NPE:
<disk>
    <alias>direct_lun</alias>
    <interface>virtio</interface>
    <format>cow</format>
    <lunStorage>
        <type>iscsi</type>
        <logical_unit id="36006048c12952607a6254682d950135a">
            <address>10.34.63.200</address>
            <port>3260</port>
            <target>iqn.1992-05.com.emc:ckm001201002300000-5-vnxe</target>
        </logical_unit>
    </lunStorage>
</disk>


Version-Release number of selected component (if applicable):
rhevm-backend-3.1.0-22.el6ev.noarch

How reproducible:
Always

Steps to Reproduce:
1. Create direct LUN via API


Additional info:
Worked in si21
Attachment in next comment

Comment 1 Jakub Libosvar 2012-10-24 11:35:50 UTC
Created attachment 632696 [details]
engine log

Comment 2 Jakub Libosvar 2012-10-24 11:36:57 UTC
2012-10-24 13:33:25,063 INFO  [org.ovirt.engine.core.bll.AddDiskCommand] (ajp-/127.0.0.1:8702-2) [54613694] Running command: AddDiskCommand internal: false. Entities affected :  ID: aaa00000-0000-0000-0000-123456789aaa Type: System
2012-10-24 13:33:25,065 ERROR [org.ovirt.engine.core.bll.AddDiskCommand] (ajp-/127.0.0.1:8702-2) [54613694] Command org.ovirt.engine.core.bll.AddDiskCommand throw exception: java.lang.NullPointerException
        at org.ovirt.engine.core.bll.AddDiskCommand.ExecuteVmCommand(AddDiskCommand.java:301) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.VmCommand.executeCommand(VmCommand.java:78) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.executeWithoutTransaction(CommandBase.java:825) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.executeActionInTransactionScope(CommandBase.java:916) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBase.java:1300) [engine-bll.jar:]
        at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInSuppressed(TransactionSupport.java:168) [engine-utils.jar:]
        at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInScope(TransactionSupport.java:107) [engine-utils.jar:]
        at org.ovirt.engine.core.bll.CommandBase.execute(CommandBase.java:931) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.executeAction(CommandBase.java:285) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.Backend.runActionImpl(Backend.java:336) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.Backend.RunAction(Backend.java:294) [engine-bll.jar:]

Comment 4 Allon Mureinik 2012-10-25 11:15:48 UTC
Liron - Seems like a regressoin of an issue you solved.
Can you please take a look?

Comment 5 Liron Aravot 2012-10-25 13:51:19 UTC
regression that was inroduced by the fix of this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=845466
Change-Id: I8cb77b017282733d72ff66af499b576674674e01


fixed in this patch:
http://gerrit.ovirt.org/#/c/8821/

Comment 6 Allon Mureinik 2012-10-28 13:31:39 UTC
Mereged Id754bdd7b49ff0dcc80b060f5900f8e3ea313637

Comment 7 Jakub Libosvar 2012-11-06 11:15:07 UTC
Verified rhevm-3.1.0-26.el6ev.noarch