Bug 988319 - create vm from template without disks fails on NPE
create vm from template without disks fails on NPE
Status: CLOSED DUPLICATE of bug 1000789
Product: oVirt
Classification: Community
Component: ovirt-engine-core (Show other bugs)
3.3
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Tomas Jelinek
virt
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-25 05:52 EDT by Tomas Jelinek
Modified: 2013-08-26 05:16 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-08-26 05:16:58 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 17870 None None None Never

  None (edit)
Description Tomas Jelinek 2013-07-25 05:52:56 EDT
Have a template which has no disks. Try to create a VM based on this template. 

Fails on NPE:

2013-07-25 11:51:03,732 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (pool-6-thread-50) Correlation ID: 6c527e85, Job ID: 6f456f28-48cc-40d0-bce3-c86bd152369e, Call Stack: null, Custom Event ID: -1, Message: VM basedOnTemp creation has been completed.
2013-07-25 11:51:03,732 INFO  [org.ovirt.engine.core.bll.CommandAsyncTask] (pool-6-thread-50) CommandAsyncTask::HandleEndActionResult [within thread]: EndAction for action type AddVmFromTemplate completed, handling the result.
2013-07-25 11:51:03,733 INFO  [org.ovirt.engine.core.bll.CommandAsyncTask] (pool-6-thread-50) CommandAsyncTask::HandleEndActionResult [within thread]: EndAction for action type AddVmFromTemplate succeeded, clearing tasks.
2013-07-25 11:51:03,740 INFO  [org.ovirt.engine.core.bll.SPMAsyncTask] (pool-6-thread-50) SPMAsyncTask::ClearAsyncTask: Attempting to clear task 54aa8d11-a94f-4adb-99a0-1b6ba03a4843
2013-07-25 11:51:03,741 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.SPMClearTaskVDSCommand] (pool-6-thread-50) START, SPMClearTaskVDSCommand( storagePoolId = ad0bb686-9d94-49b6-8b01-0746d9d176a4, ignoreFailoverLimit = false, taskId = 54aa8d11-a94f-4adb-99a0-1b6ba03a4843), log id: 3750fc31
2013-07-25 11:51:03,744 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.HSMClearTaskVDSCommand] (pool-6-thread-50) START, HSMClearTaskVDSCommand(HostName = 64, HostId = 2e52f591-e779-4f97-a39c-fca5adc37f4d, taskId=54aa8d11-a94f-4adb-99a0-1b6ba03a4843), log id: 549d3885
2013-07-25 11:51:03,863 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.HSMClearTaskVDSCommand] (pool-6-thread-50) FINISH, HSMClearTaskVDSCommand, log id: 549d3885
2013-07-25 11:51:03,864 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.SPMClearTaskVDSCommand] (pool-6-thread-50) FINISH, SPMClearTaskVDSCommand, log id: 3750fc31
2013-07-25 11:51:03,888 INFO  [org.ovirt.engine.core.bll.SPMAsyncTask] (pool-6-thread-50) BaseAsyncTask::RemoveTaskFromDB: Removed task 54aa8d11-a94f-4adb-99a0-1b6ba03a4843 from DataBase
2013-07-25 11:51:03,889 INFO  [org.ovirt.engine.core.bll.CommandAsyncTask] (pool-6-thread-50) CommandAsyncTask::HandleEndActionResult [within thread]: Removing CommandMultiAsyncTasks object for entity d710035e-45d8-4cf2-b422-b852d27600a6
2013-07-25 11:51:58,148 INFO  [org.ovirt.engine.core.bll.AddVmFromTemplateCommand] (http--0.0.0.0-8080-3) Lock Acquired to object EngineLock [exclusiveLocks= key: withoutDisks value: VM_NAME
, sharedLocks= key: 97e35ea5-7e73-4598-87e4-c78a20749f37 value: TEMPLATE
]
2013-07-25 11:51:58,213 INFO  [org.ovirt.engine.core.bll.AddVmFromTemplateCommand] (http--0.0.0.0-8080-3) Running command: AddVmFromTemplateCommand internal: false. Entities affected :  ID: 367100de-081e-4c60-bcf8-47d2793499c5 Type: VdsGroups,  ID: 97e35ea5-7e73-4598-87e4-c78a20749f37 Type: VmTemplate
2013-07-25 11:51:58,371 ERROR [org.ovirt.engine.core.bll.AddVmFromTemplateCommand] (http--0.0.0.0-8080-3) Command org.ovirt.engine.core.bll.AddVmFromTemplateCommand throw exception: java.lang.NullPointerException
	at org.ovirt.engine.core.bll.VmCommand.endActionOnDisks(VmCommand.java:212) [bll.jar:]
	at org.ovirt.engine.core.bll.VmCommand.endVmCommand(VmCommand.java:206) [bll.jar:]
	at org.ovirt.engine.core.bll.VmCommand.endSuccessfully(VmCommand.java:250) [bll.jar:]
	at org.ovirt.engine.core.bll.AddVmFromTemplateCommand.executeVmCommand(AddVmFromTemplateCommand.java:43) [bll.jar:]
	at org.ovirt.engine.core.bll.VmCommand.executeCommand(VmCommand.java:85) [bll.jar:]
	at org.ovirt.engine.core.bll.CommandBase.executeWithoutTransaction(CommandBase.java:1128) [bll.jar:]
	at org.ovirt.engine.core.bll.CommandBase.executeActionInTransactionScope(CommandBase.java:1213) [bll.jar:]
	at org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBase.java:1856) [bll.jar:]
	at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInNewTransaction(TransactionSupport.java:210) [utils.jar:]
	at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInRequired(TransactionSupport.java:149) [utils.jar:]
	at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInScope(TransactionSupport.java:118) [utils.jar:]
	at org.ovirt.engine.core.bll.CommandBase.execute(CommandBase.java:1231) [bll.jar:]
	at org.ovirt.engine.core.bll.CommandBase.executeAction(CommandBase.java:365) [bll.jar:]
	at org.ovirt.engine.core.bll.Backend.runAction(Backend.java:404) [bll.jar:]
	at org.ovirt.engine.core.bll.Backend.runActionImpl(Backend.java:387) [bll.jar:]
	at org.ovirt.engine.core.bll.Backend.RunAction(Backend.java:345) [bll.jar:]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_25]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_25]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_25]
	at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25]
	at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
	at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
	at org.ovirt.engine.core.bll.interceptors.ThreadLocalSessionCleanerInterceptor.injectWebContextToThreadLocal(ThreadLocalSessionCleanerInterceptor.java:13) [bll.jar:]
	at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) [:1.7.0_25]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_25]
	at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25]
	at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptorFactory$ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptorFactory.java:123) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
	at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
	at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
	at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
	at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
	at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
	at org.jboss.as.ejb3.component.singleton.SingletonComponentInstanceAssociationInterceptor.processInvocation(SingletonComponentInstanceAssociationInterceptor.java:53) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
	at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:211) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
	at org.jboss.as.ejb3.tx.CMTTxInterceptor.supports(CMTTxInterceptor.java:363) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
	at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:194) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
	at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
	at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
	at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
	at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
	at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
	at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
	at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
	at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
	at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
	at org.ovirt.engine.core.common.interfaces.BackendLocal$$$view8.RunAction(Unknown Source) [common.jar:]
	at org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.RunAction(GenericApiGWTServiceImpl.java:131)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_25]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_25]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_25]
	at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25]
	at com.google.gwt.rpc.server.RPC.invokeAndStreamResponse(RPC.java:196)
	at com.google.gwt.rpc.server.RpcServlet.processCall(RpcServlet.java:172)
	at com.google.gwt.rpc.server.RpcServlet.processPost(RpcServlet.java:233)
	at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
	at org.ovirt.engine.ui.frontend.server.gwt.GwtCachingFilter.doFilter(GwtCachingFilter.java:132)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
	at org.ovirt.engine.core.utils.servlet.LocaleFilter.doFilter(LocaleFilter.java:59) [utils.jar:]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489)
	at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.jboss.web.rewrite.RewriteValve.invoke(RewriteValve.java:466)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
	at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]

