You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ilya musayev (JIRA)" <ji...@apache.org> on 2015/04/16 21:58:58 UTC

[jira] [Commented] (CLOUDSTACK-8389) Volume to Template Conversion Broken

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

ilya musayev commented on CLOUDSTACK-8389:
------------------------------------------

to reproduce, shutdown the VM, navigate to volumes, select ROOT volume, attempt to convert volume to template

> 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.5.1
>
>
> 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)