[jira] [Commented] (CLOUDSTACK-7136) [Automation] NPE thrown during listing Hosts For Migration Of VM

2014-07-30 Thread Devdeep Singh (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14079051#comment-14079051
 ] 

Devdeep Singh commented on CLOUDSTACK-7136:
---

The issue seems to be related to custom disk offering. For a custom disk 
offering the cpu and memory values are null and the user specifies them while 
creating an instance. In the allocator, these values are expected to be present 
in the offering object. This causes a null pointer exception.

 [Automation] NPE thrown during listing Hosts For Migration Of VM
 

 Key: CLOUDSTACK-7136
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7136
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
  Components: Management Server
Affects Versions: 4.5.0
Reporter: Chandan Purushothama
Assignee: Devdeep Singh
Priority: Critical
 Fix For: 4.5.0


 =
 NullPointer Exception:
 =
 2014-07-11 15:38:49,980 DEBUG [c.c.a.ApiServlet] 
 (catalina-exec-8:ctx-fe756f7e) ===START===  10.220.64.12 -- GET  
 signature=b5ug4%2FGZ2j39PwVI1etwVopiE7o%3DapiKey=Ra1mlXzCZU0K1l4MKDWdRbQDU67PCQuRnKYv3hyc-Q8hSvCSFjB32UtifLbS6oYpMeKaf0BCuUidMw0LqZeCMAcommand=queryAsyncJobResultresponse=jsonjobid=6a85f3b5-98fa-407d-90b6-16ed1b6d3ff5
 2014-07-11 15:38:49,999 DEBUG [c.c.a.ApiServlet] 
 (catalina-exec-8:ctx-fe756f7e ctx-305f25b6 ctx-957b41d0) ===END===  
 10.220.64.12 -- GET  
 signature=b5ug4%2FGZ2j39PwVI1etwVopiE7o%3DapiKey=Ra1mlXzCZU0K1l4MKDWdRbQDU67PCQuRnKYv3hyc-Q8hSvCSFjB32UtifLbS6oYpMeKaf0BCuUidMw0LqZeCMAcommand=queryAsyncJobResultresponse=jsonjobid=6a85f3b5-98fa-407d-90b6-16ed1b6d3ff5
 2014-07-11 15:38:50,003 DEBUG [c.c.a.ApiServlet] 
 (catalina-exec-5:ctx-0b26583d) ===START===  10.220.64.12 -- GET  
 apiKey=Ra1mlXzCZU0K1l4MKDWdRbQDU67PCQuRnKYv3hyc-Q8hSvCSFjB32UtifLbS6oYpMeKaf0BCuUidMw0LqZeCMAvirtualmachineid=64f87891-2ae6-486e-9ce0-c02a14bc38eccommand=listHostssignature=EiTYc1Um98AA34LKUSsqan2vRPA%3Dresponse=json
 2014-07-11 15:38:50,027 DEBUG [o.a.c.a.HostAntiAffinityProcessor] 
 (catalina-exec-5:ctx-0b26583d ctx-c01743fd ctx-f1ba4ab8) Processing affinity 
 group aff_grp_E3U2D3 for VM Id: 44
 2014-07-11 15:38:50,031 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
 (catalina-exec-5:ctx-0b26583d ctx-c01743fd ctx-f1ba4ab8) FirstFitAllocator 
 has 1 hosts to check for allocation: [Host[-2-Routing]]
 2014-07-11 15:38:50,035 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
 (catalina-exec-5:ctx-0b26583d ctx-c01743fd ctx-f1ba4ab8) Found 1 hosts for 
 allocation after prioritization: [Host[-2-Routing]]
 2014-07-11 15:38:50,036 ERROR [c.c.a.ApiServer] (catalina-exec-5:ctx-0b26583d 
 ctx-c01743fd ctx-f1ba4ab8) unhandled exception executing api command: 
 [Ljava.lang.String;@37e5f2d9
 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:225)
   at 
 com.cloud.server.ManagementServerImpl.listHostsForMigrationOfVM(ManagementServerImpl.java:1226)
   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:601)
   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 $Proxy236.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 
 

