cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Min Chen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-3945) CLONE - [single Zone with multiple clusters] SystemVM Templates are not downloaded for the second cluster.
Date Tue, 06 Aug 2013 00:03:48 GMT

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

Min Chen commented on CLOUDSTACK-3945:
--------------------------------------

Sanjeev, I have verified the following scenario with latest 4.2 build:

1. create a zone of a xen cluster.  Xen system template is pre-seeded on my NFS secondary
storage. SSVM comes up successfully, and centos default template is downloaded to secondary
storage during ssvm template sync.
2. Now add another vmware cluster into the same zone. Check if vsphere systemvm template and
centos default templates are downloaded automatically to NFS secondary storage.

I have seen step #2 happening successfully in my setup, and can see this in my ms log:

2013-08-05 16:44:48,377 DEBUG [agent.manager.AgentManagerImpl] (1197457660@qtp-180843760-11:null)
Sending Connect to listener: DownloadListener
2013-08-05 16:47:05,752 DEBUG [storage.image.TemplateDataFactoryImpl] (1197457660@qtp-180843760-11:null)
template 8 is already in store:1, type:Image
2013-08-05 16:47:05,863 DEBUG [storage.image.BaseImageStoreDriverImpl] (1197457660@qtp-180843760-11:null)
Downloading template to data store 1
2013-08-05 16:47:05,958 DEBUG [storage.image.BaseImageStoreDriverImpl] (1197457660@qtp-180843760-11:null)
Performing image store createTemplate async callback
2013-08-05 16:47:05,999 DEBUG [cloudstack.storage.RemoteHostEndPoint] (1197457660@qtp-180843760-11:null)
Sending command org.apache.cloudstack.storage.command.DownloadCommand to host: 3
2013-08-05 16:47:06,031 DEBUG [agent.transport.Request] (1197457660@qtp-180843760-11:null)
Seq 3-878575649: Sending  { Cmd , MgmtId: 1, via: 3, Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.DownloadCommand":{"hvm":false,"description":"SystemVM
Template (vSphere)","checksum":"8fde62b1089e5844a9cd3b9b953f9596","maxDownloadSizeInBytes":53687091200,"id":8,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/8","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.233/export/home/min/secondary","_role":"Image"}},"url":"http://download.cloud.com/templates/4.2/systemvmtemplate-4.2-vh7.ova","format":"OVA","accountId":1,"name":"routing-8","secUrl":"nfs://10.223.110.233/export/home/min/secondary","wait":0}}]
}
2013-08-05 16:47:11,049 DEBUG [storage.image.TemplateDataFactoryImpl] (1197457660@qtp-180843760-11:null)
template 7 is already in store:1, type:Image
2013-08-05 16:47:11,156 DEBUG [storage.image.BaseImageStoreDriverImpl] (1197457660@qtp-180843760-11:null)
Downloading template to data store 1
2013-08-05 16:47:11,239 DEBUG [storage.image.BaseImageStoreDriverImpl] (1197457660@qtp-180843760-11:null)
Performing image store createTemplate async callback
2013-08-05 16:47:11,275 DEBUG [cloudstack.storage.RemoteHostEndPoint] (1197457660@qtp-180843760-11:null)
Sending command org.apache.cloudstack.storage.command.DownloadCommand to host: 3
2013-08-05 16:47:11,304 DEBUG [agent.transport.Request] (1197457660@qtp-180843760-11:null)
Seq 3-878575650: Sending  { Cmd , MgmtId: 1, via: 3, Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.DownloadCommand":{"hvm":false,"description":"CentOS
5.3(64-bit) no GUI (vSphere)","checksum":"f6f881b7f2292948d8494db837fe0f47","maxDownloadSizeInBytes":53687091200,"id":7,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/7","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.233/export/home/min/secondary","_role":"Image"}},"url":"http://download.cloud.com/releases/2.2.0/CentOS5.3-x86_64.ova","format":"OVA","accountId":1,"name":"centos53-x64","secUrl":"nfs://10.223.110.233/export/home/min/secondary","wait":0}}]
}

Here template 7 and template 8 are the vmware specific templates.
                
