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

Bug 1148320

Summary: [engine-backend] NullPointerException while live migrating a disk
Product: Red Hat Enterprise Virtualization Manager Reporter: Elad <ebenahar>
Component: ovirt-engineAssignee: Daniel Erez <derez>
Status: CLOSED DUPLICATE QA Contact: Aharon Canan <acanan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: amureini, ecohen, gklein, iheim, lpeer, lsurette, rbalakri, Rhev-m-bugs, tnisan, yeylon
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-02 08:20:41 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
logs from engine and host none

Description Elad 2014-10-01 07:58:16 UTC
Created attachment 942937 [details]
logs from engine and host

Description of problem:
I live migrated a disk and got:

2014-10-01 10:49:40,704 ERROR [org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (org.ovirt.thread.pool-7-thread-20) [77b1194d] [within thread]: endAction for action type LiveMigrateVmDisks threw an exception.: ja
va.lang.NullPointerException
        at org.ovirt.engine.core.bll.CommandBase.buildCommandEntity(CommandBase.java:2191) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.setCommandExecuted(CommandBase.java:2236) [bll.jar:]


Version-Release number of selected component (if applicable):
rhev 3.5 vt4
rhevm-3.5.0-0.13.beta.el6ev.noarch

How reproducible:
Always

Steps to Reproduce:
Have more than one domains in the DC
1. Create a VM with a disk and start it
2. Live migrate the VM disk


Actual results:
Live migration succeeds but we get the mentioned NPE.

Expected results:
Need to understand why we get the NPE and prevent it

Additional info:
logs from engine and host

Comment 1 Elad 2014-10-01 08:48:28 UTC
Actual results:
The auto-generated snapshot gets stuck in LOCKED state and there is no option to perform operation on this VM:
Tried to add a new disk:

2014-10-01 11:48:05,093 WARN  [org.ovirt.engine.core.bll.AddDiskCommand] (ajp-/127.0.0.1:8702-8) [4f652b04] CanDoAction of action AddDisk failed. Reasons:VAR__ACTION__ADD,VAR__TYPE__VM_DISK,ACTION_TYPE_FAILED_VM_IS_DURING_SNAPSHOT

Comment 2 Daniel Erez 2014-10-02 08:20:41 UTC

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