[ https://issues.apache.org/jira/browse/CLOUDSTACK-2385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kiran Koneti updated CLOUDSTACK-2385: ------------------------------------- Comment: was deleted (was: After this I released the dedicated zone from the subdomain 1 and tried to dedicate it to the subdomain 2 then observed the below error message: 2013-06-12 22:04:59,701 INFO [cloudstack.dedicated.DedicatedResourceManagerImpl] (Job-Executor-35:job-49) Host 1 found to be unsuitable for explicit dedication as it is running instances of another domain 2013-06-12 22:04:59,703 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-35:job-49) Unexpected exception while executing org.apache.cloudstack.api.commands.DedicateZoneCmd com.cloud.utils.exception.CloudRuntimeException: Host 1 found to be unsuitable for explicit dedication as it is running instances of another domain at org.apache.cloudstack.dedicated.DedicatedResourceManagerImpl.checkHostSuitabilityForExplicitDedication(DedicatedResourceManagerImpl.java:575) at org.apache.cloudstack.dedicated.DedicatedResourceManagerImpl.checkHostsSuitabilityForExplicitDedication(DedicatedResourceManagerImpl.java:586) at org.apache.cloudstack.dedicated.DedicatedResourceManagerImpl.dedicateZone(DedicatedResourceManagerImpl.java:211) at org.apache.cloudstack.api.commands.DedicateZoneCmd.execute(DedicateZoneCmd.java:95) 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:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) 2013-06-12 22:04:59,704 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-35:job-49) Complete async job-49, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Host 1 found to be unsuitable for explicit dedication as it is running instances of another domain And when it tried to dedicate it to the Root domain there are no exceptions seen.) > template download fails with Unexpected failure in Vmware. > ---------------------------------------------------------- > > Key: CLOUDSTACK-2385 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2385 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Template > Affects Versions: 4.2.0 > Reporter: Kiran Koneti > Priority: Critical > Fix For: 4.2.0 > > Attachments: management-server.zip > > > I registered a template with the parameters extractable=yes,Public=yes and > Featured=yes. > Then later I tried to download the template from the UI. > It shows an error message in the UI as below:"PrepareExtractTemplate: Failed > to create OVA for template extraction" > and in the management server log below are the error messages observed. > "2013-05-08 17:03:14,828 DEBUG [cloud.api.ApiServlet] (catalina-exec-4:null) > ===START=== 10.146.0.136 -- GET > command=extractTemplate&mode=HTTP_DOWNLOAD&id=21e135aa-4df9-4818-b89c-99c64de5ee70&zoneid=58e1ce4d-fb5c-48c4-948f-408c969deae0&response=json&sessionkey=xrRnNHcHp3bh6nKU0gggxWRiioQ%3D&_=1367993227024 > 2013-05-08 17:03:14,865 DEBUG [cloud.async.AsyncJobManagerImpl] > (catalina-exec-4:null) submit async job-78, details: AsyncJobVO {id:78, > userId: 2, accountId: 2, sessionKey: null, instanceType: Template, > instanceId: 206, cmd: > org.apache.cloudstack.api.command.user.template.ExtractTemplateCmd, > cmdOriginator: null, cmdInfo: > {"response":"json","id":"21e135aa-4df9-4818-b89c-99c64de5ee70","sessionkey":"xrRnNHcHp3bh6nKU0gggxWRiioQ\u003d","ctxUserId":"2","zoneid":"58e1ce4d-fb5c-48c4-948f-408c969deae0","httpmethod":"GET","_":"1367993227024","ctxAccountId":"2","ctxStartEventId":"322","mode":"HTTP_DOWNLOAD"}, > cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, > processStatus: 0, resultCode: 0, result: null, initMsid: 6703101771911, > completeMsid: null, lastUpdated: null, lastPolled: null, created: null} > 2013-05-08 17:03:14,868 DEBUG [cloud.api.ApiServlet] (catalina-exec-4:null) > ===END=== 10.146.0.136 -- GET > command=extractTemplate&mode=HTTP_DOWNLOAD&id=21e135aa-4df9-4818-b89c-99c64de5ee70&zoneid=58e1ce4d-fb5c-48c4-948f-408c969deae0&response=json&sessionkey=xrRnNHcHp3bh6nKU0gggxWRiioQ%3D&_=1367993227024 > 2013-05-08 17:03:14,872 DEBUG [cloud.async.AsyncJobManagerImpl] > (Job-Executor-26:job-78) Executing > org.apache.cloudstack.api.command.user.template.ExtractTemplateCmd for job-78 > 2013-05-08 17:03:14,894 DEBUG [cloud.template.HypervisorTemplateAdapter] > (Job-Executor-26:job-78) Failed to create OVA for template > Tmpl[206-OVA-206-2-70244819-a3df-3daf-882c-c05c22c9645a due to zone > non-existing. > 2013-05-08 17:03:14,905 ERROR [cloud.async.AsyncJobManagerImpl] > (Job-Executor-26:job-78) Unexpected exception while executing > org.apache.cloudstack.api.command.user.template.ExtractTemplateCmd > com.cloud.utils.exception.CloudRuntimeException: PrepareExtractTemplate: > Failed to create OVA for template extraction. > at > com.cloud.template.HypervisorTemplateAdapter.prepareExtractTemplate(HypervisorTemplateAdapter.java:263) > at > com.cloud.template.TemplateManagerImpl.extract(TemplateManagerImpl.java:375) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > org.apache.cloudstack.api.command.user.template.ExtractTemplateCmd.execute(ExtractTemplateCmd.java:128) > 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:1110) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:679) > 2013-05-08 17:03:14,907 DEBUG [cloud.async.AsyncJobManagerImpl] > (Job-Executor-26:job-78) Complete async job-78, jobStatus: 2, resultCode: > 530, result: Error Code: 530 Error text: PrepareExtractTemplate: Failed to > create OVA for template extraction. > 2013-05-08 17:03:16,752 DEBUG [agent.manager.DirectAgentAttache] > (DirectAgent-18:null) Ping from 5 > 2013-05-08 17:03:17,262 DEBUG [agent.manager.DirectAgentAttache] > (DirectAgent-198:null) Ping from 1 > 2013-05-08 17:03:17,884 DEBUG [cloud.api.ApiServlet] (catalina-exec-16:null) > ===START=== 10.146.0.136 -- GET > command=queryAsyncJobResult&jobId=847d337a-0f3c-4396-8d78-7efad2f9a7b2&response=json&sessionkey=xrRnNHcHp3bh6nKU0gggxWRiioQ%3D&_=1367993230129 > 2013-05-08 17:03:17,903 DEBUG [cloud.async.AsyncJobManagerImpl] > (catalina-exec-16:null) Async job-78 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