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 CB4F718A3B for ; Wed, 8 Jul 2015 10:08:05 +0000 (UTC) Received: (qmail 40922 invoked by uid 500); 8 Jul 2015 10:08:05 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 40894 invoked by uid 500); 8 Jul 2015 10:08:05 -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 40877 invoked by uid 500); 8 Jul 2015 10:08:05 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 40852 invoked by uid 99); 8 Jul 2015 10:08:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2015 10:08:05 +0000 Date: Wed, 8 Jul 2015 10:08:05 +0000 (UTC) From: "Daan Hoogland (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CLOUDSTACK-8389) Volume to Template Conversion Broken 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-8389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daan Hoogland updated CLOUDSTACK-8389: -------------------------------------- Fix Version/s: (was: 4.5.2) 4.6.0 > Volume to Template Conversion Broken > ------------------------------------ > > Key: CLOUDSTACK-8389 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8389 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Management Server, Template > Affects Versions: 4.5.0, 4.6.0, 4.5.1 > Environment: ACS 4.5.1, vSphere 5.5 > Reporter: ilya musayev > Fix For: 4.6.0 > > > During testing of ACS 4.5.1, when i try to convert a volume to template running vmware vsphere 5.5, it bugs out with error below.. i checked on commit history, suspecting another coverity fix causes issue, would someone please have a look.. > https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=history;f=server/src/com/cloud/template/TemplateManagerImpl.java;h=8bd7b21602a0cc5410af54f41cac510f1751b183;hb=refs/heads/4.5 > 2015-04-16 18:37:17,138 DEBUG [c.c.a.t.Request] (AgentManager-Handler-4:null) Seq 12-1900237567773648695: Processing: { Ans: , MgmtId: 345049223690, via: 12, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"create template from volume exception: Exception: java.lang.NullPointerException\nMessage: null\n","wait":0}}] } > 2015-04-16 18:37:17,138 DEBUG [c.c.a.t.Request] (API-Job-Executor-11:ctx-0e29dec8 job-7636 ctx-f9f56d7e) Seq 12-1900237567773648695: Received: { Ans: , MgmtId: 345049223690, via: 12, Ver: v1, Flags: 10, { CopyCmdAnswer } } > 2015-04-16 18:37:17,153 DEBUG [c.c.t.TemplateManagerImpl] (API-Job-Executor-11:ctx-0e29dec8 job-7636 ctx-f9f56d7e) Failed to create templatecreate template from volume exception: Exception: java.lang.NullPointerException > Message: null > 2015-04-16 18:37:17,188 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-11:ctx-0e29dec8 job-7636) Unexpected exception while executing org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin > com.cloud.utils.exception.CloudRuntimeException: Failed to create templatecreate template from volume exception: Exception: java.lang.NullPointerException > Message: null > at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1397) > 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 com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51) > at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) > 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 $Proxy174.createPrivateTemplate(Unknown Source) > at org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin.execute(CreateTemplateCmdByAdmin.java:43) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141) > at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108) > 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$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:722) > 2015-04-16 18:37:17,201 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-11:ctx-0e29dec8 job-7636) Complete async job-7636, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Failed to create templatecreate template from volume exception: Exception: java.lang.NullPointerException\nMessage: null\n"} > 2015-04-16 18:37:17,203 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-11:ctx-0e29dec8 job-7636) Publish async job-7636 complete on message bus -- This message was sent by Atlassian JIRA (v6.3.4#6332)