Created attachment 1317128 [details] logs from engine and host Version-Release number of selected component (if applicable): How reproducible: Reproduces always during execution of https://polarion.engineering.redhat.com/polarion/redirect/project/RHEVM3/workitem?id=RHEVM-18216 Steps to Reproduce: 1. Create a VM with a disk and lease (NFS in my case, disk and lease on the same domain) 2. Start the VM 3. Power off the VM 4. Create a template from the VM with a disk on the same domain as the VM disk and lease Actual results: Template creation fails with the following exception in engine.log: 2017-08-23 17:37:00,887+03 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-18) [] Operation Failed: org.apache.commons.lang.SerializationException: org.c odehaus.jackson.map.JsonMappingException: java.lang.Integer cannot be cast to java.lang.String (through reference chain: org.ovirt.engine.core.common.action.AddVmTemplateParameters["masterV m"]->org.ovirt.engine.core.common.businessentities.VmStatic["leaseInfo"]->java.util.HashMap["offset"]) 2017-08-23 17:37:00,887+03 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-18) [] Exception: javax.ejb.EJBException: org.apache.commons.lang.Serializatio nException: org.codehaus.jackson.map.JsonMappingException: java.lang.Integer cannot be cast to java.lang.String (through reference chain: org.ovirt.engine.core.common.action.AddVmTemplatePa rameters["masterVm"]->org.ovirt.engine.core.common.businessentities.VmStatic["leaseInfo"]->java.util.HashMap["offset"]) at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInNoTx(CMTTxInterceptor.java:214) [wildfly-ejb3-11.0.0.Beta1.jar:11.0.0.Beta1] at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:266) [wildfly-ejb3-11.0.0.Beta1.jar:11.0.0.Beta1] at org.jboss.as.ejb3.tx.CMTTxInterceptor.supports(CMTTxInterceptor.java:379) [wildfly-ejb3-11.0.0.Beta1.jar:11.0.0.Beta1] at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:244) [wildfly-ejb3-11.0.0.Beta1.jar:11.0.0.Beta1] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509) at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73) at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [wildfly-ejb3-11.0.0.Beta1.jar:11.0.0. Beta1] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) Create template task is not cleared, hence, the VM cannot be removed without ovirt-engine restart Workaround: Restart ovirt-engine in order to remove the VM Expected results: Template creation from HA VM with lease should succceed Additional info: logs from engine and host
Version-Release number of selected component (if applicable): ovirt-engine-4.2.0-0.0.master.20170822172135.git20a2fee.el7.centos.noarch vdsm-4.20.2-104.git5f512b9.el7.centos.x86_64
Arik, seems related to your latest changes to the leases (DOM XML), can you please have a look?
Seems like the same problem as in bz 1481691 *** This bug has been marked as a duplicate of bug 1481691 ***
I'll test again once https://gerrit.ovirt.org/#/c/80873/ and https://gerrit.ovirt.org/#/c/80872/ are merged.
Setting need info for myself
The fix of bz 1481691 indeed fixed the issue reported here.