Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E461B10A64 for ; Fri, 2 Aug 2013 09:29:56 +0000 (UTC) Received: (qmail 17360 invoked by uid 500); 2 Aug 2013 09:29:52 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 17343 invoked by uid 500); 2 Aug 2013 09:29:51 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 17330 invoked by uid 500); 2 Aug 2013 09:29:50 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 17321 invoked by uid 99); 2 Aug 2013 09:29:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Aug 2013 09:29:48 +0000 Date: Fri, 2 Aug 2013 09:29:48 +0000 (UTC) From: "prashant kumar mishra (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CLOUDSTACK-4039) NPE exception while .ScaleVMCmd ;when i tried to change SO fo a stopped vm on xen MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 prashant kumar mishra created CLOUDSTACK-4039: ------------------------------------------------- Summary: NPE exception while .ScaleVMCmd ;when i tried to change SO fo a stopped vm on xen Key: CLOUDSTACK-4039 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4039 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Components: UI Affects Versions: 4.2.0 Environment: xen 6.1 Reporter: prashant kumar mishra Fix For: 4.2.0 Steps to reproduce -------------------------------- 1-Prepare a CS setup with xen6.1 2-create a SO for cpvm 3-disable zone and change SO using scalevm Expected --------------- SO should get changed Actual ----------- SO is getting changed but hitting NPE Logs ----------- 2013-08-02 10:33:18,920 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-21:null) submit async job-119 = [ 01ee114d-4875-4f93-9377-85c3513b2e36 ], details: AsyncJobVO {id:119, userId: 2, accountId: 2, sessionKey: null, instanceType: None, instanceId: null, cmd: org.apache.cloudstack.api.command.user.vm.ScaleVMCmd, cmdOriginator: null, cmdInfo: {"id":"98922cc4-8f54-4770-802f-cbab622c8fba","response":"json","serviceofferingid":"1db62193-a936-4a4d-b997-040cc54b632c","sessionkey":"VuBqe2DbIvWXqsQhQ+zdXplfMkE\u003d","cmdEventType":"VM.UPGRADE","ctxUserId":"2","httpmethod":"GET","_":"1375434522617","ctxAccountId":"2","ctxStartEventId":"460"}, cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode: 0, result: null, initMsid: 7635042566263, completeMsid: null, lastUpdated: null, lastPolled: null, created: null} 2013-08-02 10:33:18,924 DEBUG [cloud.api.ApiServlet] (catalina-exec-21:null) ===END=== 10.252.192.53 -- GET command=scaleVirtualMachine&id=98922cc4-8f54-4770-802f-cbab622c8fba&serviceofferingid=1db62193-a936-4a4d-b997-040cc54b632c&response=json&sessionkey=VuBqe2DbIvWXqsQhQ%2BzdXplfMkE%3D&_=1375434522617 2013-08-02 10:33:18,928 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-26:job-119 = [ 01ee114d-4875-4f93-9377-85c3513b2e36 ]) Executing org.apache.cloudstack.api.command.user.vm.ScaleVMCmd for job-119 = [ 01ee114d-4875-4f93-9377-85c3513b2e36 ] 2013-08-02 10:33:18,940 DEBUG [cloud.api.ApiDispatcher] (Job-Executor-26:job-119 = [ 01ee114d-4875-4f93-9377-85c3513b2e36 ]) ControlledEntity name is:com.cloud.vm.VirtualMachine 2013-08-02 10:33:18,942 DEBUG [cloud.api.ApiDispatcher] (Job-Executor-26:job-119 = [ 01ee114d-4875-4f93-9377-85c3513b2e36 ]) ControlledEntity name is:com.cloud.uservm.UserVm 2013-08-02 10:33:18,945 DEBUG [cloud.api.ApiDispatcher] (Job-Executor-26:job-119 = [ 01ee114d-4875-4f93-9377-85c3513b2e36 ]) ControlledEntity name is:com.cloud.network.router.VirtualRouter 2013-08-02 10:33:18,949 DEBUG [cloud.api.ApiDispatcher] (Job-Executor-26:job-119 = [ 01ee114d-4875-4f93-9377-85c3513b2e36 ]) InfrastructureEntity name is:com.cloud.offering.ServiceOffering 2013-08-02 10:33:19,067 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-26:job-119 = [ 01ee114d-4875-4f93-9377-85c3513b2e36 ]) Unexpected exception while executing org.apache.cloudstack.api.command.user.vm.ScaleVMCmd java.lang.NullPointerException at com.cloud.vm.UserVmManagerImpl.upgradeVirtualMachine(UserVmManagerImpl.java:1162) at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) at org.apache.cloudstack.api.command.user.vm.ScaleVMCmd.execute(ScaleVMCmd.java:102) at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158) at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) 2013-08-02 10:33:19,083 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-26:job-119 = [ 01ee114d-4875-4f93-9377-85c3513b2e36 ]) Complete async job-119 = [ 01ee114d-4875-4f93-9377-85c3513b2e36 ], jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: null 2013-08-02 10:33:22,144 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:null) ===START=== 10.252.192.53 -- GET command=queryAsyncJobResult&jobId=01ee114d-4875-4f93-9377-85c3513b2e36&response=json&sessionkey=VuBqe2DbIvWXqsQhQ%2BzdXplfMkE%3D&_=1375434525957 2013-08-02 10:33:22,165 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-3:null) Async job-119 = [ 01ee114d-4875-4f93-9377-85c3513b2e36 ] completed -- 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