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

Bug 947414

Summary: [engine-backend] Null Pointer Exception when during “preview mode” action, service ovirt-engine restart (RestoreFromSnapshotCommand threw an exception: java.lang.NullPointerException)
Product: Red Hat Enterprise Virtualization Manager Reporter: Elad <ebenahar>
Component: ovirt-engineAssignee: Tal Nisan <tnisan>
Status: CLOSED WORKSFORME QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: abaron, acathrow, amureini, bazulay, dyasny, gwatson, hateya, iheim, lpeer, Rhev-m-bugs, scohen, yeylon, ykaul, yzaslavs
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-18 13:36:39 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:
Attachments:
Description Flags
vdsm+engine logs none

Description Elad 2013-04-02 11:10:04 UTC
Created attachment 730699 [details]
vdsm+engine logs

Description of problem:
Null Pointer Exception when during “preview mode” action, service ovirt-engine restart (RestoreFromSnapshotCommand threw an exception: java.lang.NullPointerException)

Version-Release number of selected component (if applicable):
rhevm-backend-3.2.0-10.17.master.el6ev.noarch
vdsm-4.10.2-13.0.el6ev.x86_64


How reproducible:
100%

Steps to Reproduce:

1. Create VM with IDE disk, and Windows OS installed
2. Power-On VM
3. Create a Live-Snapshot 
4. Power off VM
5. Select a snapshot and run “preview” action
6. After ovirt-engine starts, select 'commit' to the previewed snapshot.
  
Actual results:

RHEVM enter to loop “NullPointerException”

Expected results:

If there is a task in the backend it should be finished succusfully.
If there were no task created, it should be reverted. 

Additional info: see logs attached

2013-04-02 12:50:10,216 ERROR [org.ovirt.engine.core.bll.RestoreFromSnapshotCommand] (ajp-/127.0.0.1:8702-8) [6b36e1fe] Command org.ovirt.engine.core.bll.RestoreFromSnapshotCommand throw exception: java.lang.NullPointerException

Comment 1 Ayal Baron 2013-04-03 08:03:37 UTC
Allon, why is this storage related?

Comment 2 Allon Mureinik 2013-04-07 16:09:01 UTC
The crash is in a storage DAO, but need to make sure the virt flow is using it correclty.


Tal - can you please take a look?

Comment 3 Tal Nisan 2013-04-17 14:15:20 UTC
Could not reproduce in sf13.1, after I've put the snapshot in preview I restarted the service, re-logged in to the webadmin and selected commit, all worked as it should, can you please check in sf13.1 or latest?

Comment 4 Elad 2013-04-18 13:36:39 UTC
Didn't manage to reproduce on SF13.1
Closing as WORKSFORME

Comment 5 Maor 2013-09-22 19:17:36 UTC
*** Bug 969215 has been marked as a duplicate of this bug. ***