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 2101BC33E for ; Thu, 27 Jun 2013 11:58:23 +0000 (UTC) Received: (qmail 27319 invoked by uid 500); 27 Jun 2013 11:58:21 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 27286 invoked by uid 500); 27 Jun 2013 11:58:21 -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 27266 invoked by uid 500); 27 Jun 2013 11:58:21 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 27251 invoked by uid 99); 27 Jun 2013 11:58:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jun 2013 11:58:20 +0000 Date: Thu, 27 Jun 2013 11:58:20 +0000 (UTC) From: "shweta agarwal (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CLOUDSTACK-3238) creating template from snapshot fails in vmware MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] shweta agarwal updated CLOUDSTACK-3238: --------------------------------------- Attachment: cloud.out management-server.zip Ms log and SSVM log > creating template from snapshot fails in vmware > ----------------------------------------------- > > Key: CLOUDSTACK-3238 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3238 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Template, VMware > Affects Versions: 4.2.0 > Environment: vmware advanced zone with cluster level primary storage > Reporter: shweta agarwal > Priority: Blocker > Fix For: 4.2.0 > > Attachments: cloud.out, management-server.zip > > > Repro steps: > Create a VM > create a snapshot of root disk of the VM > Create a template from the backed up snapshot > Bug: > hittting exception: > 2013-06-27 17:16:10,912 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-13:null) submit async job-371, details: AsyncJobVO {id:371, userId: 2, accountId: 2, sessionKey: null, instanceType: Template, instanceId: 228, cmd: org.apache.cloudstack.api.command.user.template.CreateTemplateCmd, cmdOriginator: null, cmdInfo: {"sessionkey":"u7fuCDtJanfTR6ObPknZNoA9z6c\u003d","ctxUserId":"2","httpmethod":"GET","osTypeId":"9e1b6a5c-d98f-11e2-95e7-0682fe000017","isPublic":"false","response":"json","id":"228","displayText":"admin","snapshotid":"045d12f4-257b-4c28-b975-1b594fd9b2a6","passwordEnabled":"false","name":"admin","_":"1372333569675","ctxAccountId":"2","ctxStartEventId":"1426"}, cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode: 0, result: null, initMsid: 7159676928023, completeMsid: null, lastUpdated: null, lastPolled: null, created: null} > 2013-06-27 17:16:10,915 DEBUG [cloud.api.ApiServlet] (catalina-exec-13:null) ===END=== 10.146.0.12 -- GET command=createTemplate&response=json&sessionkey=u7fuCDtJanfTR6ObPknZNoA9z6c%3D&snapshotid=045d12f4-257b-4c28-b975-1b594fd9b2a6&name=admin&displayText=admin&osTypeId=9e1b6a5c-d98f-11e2-95e7-0682fe000017&isPublic=false&passwordEnabled=false&_=1372333569675 > 2013-06-27 17:16:10,980 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-56:job-371) Executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd for job-371 > 2013-06-27 17:16:11,186 DEBUG [cloud.template.TemplateManagerImpl] (Job-Executor-56:job-371) Failed to create templatejava.lang.NullPointerException > 2013-06-27 17:16:11,265 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-56:job-371) Unexpected exception while executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd > com.cloud.utils.exception.CloudRuntimeException: Failed to create templatejava.lang.NullPointerException > at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1770) > at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:256) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155) > at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437) > 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:1146) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:679) > 2013-06-27 17:16:11,268 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-56:job-371) Complete async job-371, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Failed to create templatejava.lang.NullPointerException > 2013-06-27 17:16:11,270 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-422:null) Seq 1-646158771: Response Received: > 2013-06-27 17:16:11,271 DEBUG [agent.transport.Request] (StatsCollector-2:null) Seq 1-646158771: Received: { Ans: , MgmtId: 7159676928023, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer } } > 2013-06-27 17:16:11,283 DEBUG [agent.manager.DirectAgentAttache] (DirectA > Attaching MS log and ssvm logs for the same -- 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