Bug 1072529

Summary: [engine-backend] [RO-disk] [Single-disk-snapshot] NullPointerException for TryBackToAllSnapshotsOfVm when custom previewing a single RO disk snapshot
Product: Red Hat Enterprise Virtualization Manager Reporter: Elad <ebenahar>
Component: ovirt-engineAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Aharon Canan <acanan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: acathrow, amureini, gklein, iheim, lpeer, Rhev-m-bugs, scohen, yeylon
Target Milestone: ---Flags: amureini: Triaged+
Target Release: 3.4.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: av5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-12 14:04:08 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: 1090946    
Attachments:
Description Flags
sosreport none

Description Elad 2014-03-04 17:30:59 UTC
Created attachment 870553 [details]
sosreport

Description of problem:
Snapshot custom preview for snapshot that includes RO disk fails on engine with NullPointerException. This failure happens only when previewing a snapshot using the 'custom' option 


Version-Release number of selected component (if applicable):
rhevm-3.4.0-0.3.master.el6ev.noarch

How reproducible:
Always

Steps to Reproduce:
ON shared DC:
1. Create a VM with a read-only disk attached
2. Create a snapshot to the VM
3. Preview the snapshot from 'custom' button 

Actual results:
Engine fails on TryBackToAllSnapshotsOfVm with a NullPointerException:

2014-03-04 19:11:22,111 ERROR [org.ovirt.engine.core.bll.CommandAsyncTask] (org.ovirt.thread.pool-4-thread-47) [within thread]: endAction for action type TryBackToAllSnapshotsOfVm threw an exception.: javax.ejb.EJBException: java.lang.NullPointerException

VM and disks objects gets stuck in 'LOCKED' state.

Expected results:
Snapshot preview should succeed from when using custom preview

Additional info: sosreport

Comment 1 Aharon Canan 2014-03-30 11:11:49 UTC
verified using av5

Comment 2 Itamar Heim 2014-06-12 14:04:08 UTC
Closing as part of 3.4.0