> CLONE - [single Zone with multiple clusters] SystemVM Templates are not downloaded for
the second cluster.
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3945
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3945
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Storage Controller
>    Affects Versions: pre-4.0.0, 4.2.0
>            Reporter: Nitin Mehta
>            Assignee: Min Chen
>            Priority: Critical
>             Fix For: 4.2.0
>
>
> Steps to reproduce :
> 1. Have at least one advanced zone.
> 2. Create a XenServer Cluster with 1 host and add secondary, primary storages
> Observations:
> (i) system vm template from secondary to primary got copied successfully and System VMs
came up fine without any issues.
> (ii) One additional observation made during this was : It deleted all the system vm templates
entries except the  xenserver routing-1.
> Snippet from mgmt server log is here:
> 2013-07-29 15:38:18,089 INFO  [storage.image.TemplateServiceImpl] (AgentConnectTaskPool-9:null)
Template Sync found routing-1 already in the image store
> 2013-07-29 15:38:18,169 INFO  [storage.image.TemplateServiceImpl] (AgentConnectTaskPool-9:null)
Template Sync did not find routing-3 on image store 8, may request download based on available
hypervisor types
> 2013-07-29 15:38:18,170 INFO  [storage.image.TemplateServiceImpl] (AgentConnectTaskPool-9:null)
Removing leftover template routing-3 entry from template store table
> 2013-07-29 15:38:18,181 INFO  [storage.image.TemplateServiceImpl] (AgentConnectTaskPool-9:null)
Template Sync did not find routing-8 on image store 8, may request download based on available
hypervisor types
> 2013-07-29 15:38:18,181 INFO  [storage.image.TemplateServiceImpl] (AgentConnectTaskPool-9:null)
Removing leftover template routing-8 entry from template store table
> 2013-07-29 15:38:18,188 INFO  [storage.image.TemplateServiceImpl] (AgentConnectTaskPool-9:null)
Template Sync did not find routing-9 on image store 8, may request download based on available
hypervisor types
> 2013-07-29 15:38:18,188 INFO  [storage.image.TemplateServiceImpl] (AgentConnectTaskPool-9:null)
Removing leftover template routing-9 entry from template store table
> 2013-07-29 15:38:18,194 INFO  [storage.image.TemplateServiceImpl] (AgentConnectTaskPool-9:null)
Template Sync did not find routing-10 on image store 8, may request download based on available
hypervisor types
> (3) Add another cluster with KVM hypervisor with at least 1 host
> Observation:
> (iii) Didn't see any systemVM template download happening for kvm hypervisor.
> (4) disable the XenServer cluster
> (iv) When tried to deploy a VM using a manually uploaded centOS template then it failed
with the following error.
> 2013-07-29 16:55:20,556 ERROR [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-13:job-89
= [ 4ce02580-1239-400c-9638-3225599b949c ]) Failed to start instance VM[User|testVM]
> com.cloud.utils.exception.CloudRuntimeException: Template 3 has not been completely downloaded
to zone 2
> 	at com.cloud.template.TemplateManagerImpl.getTemplateSize(TemplateManagerImpl.java:1648)
> 	at com.cloud.storage.VolumeManagerImpl.allocateTemplatedVolume(VolumeManagerImpl.java:1451)
> 	at com.cloud.vm.VirtualMachineManagerImpl.allocate(VirtualMachineManagerImpl.java:389)
> 	at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> 	at com.cloud.vm.VirtualMachineManagerImpl.allocate(VirtualMachineManagerImpl.java:417)
> 	at com.cloud.network.router.VirtualNetworkApplianceManagerImpl.deployRouter(VirtualNetworkApplianceManagerImpl.java:1648)
> 	at com.cloud.network.router.VirtualNetworkApplianceManagerImpl.findOrDeployVirtualRouterInGuestNetwork(VirtualNetworkApplianceManagerImpl.java:1548)
> 	at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> 	at com.cloud.network.router.VirtualNetworkApplianceManagerImpl.deployVirtualRouterInGuestNetwork(VirtualNetworkApplianceManagerImpl.java:1946)
> 	at com.cloud.network.element.VirtualRouterElement.implement(VirtualRouterElement.java:203)
> 	at com.cloud.network.NetworkManagerImpl.implementNetworkElementsAndResources(NetworkManagerImpl.java:1984)
> 	at com.cloud.network.NetworkManagerImpl.implementNetwork(NetworkManagerImpl.java:1889)
> 	at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> 	at com.cloud.network.NetworkManagerImpl.prepare(NetworkManagerImpl.java:2070)
> 	at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:911)
> 	at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:618)
> 	at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirtualMachine(VMEntityManagerImpl.java:227)
> 	at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deploy(VirtualMachineEntityImpl.java:209)
> 	at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3334)
> 	at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2894)
> 	at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2880)
> 	at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> 	at org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:420)
> 	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: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)
> Attaching all the required logs along with db dump to the bug.

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