You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/05/21 07:13:00 UTC

[jira] [Commented] (CLOUDSTACK-8491) Host maintenance fails if a vm on it is running a custom service offering VM

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-8491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14553638#comment-14553638 ] 

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

Commit c21aa89a47f4f8cf0bda12c7024fe30059004966 in cloudstack's branch refs/heads/4.5 from [~abhi_shapeblue]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=c21aa89 ]

CLOUDSTACK-8491: Host maintenance fails if a vm on it is running a custom service offering VM


> Host maintenance fails if a vm on it is running a custom service offering VM
> ----------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8491
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8491
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>    Affects Versions: 4.5.1
>            Reporter: Abhinandan Prateek
>            Priority: Critical
>             Fix For: 4.6.0, 4.5.2
>
>
> The deployment planner gets a null pointer when looking up the custom service offering's CPU/Memory values. This is because  the virtualmachine profile uses entityMgr to look up the service offering by ID instead of the ServiceOfferingDao, which would reconcile these values with the individual VM's custom CPU/Ram.
>  Invocation exception, caused by: java.lang.NullPointerException
> INFO  [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-5:ctx-d13e552a job-44/job-45 ctx-f2807282) Rethrow exception java.lang.NullPointerException
> ERROR [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-5:ctx-d13e552a job-44/job-45) Unable to complete AsyncJobVO {id:45, userId: 1, accountId: 1, instanceType: null, instanceId: null, cmd: com.cloud.vm.VmWorkMigrateAway, cmdInfo: rO0ABXNyAB5jb20uY2xvdWQudm0uVm1Xb3JrTWlncmF0ZUF3YXmt4MX4jtcEmwIAAUoACXNyY0hvc3RJZHhyABNjb20uY2xvdWQudm0uVm1Xb3Jrn5m2VvAlZ2sCAARKAAlhY2NvdW50SWRKAAZ1c2VySWRKAAR2bUlkTAALaGFuZGxlck5hbWV0ABJMamF2YS9sYW5nL1N0cmluZzt4cAAAAAAAAAABAAAAAAAAAAEAAAAAAAAAB3QAGVZpcnR1YWxNYWNoaW5lTWFuYWdlckltcGwAAAAAAAAAAQ, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 345043735628, completeMsid: null, lastUpdated: null, lastPolled: null, created: Thu May 21 09:57:06 IST 2015}, job origin:44
> java.lang.NullPointerException
> 	at com.cloud.deploy.DeploymentPlanningManagerImpl.planDeployment(DeploymentPlanningManagerImpl.java:292)
> 	at com.cloud.vm.VirtualMachineManagerImpl.orchestrateMigrateAway(VirtualMachineManagerImpl.java:2376)
> 	at com.cloud.vm.VirtualMachineManagerImpl.orchestrateMigrateAway(VirtualMachineManagerImpl.java:4517)
> 	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 com.cloud.vm.VmWorkJobHandlerProxy.handleVmWorkJob(VmWorkJobHandlerProxy.java:107)
> 	at com.cloud.vm.VirtualMachineManagerImpl.handleVmWorkJob(VirtualMachineManagerImpl.java:4636)
> 	at com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:103)
> 	at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:537)
> 	at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> 	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 org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> 	at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:494)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 	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:745)
> INFO  [c.c.v.VirtualMachineManagerImpl] (Work-Job-Executor-2:ctx-3c7fb099 job-39/job-40 ctx-4b895de7) Migrating VM[ConsoleProxy|v-1-VM] to Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))] : Dest[Zone(1)-Pod(1)-Cluster(1)-Host(2)-Storage()]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)