You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Sailaja Mada (JIRA)" <ji...@apache.org> on 2014/05/05 12:47:14 UTC
[jira] [Created] (CLOUDSTACK-6575) Deploy VM failed with NPE while
using custom compute offering
Sailaja Mada created CLOUDSTACK-6575:
----------------------------------------
Summary: Deploy VM failed with NPE while using custom compute offering
Key: CLOUDSTACK-6575
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6575
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: Management Server
Affects Versions: 4.4.0
Reporter: Sailaja Mada
Priority: Critical
Steps:
1. Install and configure Adv zone using Xen 6.2.5 Hypervisor
2. Create Compute offering with Custom option enabled
3. Deploy VM using Default Cent OS template using Customer option enabled Compute offering with CPU=1, Memory=2000 , Speed = 500
Observation:
Deploy VM failed with NPE while using custom compute offering
API call:
2014-05-05 16:04:23,233 DEBUG [c.c.a.ApiServlet] (catalina-exec-19:ctx-b904a14a) ===START=== 10.144.6.6 -- GET command=deployVirtualMachine&response=json&sessionkey=TDXLIOmV8uKaEsb9Mr5o96exjw0%3D&zoneid=764d3b82-5f1f-450c-a337-6b1398c472b3&templateid=68e3978c-d1d8-11e3-9149-32588ba65dc8&hypervisor=XenServer&serviceofferingid=d04e17be-e99d-427a-95bf-ed0cbc82520d&details%5B0%5D.cpuNumber=1&details%5B0%5D.cpuSpeed=500&details%5B0%5D.memory=2000&diskofferingid=ac9d944f-6b66-4822-bd97-bde18573caae&iptonetworklist%5B0%5D.networkid=91973ed0-97f6-47bf-94ea-25751da81ae9&displayname=newcent1&name=newcent1&_=1399286122706
2014-05-05 16:04:23,233 DEBUG [c.c.a.ApiServlet] (catalina-exec-19:ctx-b904a14a) ===START=== 10.144.6.6 -- GET command=deployVirtualMachine&response=json&sessionkey=TDXLIOmV8uKaEsb9Mr5o96exjw0%3D&zoneid=764d3b82-5f1f-450c-a337-6b1398c472b3&templateid=68e3978c-d1d8-11e3-9149-32588ba65dc8&hypervisor=XenServer&serviceofferingid=d04e17be-e99d-427a-95bf-ed0cbc82520d&details%5B0%5D.cpuNumber=1&details%5B0%5D.cpuSpeed=500&details%5B0%5D.memory=2000&diskofferingid=ac9d944f-6b66-4822-bd97-bde18573caae&iptonetworklist%5B0%5D.networkid=91973ed0-97f6-47bf-94ea-25751da81ae9&displayname=newcent1&name=newcent1&_=1399286122706
2014-05-05 16:04:23,247 DEBUG [o.a.c.a.BaseCmd] (catalina-exec-19:ctx-b904a14a ctx-e989ce28) Ignoring paremeter displayvm as the caller is not authorized to pass it in
2014-05-05 16:04:23,247 DEBUG [o.a.c.a.BaseCmd] (catalina-exec-19:ctx-b904a14a ctx-e989ce28) Ignoring paremeter deploymentplanner as the caller is not authorized to pass it in
2014-05-05 16:04:23,255 DEBUG [c.c.a.d.ParamProcessWorker] (catalina-exec-19:ctx-b904a14a ctx-e989ce28) Access granted to Acct[e412bd9a-f443-413d-941f-a2fdf1af6cf3-cdcuser1] to service offering:13 by RoleBasedEntityAccessChecker
2014-05-05 16:04:23,255 DEBUG [c.c.a.d.ParamProcessWorker] (catalina-exec-19:ctx-b904a14a ctx-e989ce28) Access granted to Acct[e412bd9a-f443-413d-941f-a2fdf1af6cf3-cdcuser1] to disk offering:4 by RoleBasedEntityAccessChecker
2014-05-05 16:04:23,295 DEBUG [c.c.u.AccountManagerImpl] (catalina-exec-19:ctx-b904a14a ctx-e989ce28) Access to {Tmpl[5-VHD-centos56-x86_64-xen} granted to Acct[e412bd9a-f443-413d-941f-a2fdf1af6cf3-cdcuser1] by RoleBasedEntityAccessChecker
2014-05-05 16:04:23,295 DEBUG [o.a.c.a.BaseCmd] (catalina-exec-19:ctx-b904a14a ctx-e989ce28) Ignoring paremeter displayvm as the caller is not authorized to pass it in
2014-05-05 16:04:23,295 DEBUG [o.a.c.a.BaseCmd] (catalina-exec-19:ctx-b904a14a ctx-e989ce28) Ignoring paremeter deploymentplanner as the caller is not authorized to pass it in
2014-05-05 16:04:23,335 DEBUG [c.c.u.AccountManagerImpl] (catalina-exec-19:ctx-b904a14a ctx-e989ce28) Access to {Acct[e412bd9a-f443-413d-941f-a2fdf1af6cf3-cdcuser1]} granted to Acct[e412bd9a-f443-413d-941f-a2fdf1af6cf3-cdcuser1] by RoleBasedEntityAccessChecker
2014-05-05 16:04:23,373 DEBUG [c.c.u.AccountManagerImpl] (catalina-exec-19:ctx-b904a14a ctx-e989ce28) Access to {Ntwk[91973ed0-97f6-47bf-94ea-25751da81ae9|Guest|8]} granted to Acct[e412bd9a-f443-413d-941f-a2fdf1af6cf3-cdcuser1] by RoleBasedEntityAccessChecker
2014-05-05 16:04:23,412 DEBUG [c.c.u.AccountManagerImpl] (catalina-exec-19:ctx-b904a14a ctx-e989ce28) Access to {Acct[e412bd9a-f443-413d-941f-a2fdf1af6cf3-cdcuser1]} granted to Acct[e412bd9a-f443-413d-941f-a2fdf1af6cf3-cdcuser1] by RoleBasedEntityAccessChecker
2014-05-05 16:04:23,437 ERROR [c.c.a.ApiServer] (catalina-exec-19:ctx-b904a14a ctx-e989ce28) unhandled exception executing api command: [Ljava.lang.String;@763f4779
java.lang.NullPointerException
at com.cloud.service.ServiceOfferingVO.<init>(ServiceOfferingVO.java:167)
at com.cloud.service.dao.ServiceOfferingDaoImpl.getcomputeOffering(ServiceOfferingDaoImpl.java:227)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at com.cloud.utils.db.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:34)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy58.getcomputeOffering(Unknown Source)
at com.cloud.vm.UserVmManagerImpl.createVirtualMachine(UserVmManagerImpl.java:2575)
at com.cloud.vm.UserVmManagerImpl.createAdvancedVirtualMachine(UserVmManagerImpl.java:2519)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy206.createAdvancedVirtualMachine(Unknown Source)
at org.apache.cloudstack.api.command.user.vm.DeployVMCmd.create(DeployVMCmd.java:600)
at com.cloud.api.dispatch.CommandCreationWorker.handle(CommandCreationWorker.java:47)
at com.cloud.api.dispatch.DispatchChain.dispatch(DispatchChain.java:37)
at com.cloud.api.ApiDispatcher.dispatchCreateCmd(ApiDispatcher.java:74)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:522)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:414)
at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:330)
at com.cloud.api.ApiServlet.access$000(ApiServlet.java:54)
at com.cloud.api.ApiServlet$1.run(ApiServlet.java:118)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:115)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:77)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
2014-05-05 16:04:23,451 DEBUG [c.c.a.ApiServlet] (catalina-exec-19:ctx-b904a14a ctx-e989ce28) ===END=== 10.144.6.6 -- GET command=deployVirtualMachine&response=json&sessionkey=TDXLIOmV8uKaEsb9Mr5o96exjw0%3D&zoneid=764d3b82-5f1f-450c-a337-6b1398c472b3&templateid=68e3978c-d1d8-11e3-9149-32588ba65dc8&hypervisor=XenServer&serviceofferingid=d04e17be-e99d-427a-95bf-ed0cbc82520d&details%5B0%5D.cpuNumber=1&details%5B0%5D.cpuSpeed=500&details%5B0%5D.memory=2000&diskofferingid=ac9d944f-6b66-4822-bd97-bde18573caae&iptonetworklist%5B0%5D.networkid=91973ed0-97f6-47bf-94ea-25751da81ae9&displayname=newcent1&name=newcent1&_=1399286122706
2014-05-05 16:04:24,176 DEBUG [c.c.a.ApiServlet] (catalina-exec-22:ctx-ded5aa71) ===START=== 10.144.6.6 -- GET command=queryAsyncJobResult&jobId=82a8c03e-19e0-4ab9-9062-9e1d01613ad5&response=json&sessionkey=TDXLIOmV8uKaEsb9Mr5o96exjw0%3D&_=1399286123650
2014-05-05 16:04:24,198 DEBUG [c.c.a.ApiServlet] (catalina-exec-22:ctx-ded5aa71 ctx-c9f53e3f) ===END=== 10.144.6.6 -- GET command=queryAsyncJobResult&jobId=82a8c03e-19e0-4ab9-9062-9e1d01613ad5&response=json&sessionkey=TDXLIOmV8uKaEsb9Mr5o96exjw0%3D&_=1399286123650
--
This message was sent by Atlassian JIRA
(v6.2#6252)