[jira] [Commented] (CLOUDSTACK-7136) [Automation] NPE thrown during listing Hosts For Migration Of VM

2014-07-30 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14079177#comment-14079177
 ] 

ASF subversion and git services commented on CLOUDSTACK-7136:
-

Commit 96b5c08250984b50369eafe4a850fdad902ce70f in cloudstack's branch 
refs/heads/master from [~devdeep]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=96b5c08 ]

CLOUDSTACK-7136. While listing hosts for migration, the offering details were
not correctly initialized in the vmprofile. With a custom offering the cpu,
cpu-speed and memory were getting initialized to null which caused a NPE in
the allocator. Fixed it by explicitly initializing the offering details in the
vm profile before calling into the allocator for listing suitable hosts.


 [Automation] NPE thrown during listing Hosts For Migration Of VM
 

 Key: CLOUDSTACK-7136
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7136
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
  Components: Management Server
Affects Versions: 4.5.0
Reporter: Chandan Purushothama
Assignee: Devdeep Singh
Priority: Critical
 Fix For: 4.5.0


 =
 NullPointer Exception:
 =
 2014-07-11 15:38:49,980 DEBUG [c.c.a.ApiServlet] 
 (catalina-exec-8:ctx-fe756f7e) ===START===  10.220.64.12 -- GET  
 signature=b5ug4%2FGZ2j39PwVI1etwVopiE7o%3DapiKey=Ra1mlXzCZU0K1l4MKDWdRbQDU67PCQuRnKYv3hyc-Q8hSvCSFjB32UtifLbS6oYpMeKaf0BCuUidMw0LqZeCMAcommand=queryAsyncJobResultresponse=jsonjobid=6a85f3b5-98fa-407d-90b6-16ed1b6d3ff5
 2014-07-11 15:38:49,999 DEBUG [c.c.a.ApiServlet] 
 (catalina-exec-8:ctx-fe756f7e ctx-305f25b6 ctx-957b41d0) ===END===  
 10.220.64.12 -- GET  
 signature=b5ug4%2FGZ2j39PwVI1etwVopiE7o%3DapiKey=Ra1mlXzCZU0K1l4MKDWdRbQDU67PCQuRnKYv3hyc-Q8hSvCSFjB32UtifLbS6oYpMeKaf0BCuUidMw0LqZeCMAcommand=queryAsyncJobResultresponse=jsonjobid=6a85f3b5-98fa-407d-90b6-16ed1b6d3ff5
 2014-07-11 15:38:50,003 DEBUG [c.c.a.ApiServlet] 
 (catalina-exec-5:ctx-0b26583d) ===START===  10.220.64.12 -- GET  
 apiKey=Ra1mlXzCZU0K1l4MKDWdRbQDU67PCQuRnKYv3hyc-Q8hSvCSFjB32UtifLbS6oYpMeKaf0BCuUidMw0LqZeCMAvirtualmachineid=64f87891-2ae6-486e-9ce0-c02a14bc38eccommand=listHostssignature=EiTYc1Um98AA34LKUSsqan2vRPA%3Dresponse=json
 2014-07-11 15:38:50,027 DEBUG [o.a.c.a.HostAntiAffinityProcessor] 
 (catalina-exec-5:ctx-0b26583d ctx-c01743fd ctx-f1ba4ab8) Processing affinity 
 group aff_grp_E3U2D3 for VM Id: 44
 2014-07-11 15:38:50,031 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
 (catalina-exec-5:ctx-0b26583d ctx-c01743fd ctx-f1ba4ab8) FirstFitAllocator 
 has 1 hosts to check for allocation: [Host[-2-Routing]]
 2014-07-11 15:38:50,035 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
 (catalina-exec-5:ctx-0b26583d ctx-c01743fd ctx-f1ba4ab8) Found 1 hosts for 
 allocation after prioritization: [Host[-2-Routing]]
 2014-07-11 15:38:50,036 ERROR [c.c.a.ApiServer] (catalina-exec-5:ctx-0b26583d 
 ctx-c01743fd ctx-f1ba4ab8) unhandled exception executing api command: 
 [Ljava.lang.String;@37e5f2d9
 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:225)
   at 
 com.cloud.server.ManagementServerImpl.listHostsForMigrationOfVM(ManagementServerImpl.java:1226)
   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:601)
   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 $Proxy236.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 

