Bug 1121379

Summary: NPE and RTE occurs when cold moving vm's disks between different domains types
Product: [Retired] oVirt Reporter: Raz Tamir <ratamir>
Component: ovirt-engine-coreAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Belka <jbelka>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5CC: amureini, ecohen, gklein, iheim, ratamir, rbalakri, rnori, yeylon, yzaslavs
Target Milestone: ---Keywords: Regression
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: ovirt-3.5.0_rc1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-17 12:28:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
engine log
none
new engine log
none
valid engine log none

Description Raz Tamir 2014-07-20 08:38:32 UTC
Created attachment 919332 [details]
engine log

Description of problem:
When cold moving vm's disks from NFS domain to iSCSI domain a NullPointerException and RuntimeException raised after RemoveImageCommand executes


Version-Release number of selected component (if applicable):
ovirt-engine-3.5.0-0.0.master.20140715172116.git4687dc1.el6.noarch


How reproducible:
100%

Steps to Reproduce:
1.
2.
3.

Actual results:
explained above

Expected results:
Should work with no exceptions 

Additional info:

Comment 1 Daniel Erez 2014-07-21 08:37:57 UTC
Hi Raz,

According to the logs the failure caused by a live migration [1] (which should be covered by bug 1121400). Can you attach the engine log with invocation of cold move?

[1]
2014-07-16 08:51:23,773 ERROR [org.ovirt.engine.core.bll.CommandsFactory] (ajp--127.0.0.1-8702-9) [78eac9c0] Cant find constructor for type org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand with parameter types: [class org.ovirt.engine.core.common.action.LiveMigrateVmDisksParameters]
2014-07-16 08:51:23,774 ERROR [org.ovirt.engine.core.bll.CommandsFactory] (ajp--127.0.0.1-8702-9) [78eac9c0] An exception has occured while trying to create a command object for command LiveMigrateVmDisks: java.lang.RuntimeException: could not find matching constructor for Command class class org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand

Comment 2 Raz Tamir 2014-07-21 09:23:53 UTC
Created attachment 919569 [details]
new engine log

Provided new logs.
The original log is full with exceptions.
Look for "2014-07-21 12:08:20,340" in the new log.
The exception is after the RemoveImageCommand

Comment 3 Raz Tamir 2014-07-21 10:41:42 UTC
Created attachment 919605 [details]
valid engine log

The previous attached log ('new engine log') is not the correct one.
Attaching a valid engine log

Comment 4 Daniel Erez 2014-07-21 12:28:34 UTC
(In reply to ratamir from comment #3)
> Created attachment 919605 [details]
> valid engine log
> 
> The previous attached log ('new engine log') is not the correct one.
> Attaching a valid engine log

Thanks Raz.

Exception caused by a missing ctr:
2014-07-21 13:25:50,758 ERROR [org.ovirt.engine.core.bll.CommandsFactory] (org.ovirt.thread.pool-8-thread-8) [27e704b7] Cant find constructor for type org.ovirt.engine.core.bll.RemoveImageCommand with parameter types: [class org.ovirt.engine.core.common.action.RemoveImageParameters]
2014-07-21 13:25:50,774 ERROR [org.ovirt.engine.core.bll.CommandsFactory] (org.ovirt.thread.pool-8-thread-8) [27e704b7] An exception has occured while trying to create a command object for command RemoveImage: java.lang.RuntimeException: could not find matching constructor for Command class class org.ovirt.engine.core.bll.RemoveImageCommand

Comment 5 Allon Mureinik 2014-07-21 12:47:02 UTC
(In reply to Daniel Erez from comment #4)
> Exception caused by a missing ctr:
Setting whiteboard=infra to track together with the others

Comment 6 Yair Zaslavsky 2014-07-23 04:59:49 UTC
*** Bug 1122006 has been marked as a duplicate of this bug. ***

Comment 7 Jiri Belka 2014-09-11 11:35:42 UTC
ok, can't reproduce on rhevm-backend-3.5.0-0.11.beta.el6ev.noarch while moving a vm's disk from nfs to iscsi domain.

Comment 8 Sandro Bonazzola 2014-10-17 12:28:19 UTC
oVirt 3.5 has been released and should include the fix for this issue.