You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Mike Tutkowski <mi...@solidfire.com> on 2013/08/06 20:28:53 UTC

Question about creating a template

Hi,

I have a small Linux ISO (http://www.damnsmalllinux.org/download.html) I've
uploaded to my secondary storage NFS location.

I can create VM instances just fine with it.

I stopped one of my VMs that was created with this ISO and tried to create
a template from its root disk.

I received the following exception and was wondering what people's comments
might be.

Thanks!

ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-8:job-41 = [
583f08f2-e32a-4d16-815a-2ac2953d2ae9 ]) Unexpected exception while
executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to create
templateUnsupported command
issued:org.apache.cloudstack.storage.command.CopyCommand.  Are you sure you
got the right type of server?
at
com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1368)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at
org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:263)
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:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:680)


-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

RE: Question about creating a template

Posted by Soheil Eizadi <se...@infoblox.com>.
Hi Mike,
The problem is with handling the command org.apache.cloudstack.storage.command.CopyCommand, look at the log before this error and see if there is any problem with the registered agent that is suppose to handle this command.
-Soheil

________________________________________
From: Mike Tutkowski [mike.tutkowski@solidfire.com]
Sent: Tuesday, August 06, 2013 11:28 AM
To: dev@cloudstack.apache.org
Subject: Question about creating a template

Hi,

I have a small Linux ISO (http://www.damnsmalllinux.org/download.html) I've
uploaded to my secondary storage NFS location.

I can create VM instances just fine with it.

I stopped one of my VMs that was created with this ISO and tried to create
a template from its root disk.

I received the following exception and was wondering what people's comments
might be.

Thanks!

ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-8:job-41 = [
583f08f2-e32a-4d16-815a-2ac2953d2ae9 ]) Unexpected exception while
executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to create
templateUnsupported command
issued:org.apache.cloudstack.storage.command.CopyCommand.  Are you sure you
got the right type of server?
at
com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1368)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at
org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:263)
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:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:680)


--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: Question about creating a template

Posted by Chiradeep Vittal <Ch...@citrix.com>.
Looks like a bug to me.

On 8/6/13 11:28 AM, "Mike Tutkowski" <mi...@solidfire.com> wrote:

>Hi,
>
>I have a small Linux ISO (http://www.damnsmalllinux.org/download.html)
>I've
>uploaded to my secondary storage NFS location.
>
>I can create VM instances just fine with it.
>
>I stopped one of my VMs that was created with this ISO and tried to create
>a template from its root disk.
>
>I received the following exception and was wondering what people's
>comments
>might be.
>
>Thanks!
>
>ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-8:job-41 = [
>583f08f2-e32a-4d16-815a-2ac2953d2ae9 ]) Unexpected exception while
>executing 
>org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
>com.cloud.utils.exception.CloudRuntimeException: Failed to create
>templateUnsupported command
>issued:org.apache.cloudstack.storage.command.CopyCommand.  Are you sure
>you
>got the right type of server?
>at
>com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManag
>erImpl.java:1368)
>at
>com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorD
>ispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>at
>org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(
>CreateTemplateCmd.java:263)
>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:439)
>at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>at
>java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.
>java:895)
>at
>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
>:918)
>at java.lang.Thread.run(Thread.java:680)
>
>
>-- 
>*Mike Tutkowski*
>*Senior CloudStack Developer, SolidFire Inc.*
>e: mike.tutkowski@solidfire.com
>o: 303.746.7302
>Advancing the way the world uses the
>cloud<http://solidfire.com/solution/overview/?video=play>
>**