2013-07-25 11:51:58,396 INFO  [org.ovirt.engine.core.bll.AddVmFromTemplateCommand] (http--0.0.0.0-8080-3) Command [id=d7562e98-5bed-4425-9994-2c128e9d358a]: Compensating NEW_ENTITY_ID of org.ovirt.engine.core.common.businessentities.Snapshot; snapshot: 90f71e9c-786e-4351-9c69-c70fa1806353.
2013-07-25 11:51:58,398 INFO  [org.ovirt.engine.core.bll.AddVmFromTemplateCommand] (http--0.0.0.0-8080-3) Command [id=d7562e98-5bed-4425-9994-2c128e9d358a]: Compensating NEW_ENTITY_ID of org.ovirt.engine.core.common.businessentities.VmStatistics; snapshot: 5de6212e-487c-403b-a507-d91c296c1114.
2013-07-25 11:51:58,399 INFO  [org.ovirt.engine.core.bll.AddVmFromTemplateCommand] (http--0.0.0.0-8080-3) Command [id=d7562e98-5bed-4425-9994-2c128e9d358a]: Compensating NEW_ENTITY_ID of org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics; snapshot: 58d687ae-3a85-4f7f-b2f5-85419c70ff94.
2013-07-25 11:51:58,401 INFO  [org.ovirt.engine.core.bll.AddVmFromTemplateCommand] (http--0.0.0.0-8080-3) Command [id=d7562e98-5bed-4425-9994-2c128e9d358a]: Compensating NEW_ENTITY_ID of org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface; snapshot: 58d687ae-3a85-4f7f-b2f5-85419c70ff94.
2013-07-25 11:51:58,402 INFO  [org.ovirt.engine.core.bll.AddVmFromTemplateCommand] (http--0.0.0.0-8080-3) Command [id=d7562e98-5bed-4425-9994-2c128e9d358a]: Compensating NEW_ENTITY_ID of org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics; snapshot: 32d5bfe0-9841-4846-93e8-74c2c32a8fb7.
2013-07-25 11:51:58,403 INFO  [org.ovirt.engine.core.bll.AddVmFromTemplateCommand] (http--0.0.0.0-8080-3) Command [id=d7562e98-5bed-4425-9994-2c128e9d358a]: Compensating NEW_ENTITY_ID of org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface; snapshot: 32d5bfe0-9841-4846-93e8-74c2c32a8fb7.
2013-07-25 11:51:58,407 INFO  [org.ovirt.engine.core.bll.AddVmFromTemplateCommand] (http--0.0.0.0-8080-3) Command [id=d7562e98-5bed-4425-9994-2c128e9d358a]: Compensating NEW_ENTITY_ID of org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics; snapshot: 058304d3-e004-43a9-bc36-68a7193fb99d.
2013-07-25 11:51:58,409 INFO  [org.ovirt.engine.core.bll.AddVmFromTemplateCommand] (http--0.0.0.0-8080-3) Command [id=d7562e98-5bed-4425-9994-2c128e9d358a]: Compensating NEW_ENTITY_ID of org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface; snapshot: 058304d3-e004-43a9-bc36-68a7193fb99d.
2013-07-25 11:51:58,411 INFO  [org.ovirt.engine.core.bll.AddVmFromTemplateCommand] (http--0.0.0.0-8080-3) Command [id=d7562e98-5bed-4425-9994-2c128e9d358a]: Compensating NEW_ENTITY_ID of org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics; snapshot: 4ab5391b-7365-4b62-b7f6-85ac8907bbd9.
2013-07-25 11:51:58,412 INFO  [org.ovirt.engine.core.bll.AddVmFromTemplateCommand] (http--0.0.0.0-8080-3) Command [id=d7562e98-5bed-4425-9994-2c128e9d358a]: Compensating NEW_ENTITY_ID of org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface; snapshot: 4ab5391b-7365-4b62-b7f6-85ac8907bbd9.
2013-07-25 11:51:58,413 INFO  [org.ovirt.engine.core.bll.AddVmFromTemplateCommand] (http--0.0.0.0-8080-3) Command [id=d7562e98-5bed-4425-9994-2c128e9d358a]: Compensating NEW_ENTITY_ID of org.ovirt.engine.core.common.businessentities.VmDynamic; snapshot: 5de6212e-487c-403b-a507-d91c296c1114.
2013-07-25 11:51:58,415 INFO  [org.ovirt.engine.core.bll.AddVmFromTemplateCommand] (http--0.0.0.0-8080-3) Command [id=d7562e98-5bed-4425-9994-2c128e9d358a]: Compensating NEW_ENTITY_ID of org.ovirt.engine.core.common.businessentities.VmStatic; snapshot: 5de6212e-487c-403b-a507-d91c296c1114.
Comment 1 Tomas Jelinek 2013-08-26 05:16:58 EDT

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

Note You need to log in before you can comment on or make changes to this bug.