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

Bug 871607

Summary: [ovirt-engine-backend] NPE when trying storage live migration
Product: Red Hat Enterprise Virtualization Manager Reporter: Kiril Nesenko <knesenko>
Component: ovirt-engineAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Dafna Ron <dron>
Severity: unspecified Docs Contact:
Priority: urgent    
Version: 3.1.0CC: abaron, amureini, derez, dfediuck, dyasny, hateya, iheim, lpeer, mgoldboi, mkenneth, Rhev-m-bugs, vvyazmin, yeylon, ykaul
Target Milestone: ---   
Target Release: 3.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: SI24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 none

Description Kiril Nesenko 2012-10-30 20:43:30 UTC
Created attachment 635780 [details]
logs

Description of problem:
Try to migrate disk to another data domain while VM is up:

2012-10-30 20:50:06,112 ERROR 
[org.ovirt.engine.core.bll.lsm.LiveMigrateDiskCommand] 
(pool-4-thread-50) Command 
org.ovirt.engine.core.bll.lsm.LiveMigrateDiskCommand throw exception: 
java.lang.NullPointerException
         at 
org.ovirt.engine.core.bll.lsm.VmReplicateDiskFinishTaskHandler.getVDSParameters(VmReplicateDiskFinishTaskHandler.java:92) 
[engine-bll.jar:]
         at 
org.ovirt.engine.core.bll.AbstractSPMAsyncTaskHandler.execute(AbstractSPMAsyncTaskHandler.java:33) 
[engine-bll.jar:]
         at 
org.ovirt.engine.core.bll.CommandBase.executeWithoutTransaction(CommandBase.java:873) 
[engine-bll.jar:]
         at 
org.ovirt.engine.core.bll.CommandBase.executeActionInTransactionScope(CommandBase.java:972) 
[engine-bll.jar:]
         at 
org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBase.java:1371) 
[engine-bll.jar:]
         at 
org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInSuppressed(TransactionSupport.java:168) 
[engine-utils.jar:]
         at 
org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInScope(TransactionSupport.java:107) 
[engine-utils.jar:]
         at 
org.ovirt.engine.core.bll.CommandBase.execute(CommandBase.java:990) 
[engine-bll.jar:]
         at 
org.ovirt.engine.core.bll.CommandBase.internalEndSuccessfully(CommandBase.java:509) 
[engine-bll.jar:]
         at 
org.ovirt.engine.core.bll.CommandBase.endActionInTransactionScope(CommandBase.java:459) 
[engine-bll.jar:]
         at 
org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBase.java:1373) 
[engine-bll.jar:]
         at 
org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInSuppressed(TransactionSupport.java:168) 
[engine-utils.jar:]
         at 
org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInScope(TransactionSupport.java:107) 
[engine-utils.jar:]
         at 
org.ovirt.engine.core.bll.CommandBase.endAction(CommandBase.java:405) 
[engine-bll.jar:]
         at 
org.ovirt.engine.core.bll.Backend.endAction(Backend.java:368) 
[engine-bll.jar:]
         at sun.reflect.GeneratedMethodAccessor217.invoke(Unknown 
Source) [:1.7.0_09-icedtea]
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
[rt.jar:1.7.0_09-icedtea]
         at java.lang.reflect.Method.invoke(Method.java:601) 
[rt.jar:1.7.0_09-icedtea]
         at 
org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
[jboss-as-ee.jar:7.1.2.Final-redhat-1]
         at 
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
[jboss-invocation.jar:1.1.1.Final-redhat-1]
         at 
org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374) 
[jboss-invocation.jar:1.1.1.Final-redhat-1]
         at 
org.ovirt.engine.core.utils.ThreadLocalSessionCleanerInterceptor.injectWebContextToThreadLocal(ThreadLocalSessionCleanerInterceptor.java:11) 
[engine-utils.jar:]
         at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) 
[:1.7.0_09-icedtea]
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
[rt.jar:1.7.0_09-icedtea]
         at java.lang.reflect.Method.invoke(Method.java:601) 
[rt.jar:1.7.0_09-icedtea]
         at 
org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptorFactory$ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptorFactory.java:123)
[jboss-as-ee.jar:7.1.2.Final-
redhat-1]
         at 
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
[jboss-invocation.jar:1.1.1.Final-redhat-1]
         at 
org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) 
[jboss-invocation.jar:1.1.1.Final-redhat-1]
         at 
org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) 
[jboss-as-ee.jar:7.1.2.Final-redhat-1]
         at 
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
[jboss-invocation.jar:1.1.1.Final-redhat-1]
         at 
org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) 
[jboss-as-ejb3.jar:7.1.2.Final-redhat-1]
         at 
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
[jboss-invocation.jar:1.1.1.Final-redhat-1]
         at 
org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) 
[jboss-invocation.jar:1.1.1.Final-redhat-1]
         at 
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
[jboss-invocation.jar:1.1.1.Final-redhat-1]
         at 
org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) 
[jboss-invocation.jar:1.1.1.Final-redhat-1]
         at 
org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) 
[jboss-as-ee.jar:7.1.2.Final-redhat-1]
         at 
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
[jboss-invocation.jar:1.1.1.Final-redhat-1]
         at 
org.jboss.as.ejb3.component.singleton.SingletonComponentInstanceAssociationInterceptor.processInvocation(SingletonComponentInstanceAssociationInterceptor.java:53)
[jboss-as-ejb3.jar:7.1.2.Final-redhat-1]
         at 
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
[jboss-invocation.jar:1.1.1.Final-redhat-1]
         at 
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTCMTTxInterceptor.java:210) 
[jboss-as-ejb3.jar:7.1.2.Final-redhat-1]
         at 
org.jboss.as.ejb3.tx.CMTTxInterceptor.supports(CMTTxInterceptor.java:362) [jboss-as-ejb3.jar:7.1.2.Final-redhat-1]
         at 
org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:193) 
[jboss-as-ejb3.jar:7.1.2.Final-redhat-1]
         at 
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
[jboss-invocation.jar:1.1.1.Final-redhat-1]
         at 
org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) 
[jboss-as-ejb3.jar:7.1.2.Final-redhat-1]
         at 
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
[jboss-invocation.jar:1.1.1.Final-redhat-1]
         at 
org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:42) 
[jboss-as-ejb3.jar:7.1.2.Final-redhat-1]
         at 
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) 
[jboss-invocation.jar:1.1.1.Final-redhat-1]


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

How reproducible:
Always

Steps to Reproduce:
1. Try to migrate disk to another data domain while VM is up
2.
3.
  
Actual results:
NPE

Expected results:


Additional info:

Comment 3 Daniel Erez 2012-10-31 06:49:00 UTC
http://gerrit.ovirt.org/#/c/8942/
Change-Id: Id2e671021cf23aed59bedf27710fb78dc21b4606

Comment 4 Allon Mureinik 2012-10-31 10:36:10 UTC
According to Itamar's advise, merged based on acks given to 525307.

Comment 5 Dafna Ron 2012-11-05 15:04:03 UTC
verified on si24. 
we can live migrate with no NPE

Comment 6 Leonid Natapov 2012-11-05 15:24:35 UTC
si24. fixed.