[jira] [Commented] (CLOUDSTACK-7136) [Automation] NPE thrown during listing Hosts For Migration Of VM

2014-07-25 Thread Animesh Chaturvedi (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14075034#comment-14075034
 ] 

Animesh Chaturvedi commented on CLOUDSTACK-7136:


Devdeep are you working on this. Can you provide an update?

 [Automation] NPE thrown during listing Hosts For Migration Of VM
 

 Key: CLOUDSTACK-7136
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7136
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public(Anyone can view this level - this is the 
 default.) 
  Components: Management Server
Affects Versions: 4.5.0
Reporter: Chandan Purushothama
Assignee: Devdeep Singh
Priority: Critical
 Fix For: 4.5.0


 =
 NullPointer Exception:
 =
 2014-07-11 15:38:49,980 DEBUG [c.c.a.ApiServlet] 
 (catalina-exec-8:ctx-fe756f7e) ===START===  10.220.64.12 -- GET  
 signature=b5ug4%2FGZ2j39PwVI1etwVopiE7o%3DapiKey=Ra1mlXzCZU0K1l4MKDWdRbQDU67PCQuRnKYv3hyc-Q8hSvCSFjB32UtifLbS6oYpMeKaf0BCuUidMw0LqZeCMAcommand=queryAsyncJobResultresponse=jsonjobid=6a85f3b5-98fa-407d-90b6-16ed1b6d3ff5
 2014-07-11 15:38:49,999 DEBUG [c.c.a.ApiServlet] 
 (catalina-exec-8:ctx-fe756f7e ctx-305f25b6 ctx-957b41d0) ===END===  
 10.220.64.12 -- GET  
 signature=b5ug4%2FGZ2j39PwVI1etwVopiE7o%3DapiKey=Ra1mlXzCZU0K1l4MKDWdRbQDU67PCQuRnKYv3hyc-Q8hSvCSFjB32UtifLbS6oYpMeKaf0BCuUidMw0LqZeCMAcommand=queryAsyncJobResultresponse=jsonjobid=6a85f3b5-98fa-407d-90b6-16ed1b6d3ff5
 2014-07-11 15:38:50,003 DEBUG [c.c.a.ApiServlet] 
 (catalina-exec-5:ctx-0b26583d) ===START===  10.220.64.12 -- GET  
 apiKey=Ra1mlXzCZU0K1l4MKDWdRbQDU67PCQuRnKYv3hyc-Q8hSvCSFjB32UtifLbS6oYpMeKaf0BCuUidMw0LqZeCMAvirtualmachineid=64f87891-2ae6-486e-9ce0-c02a14bc38eccommand=listHostssignature=EiTYc1Um98AA34LKUSsqan2vRPA%3Dresponse=json
 2014-07-11 15:38:50,027 DEBUG [o.a.c.a.HostAntiAffinityProcessor] 
 (catalina-exec-5:ctx-0b26583d ctx-c01743fd ctx-f1ba4ab8) Processing affinity 
 group aff_grp_E3U2D3 for VM Id: 44
 2014-07-11 15:38:50,031 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
 (catalina-exec-5:ctx-0b26583d ctx-c01743fd ctx-f1ba4ab8) FirstFitAllocator 
 has 1 hosts to check for allocation: [Host[-2-Routing]]
 2014-07-11 15:38:50,035 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
 (catalina-exec-5:ctx-0b26583d ctx-c01743fd ctx-f1ba4ab8) Found 1 hosts for 
 allocation after prioritization: [Host[-2-Routing]]
 2014-07-11 15:38:50,036 ERROR [c.c.a.ApiServer] (catalina-exec-5:ctx-0b26583d 
 ctx-c01743fd ctx-f1ba4ab8) unhandled exception executing api command: 
 [Ljava.lang.String;@37e5f2d9
 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:225)
   at 
 com.cloud.server.ManagementServerImpl.listHostsForMigrationOfVM(ManagementServerImpl.java:1226)
   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:601)
   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 $Proxy236.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