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

Bug 917736

Summary: Getting an NPE when running stateless VM
Product: [Retired] oVirt Reporter: Maor <mlipchuk>
Component: ovirt-engine-coreAssignee: Barak <bazulay>
Status: CLOSED DUPLICATE QA Contact: Haim <hateya>
Severity: urgent Docs Contact:
Priority: urgent    
Version: unspecifiedCC: acathrow, dyasny, hateya, hrupp, iheim, lpeer, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-14 08:34:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine logs none

Description Maor 2013-03-04 16:42:35 UTC
Description of problem:
Running a stateless VM will cause an NPE and the VM could not run.

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


How reproducible:
100%

Steps to Reproduce:
1. Run a stateless VM
2.
3.
  
Actual results:
Fail running the VM.
and keeps getting an audit log of this failure
Logs indicate NPE

Expected results:
VM should run

Additional info:
This exception caused since engine try to call CreateAllSnapshotsFromVmCommand with parameters which are not feet to the constructor.
That is because engine does not set the parameter class in the task DB

Comment 1 Itamar Heim 2013-03-04 17:01:22 UTC
usually best to put the first few lines of the exception in the BZ comment, so search will find it for someone else failing on it.

Comment 2 Haim 2013-03-04 18:04:15 UTC
logs please.

Comment 3 Maor 2013-03-05 08:17:50 UTC
Created attachment 705326 [details]
engine logs

Comment 5 Maor 2013-03-06 08:09:04 UTC
Following are the first few lines of the exception: 

2013-03-04 14:39:01,002 ERROR [org.ovirt.engine.core.bll.EntityAsyncTask] (pool-10-thread-49) EntityAsyncTask::EndCommandAction [within thread]: EndAction for action type RunVm threw an exception: java.lang.NullPointerException
	at org.ovirt.engine.core.bll.Backend.endAction(Backend.java:362) [bll.jar:]
	at org.ovirt.engine.core.bll.Backend.EndAction(Backend.java:354) [bll.jar:]
	at sun.reflect.GeneratedMethodAccessor133.invoke(Unknown Source) [:1.7.0_03-icedtea]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_03-icedtea]
	at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_03-icedtea]
	at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

Comment 6 Maor 2013-03-06 13:39:26 UTC
The bug occurs at the end command phase of the asynchronous task, which caused by wrong parameter class when creating the command for endAction.

Comment 7 Maor 2013-03-11 09:55:19 UTC

*** This bug has been marked as a duplicate of bug 919482 ***

Comment 8 Maor 2013-03-11 09:56:07 UTC

*** This bug has been marked as a duplicate of bug 919842 ***

Comment 9 Heiko W. Rupp 2013-03-14 08:26:23 UTC
I am pretty sure this bug has nothing to do with Bug 919482

Comment 10 Maor 2013-03-14 08:33:12 UTC
(In reply to comment #9)
> I am pretty sure this bug has nothing to do with Bug 919482

Look at comment 8, It was a typo mistake the bug is 919842

Comment 11 Maor 2013-03-14 08:34:37 UTC

*** This bug has been marked as a duplicate of bug 919842 ***