[
https://issues.apache.org/jira/browse/CLOUDSTACK-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13645349#comment-13645349
]
Rajesh Battala commented on CLOUDSTACK-1476:
--------------------------------------------
Am on latest 4.1 branch, I had tried to create VM from TinyLinux Template. Vm
is getting created.
2013-04-30 07:29:19,932 DEBUG [cloud.async.AsyncJobManagerImpl]
(13426305@qtp-14068132-4:null) submit async job-18, details: AsyncJobVO {id:18,
userId: 2, accountId: 2, sessionKey: null, instanceType: VirtualMachine,
instanceId: 7, cmd: org.apache.cloudstack.api.command.user.vm.DeployVMCmd,
cmdOriginator: null, cmdInfo:
{"sessionkey":"cMl7il3tFYHCIP85zPRwbJN9TqM\u003d","ctxUserId":"2","serviceOfferingId":"783c1700-9b83-11e2-a342-0800279b3200","zoneId":"a6a47eb7-8b1b-4d04-8a0a-1d91498bdc4e","response":"json","templateId":"740ab1e8-9b83-11e2-a342-0800279b3200","id":"7","hypervisor":"XenServer","name":"TestVM","_":"1367306960845","ctxAccountId":"2","ctxStartEventId":"73","displayname":"TestVM"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
processStatus: 0, resultCode: 0, result: null, initMsid: 8796757504512,
completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
190:2013-04-30 07:29:52,165 DEBUG [cloud.storage.StorageManagerImpl]
(Job-Executor-4:job-18) Volume Vol[7|vm=7|ROOT] is created on Pool[200|EXT]
191:2013-04-30 07:29:52,227 DEBUG [agent.transport.Request]
(Job-Executor-4:job-18) Seq 1-1672020022: Sending { Cmd , MgmtId:
8796757504512, via: 1, Ver: v1, Flags: 100111,
[{"StartCommand":{"vm":{"id":7,"name":"i-2-7-VM","bootloader":"PyGrub","type":"User","cpus":1,"speed":100,"minRam":104857600,"maxRam":104857600,"arch":"x86_64","os":"CentOS
5.3
(64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuUse":false,"vncPassword":"35a373e95eba3fec","params":{},"uuid":"c203587f-27bd-4b9b-9783-7fbdeff590b5","disks":[{"id":7,"name":"ROOT-7","mountPoint":"ext","path":"e7728007-66f1-49ec-acfd-abcec8b2dd3c","size":52428800,"type":"ROOT","storagePoolType":"EXT","storagePoolUuid":"9f3f9262-3f77-09cc-2df7-0d8475676260","deviceId":0},{"id":7,"name":"tiny
Linux","size":0,"type":"ISO","storagePoolType":"ISO","deviceId":3}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"uuid":"d459e8ca-8e2c-4a82-b9f2-4e1091a1a914","ip":"192.168.56.102","netmask":"255.255.255.0","gateway":"192.168.56.1","mac":"06:1c:0e:00:00:18","dns1":"8.8.8.8","dns2":"4.4.4.4","broadcastType":"Native","type":"Guest","broadcastUri":"vlan://untagged","isolationUri":"ec2://untagged","isSecurityGroupEnabled":true}]},"hostIp":"192.168.56.10","wait":0}}]
}
192:2013-04-30 07:29:52,230 DEBUG [agent.transport.Request]
(Job-Executor-4:job-18) Seq 1-1672020022: Executing: { Cmd , MgmtId:
8796757504512, via: 1, Ver: v1, Flags: 100111,
[{"StartCommand":{"vm":{"id":7,"name":"i-2-7-VM","bootloader":"PyGrub","type":"User","cpus":1,"speed":100,"minRam":104857600,"maxRam":104857600,"arch":"x86_64","os":"CentOS
5.3
(64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuUse":false,"vncPassword":"35a373e95eba3fec","params":{},"uuid":"c203587f-27bd-4b9b-9783-7fbdeff590b5","disks":[{"id":7,"name":"ROOT-7","mountPoint":"ext","path":"e7728007-66f1-49ec-acfd-abcec8b2dd3c","size":52428800,"type":"ROOT","storagePoolType":"EXT","storagePoolUuid":"9f3f9262-3f77-09cc-2df7-0d8475676260","deviceId":0},{"id":7,"name":"tiny
Linux","size":0,"type":"ISO","storagePoolType":"ISO","deviceId":3}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"uuid":"d459e8ca-8e2c-4a82-b9f2-4e1091a1a914","ip":"192.168.56.102","netmask":"255.255.255.0","gateway":"192.168.56.1","mac":"06:1c:0e:00:00:18","dns1":"8.8.8.8","dns2":"4.4.4.4","broadcastType":"Native","type":"Guest","broadcastUri":"vlan://untagged","isolationUri":"ec2://untagged","isSecurityGroupEnabled":true}]},"hostIp":"192.168.56.10","wait":0}}]
}
222:2013-04-30 07:30:02,240 DEBUG [agent.transport.Request]
(Job-Executor-4:job-18) Seq 1-1672020022: Received: { Ans: , MgmtId:
8796757504512, via: 1, Ver: v1, Flags: 110, { StartAnswer } }
224:2013-04-30 07:30:02,537 DEBUG [network.security.SecurityGroupManagerImpl]
(Job-Executor-4:job-18) Security Group Mgr v2: scheduling ruleset updates for 1
vms (unique=1), current queue size=0
225:2013-04-30 07:30:02,572 DEBUG [network.security.SecurityGroupManagerImpl]
(Job-Executor-4:job-18) Security Group Mgr v2: done scheduling ruleset updates
for 1 vms: num new jobs=1 num rows insert or updated=1 time taken=34
226:2013-04-30 07:30:02,600 DEBUG [cloud.capacity.CapacityManagerImpl]
(Job-Executor-4:job-18) VM state transitted from :Starting to Running with
event: OperationSucceededvm's original host id: 1 new host id: 1 host id before
state transition: 1
227:2013-04-30 07:30:02,604 DEBUG [cloud.vm.VirtualMachineManagerImpl]
(Job-Executor-4:job-18) Start completed for VM VM[User|TestVM]
232:2013-04-30 07:30:02,700 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-4:job-18) Complete async job-18, jobStatus: 1, resultCode: 0,
result: org.apache.cloudstack.api.response.UserVmResponse@6c1701
Closing the bug as not reproducible.
Shane, If you still able to reproduce it please re-open it.
> deployVirtualMachine results in ClassCastException
> --------------------------------------------------
>
> Key: CLOUDSTACK-1476
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1476
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Management Server
> Affects Versions: 4.1.0
> Environment: Running latest 4.1 branch via mvn, default tiny Linux
> template
> Reporter: Shane Witbeck
> Assignee: Rajesh Battala
>
> After I click "Launch VM", I get a brief Proxy exception message in a popup
> and the following exception in the log:
> INFO [cloud.servlet.ConsoleProxyServlet] (1045774424@qtp-2071623777-0:)
> Parse host info returned from executing GetVNCPortCommand. host info:
> consoleurl=https://172.16.8.223/console?uuid=562d329e-2f0c-6b7d-5328-9e27ee23fe9d&sessionref=OpaqueRef:093846a6-b6d5-b4ac-3d53-e213a5ef4216
> ERROR [cloud.api.ApiServer] (279997123@qtp-2071623777-3:) unhandled exception
> executing api command: deployVirtualMachine
> java.lang.ClassCastException: sun.proxy.$Proxy343 cannot be cast to
> org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl
> at
> org.apache.cloudstack.platform.orchestration.CloudOrchestrator.createVirtualMachine(CloudOrchestrator.java:173)
> 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:616)
> at
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> at
> org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
> at
> com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionContextBuilder.java:37)
> at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at
> org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
> at
> org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
> at
> org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
> at sun.proxy.$Proxy310.createVirtualMachine(Unknown Source)
> at
> com.cloud.vm.UserVmManagerImpl.createVirtualMachine(UserVmManagerImpl.java:3378)
> at
> com.cloud.vm.UserVmManagerImpl.createBasicSecurityGroupVirtualMachine(UserVmManagerImpl.java:2857)
> 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:616)
> at
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> at
> org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
> at
> com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionContextBuilder.java:37)
> at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at
> org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
> at
> org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
> at
> org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
> at sun.proxy.$Proxy247.createBasicSecurityGroupVirtualMachine(Unknown
> Source)
> at
> org.apache.cloudstack.api.command.user.vm.DeployVMCmd.create(DeployVMCmd.java:449)
> at com.cloud.api.ApiDispatcher.dispatchCreateCmd(ApiDispatcher.java:107)
> at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
> at
> org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> at
> org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
> at
> com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionContextBuilder.java:37)
> at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at
> org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
> at
> org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
> at
> org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at
> org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:445)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:347)
> at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> at
> org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
> at
> com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionContextBuilder.java:37)
> at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at
> org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
> at
> org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
> at
> org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
> at sun.proxy.$Proxy370.handleRequest(Unknown Source)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:302)
> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
> at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
> at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> at
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:326)
> at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> at
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
> at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira