Hello,
I am facing a problem I don't understand when I try to use the current master with a vmware cluster. When I create an instance for the first time, it does not download the template to primary storage... But It works for the systemvms ! Here is what I see in the logs : 2013-03-01 09:03:57,386 DEBUG [cloud.storage.VolumeManagerImpl] (Job-Executor-3:job-19) Checking if we need to prepare 1 volumes for VM[User|1c0da489-3c4d-4225-92be-40d62ee662b0] 2013-03-01 09:03:57,482 DEBUG [agent.transport.Request] (Job-Executor-3:job-19) Seq 1-1105592333: Sending { Cmd , MgmtId: 345042876358, via: 1, Ver: v1, Flags: 100111, [{"storage.CreateCommand":{"volId":9,"pool":{"id":200,"uuid":"cc08b902-cbe8-3b8d-a987-3167edafafc7","host":"172.21.4.2","path":"/data/testosx","port":2049,"type":"NetworkFilesystem"},"diskCharacteristics":{"size":2147483648,"tags":[],"type":"ROOT","name":"ROOT-37","useLocalStorage":false,"recreatable":true,"diskOfferingId":1,"volumeId":9},"wait":0}}] } 2013-03-01 09:03:57,482 DEBUG [agent.transport.Request] (Job-Executor-3:job-19) Seq 1-1105592333: Executing: { Cmd , MgmtId: 345042876358, via: 1, Ver: v1, Flags: 100111, [{"storage.CreateCommand":{"volId":9,"pool":{"id":200,"uuid":"cc08b902-cbe8-3b8d-a987-3167edafafc7","host":"172.21.4.2","path":"/data/testosx","port":2049,"type":"NetworkFilesystem"},"diskCharacteristics":{"size":2147483648,"tags":[],"type":"ROOT","name":"ROOT-37","useLocalStorage":false,"recreatable":true,"diskOfferingId":1,"volumeId":9},"wait":0}}] } 2013-03-01 09:03:57,482 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-15:null) Seq 1-1105592333: Executing request 2013-03-01 09:03:57,483 INFO [vmware.resource.VmwareResource] (DirectAgent-15:172.21.0.251) Executing resource CreateCommand: {"volId":9,"pool":{"id":200,"uuid":"cc08b902-cbe8-3b8d-a987-3167edafafc7","host":"172.21.4.2","path":"/data/testosx","port":2049,"type":"NetworkFilesystem"},"diskCharacteristics":{"size":2147483648,"tags":[],"type":"ROOT","name":"ROOT-37","useLocalStorage":false,"recreatable":true,"diskOfferingId":1,"volumeId":9},"wait":0} 2013-03-01 09:03:59,628 DEBUG [vmware.mo.HostMO] (DirectAgent-15:172.21.0.251) find VM 81298a3a70c2490f854f162c52d6c40e on host And here is what I expect to see (same action for systemvm) : 2013-02-28 09:43:09,503 DEBUG [cloud.storage.StorageManagerImpl] (Job-Executor-11:job-44) Checking if we need to prepare 1 volumes for VM[SecondaryStorageVm|s-1-TEST] 2013-02-28 09:43:09,503 DEBUG [cloud.storage.StorageManagerImpl] (Job-Executor-11:job-44) Volume Vol[1|vm=1|ROOT] will be recreated on storage pool Pool[201|NetworkFilesystem] assigned by deploymentPlanner 2013-02-28 09:43:09,509 DEBUG [cloud.storage.StorageManagerImpl] (Job-Executor-11:job-44) Created new volume Vol[18|vm=1|ROOT] for old volume Vol[1|vm=1|ROOT] 2013-02-28 09:43:09,513 DEBUG [cloud.storage.StorageManagerImpl] (Job-Executor-11:job-44) Creating volume: Vol[18|vm=1|ROOT] 2013-02-28 09:43:09,513 DEBUG [cloud.storage.StorageManagerImpl] (Job-Executor-11:job-44) Trying to create in Pool[201|NetworkFilesystem] 2013-02-28 09:43:09,521 DEBUG [cloud.template.TemplateManagerImpl] (Job-Executor-11:job-44) Downloading template 8 to pool 201 2013-02-28 09:43:09,528 DEBUG [cloud.template.TemplateManagerImpl] (Job-Executor-11:job-44) Downloading 8 via 1 2013-02-28 09:43:09,532 DEBUG [agent.transport.Request] (Job-Executor-11:job-44) Seq 1-1846938487: Sending { Cmd , MgmtId: 345042876358, via: 1, Ver: v1, Flags: 100111, [{"storage.PrimaryStorageDownloadCommand":{"localPath":"/mnt/cc08b902-cbe8-3b8d-a987-3167edafafc7","poolUuid":"cc08b902-cbe8-3b8d-a987-3167edafafc7","poolId":201,"secondaryStorageUrl":"nfs://172.21.4.3/containers/testosx","primaryStorageUrl":"nfs://172.21.4.2/data/testosx","url":"nfs://172.21.4.3/containers/testosx/template/tmpl/1/8//6bc0866b-077f-4153-a04a-8842c4c3a2bd.ova","format":"OVA","accountId":1,"name":"routing-8","wait":10800}}] } 2013-02-28 09:43:09,532 DEBUG [agent.transport.Request] (Job-Executor-11:job-44) Seq 1-1846938487: Executing: { Cmd , MgmtId: 345042876358, via: 1, Ver: v1, Flags: 100111, [{"storage.PrimaryStorageDownloadCommand":{"localPath":"/mnt/cc08b902-cbe8-3b8d-a987-3167edafafc7","poolUuid":"cc08b902-cbe8-3b8d-a987-3167edafafc7","poolId":201,"secondaryStorageUrl":"nfs://172.21.4.3/containers/testosx","primaryStorageUrl":"nfs://172.21.4.2/data/testosx","url":"nfs://172.21.4.3/containers/testosx/template/tmpl/1/8//6bc0866b-077f-4153-a04a-8842c4c3a2bd.ova","format":"OVA","accountId":1,"name":"routing-8","wait":10800}}] } 2013-02-28 09:43:09,532 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-433:null) Seq 1-1846938487: Executing request 2013-02-28 09:43:09,532 INFO [vmware.resource.VmwareResource] (DirectAgent-433:172.21.0.251) Executing resource PrimaryStorageDownloadCommand: {"localPath":"/mnt/cc08b902-cbe8-3b8d-a987-3167edafafc7","poolUuid":"cc08b902-cbe8-3b8d-a987-3167edafafc7","poolId":201,"secondaryStorageUrl":"nfs://172.21.4.3/containers/testosx","primaryStorageUrl":"nfs://172.21.4.2/data/testosx","url":"nfs://172.21.4.3/containers/testosx/template/tmpl/1/8//6bc0866b-077f-4153-a04a-8842c4c3a2bd.ova","format":"OVA","accountId":1,"name":"routing-8","wait":10800} Result is : ROOT disk for Instance shows in vCenter it uses 3KB of storage resource, so no OS is copied... The tests were done with the CentOS5.3 template automatically downloaded and installed. Template seems to have a good size on secondary storage et is marked as ready to use in the UI. Any clues on that ? ---- Julien Garet P.S. : full clones is disabled if it matters