cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gaurav Aradhye (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (CLOUDSTACK-7180) [Automation] listHostsForMigration API throwing NullPointerException
Date Fri, 25 Jul 2014 13:51:39 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-7180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gaurav Aradhye reopened CLOUDSTACK-7180:
----------------------------------------


> [Automation] listHostsForMigration API throwing NullPointerException
> --------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7180
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7180
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API
>    Affects Versions: 4.5.0
>         Environment: KVM Basic zone
>            Reporter: Gaurav Aradhye
>              Labels: automation
>             Fix For: 4.5.0
>
>
> I have two hosts in a cluster.
> VM is in deployed on a host.
> listHostsForMigration API for this virtual machine is throwing nullPointerException.
> Log:
> 2014-07-25 00:15:24,270 DEBUG [c.c.a.ApiServlet] (catalina-exec-10:ctx-efc4c9bc) ===START===
 10.223.240.194 -- GET  signature=Rk8pWUV2LRuKDbU8ZuprqB7H2IY%3D&apiKey=dO
> CC5kHhVyiFCXvA6KHJnD9d_UKcjGhiaZDp62nQgrrJNMgCeRNK0iQ_KbE_irqXpGOjzJ3WT6I-K1gBpaf3qg&command=listHosts&response=json&virtualmachineid=e97cea8e-7d69-40ec-a580-1ff9a8d00
> c16
> 2014-07-25 00:15:24,283 DEBUG [c.c.s.ManagementServerImpl] (catalina-exec-10:ctx-efc4c9bc
ctx-ca51a091 ctx-2a80b5a3) Searching for all hosts in cluster 1 for migrating
>  VM VM[User|i-142-128-VM]
> 2014-07-25 00:15:24,287 DEBUG [o.a.c.a.HostAntiAffinityProcessor] (catalina-exec-10:ctx-efc4c9bc
ctx-ca51a091 ctx-2a80b5a3) Processing affinity group aff_grp_T5X8R9 fo
> r VM Id: 128
> 2014-07-25 00:15:24,290 DEBUG [c.c.a.m.a.i.FirstFitAllocator] (catalina-exec-10:ctx-efc4c9bc
ctx-ca51a091 ctx-2a80b5a3) Looking for hosts in dc: 1  pod:1  cluster:1
> 2014-07-25 00:15:24,293 DEBUG [c.c.a.m.a.i.FirstFitAllocator] (catalina-exec-10:ctx-efc4c9bc
ctx-ca51a091 ctx-2a80b5a3) FirstFitAllocator has 2 hosts to check for allo
> cation: [Host[-2-Routing], Host[-1-Routing]]
> 2014-07-25 00:15:24,298 DEBUG [c.c.a.m.a.i.FirstFitAllocator] (catalina-exec-10:ctx-efc4c9bc
ctx-ca51a091 ctx-2a80b5a3) Found 2 hosts for allocation after prioritizati
> on: [Host[-2-Routing], Host[-1-Routing]]
> 2014-07-25 00:15:24,298 ERROR [c.c.a.ApiServer] (catalina-exec-10:ctx-efc4c9bc ctx-ca51a091
ctx-2a80b5a3) unhandled exception executing api command: [Ljava.lang.String
> ;@5d847d08
> java.lang.NullPointerException
>         at com.cloud.agent.manager.allocator.impl.FirstFitAllocator.allocateTo(FirstFitAllocator.java:253)
>         at com.cloud.agent.manager.allocator.impl.FirstFitAllocator.allocateTo(FirstFitAllocator.java:182)
>         at com.cloud.server.ManagementServerImpl.listHostsForMigrationOfVM(ManagementServerImpl.java:1229)
>         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.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.$Proxy213.listHostsForMigrationOfVM(Unknown Source)
>         at org.apache.cloudstack.api.command.admin.host.ListHostsCmd.execute(ListHostsCmd.java:189)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
>         at com.cloud.api.ApiServer.queueCommand(ApiServer.java:694)
>         at com.cloud.api.ApiServer.handleRequest(ApiServer.java:517)
>         at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:317)
>         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-07-25 00:15:24,301 DEBUG [c.c.a.ApiServlet] (catalina-exec-10:ctx-efc4c9bc ctx-ca51a091
ctx-2a80b5a3) ===END===  10.223.240.194 -- GET  signature=Rk8pWUV2LRuKDbU8
> ZuprqB7H2IY%3D&apiKey=dOCC5kHhVyiFCXvA6KHJnD9d_UKcjGhiaZDp62nQgrrJNMgCeRNK0iQ_KbE_irqXpGOjzJ3WT6I-K1gBpaf3qg&command=listHosts&response=json&virtualmachineid=e97cea8e-
> 7d69-40ec-a580-1ff9a8d00c16



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message