cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "edison su (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-3616) [VMware] Failed to create template from volume (volume is created from snapshot of data volume)
Date Wed, 24 Jul 2013 22:33:48 GMT

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

edison su commented on CLOUDSTACK-3616:
---------------------------------------

Somehow the following code has problem, I don't know how it works before:

	VmwareHypervisorHost hyperHost = hostService.getHyperHost(context, cmd);

			VirtualMachineMO vmMo = hyperHost.findVmOnHyperHost(volume.getVmName());
			if (vmMo == null) {
				if(s_logger.isDebugEnabled())
					s_logger.debug("Unable to find the owner VM for CreatePrivateTemplateFromVolumeCommand
on host " + hyperHost.getHyperHostName() + ", try within datacenter");
				vmMo = hyperHost.findVmOnPeerHyperHost(volume.getVmName());

				if(vmMo == null) {
					String msg = "Unable to find the owner VM for volume operation. vm: " + volume.getVmName();
					s_logger.error(msg);
					throw new Exception(msg);
				}
			}



The vm is already stopped before creating template from volume, then above code can't find
the vm,
                
> [VMware] Failed to create template from volume (volume is created from snapshot of data
volume)
> -----------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3616
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3616
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Storage Controller, VMware
>    Affects Versions: 4.2.0
>         Environment: VMware ESXi 5.0
> ACS master branch
>            Reporter: Sateesh Chodapuneedi
>            Assignee: edison su
>            Priority: Blocker
>             Fix For: 4.2.0
>
>
> When tried to created template from volume created from snapshot we see following error
in Cloudstack deployed over VMware.
> 2013-07-18 00:02:52,273 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-28:job-65
= [ ababda19-bd16-4e7c-aa92-39b948ad120f ]) Unexpected exception while executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
> com.cloud.utils.exception.CloudRuntimeException: Failed to create template
>     at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1369)
>     at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>     at org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:258)
>     at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>     at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:538)
>     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)

--
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

Mime
View raw message