Hi,
i have the problem with creating new instances from templates. Using KVM on Centos 6.2 as hypervisors. Primary storage is SharedPoint type. I can create new instance from scratch to boot from ISO. When i create it from template it failed with this details in log:
2012-02-05 22:42:13,342 WARN [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-5:job-1363) Cleanup failed due to org.libvirt.LibvirtException: Storage volume not found: no storage vol with matching key for com.cloud.agent.api.Answer
2012-02-05 22:42:13,342 INFO [cloud.storage.StorageManagerImpl] (Job-Executor-5:job-1363) Will retry delete of Vol[257|vm=219|ROOT] from 200
2012-02-05 22:42:13,343 DEBUG [storage.allocator.FirstFitStoragePoolAllocator] (Job-Executor-5:job-1363) Looking for pools in dc: 1 pod:1 cluster:1
2012-02-05 22:42:13,344 DEBUG [storage.allocator.FirstFitStoragePoolAllocator] (Job-Executor-5:job-1363) FirstFitStoragePoolAllocator has 1 pools to check for allocation
2012-02-05 22:42:13,344 DEBUG [storage.allocator.AbstractStoragePoolAllocator] (Job-Executor-5:job-1363) Checking if storage pool is suitable, name: c01 ,poolId: 200
2012-02-05 22:42:13,344 DEBUG [storage.allocator.AbstractStoragePoolAllocator] (Job-Executor-5:job-1363) StoragePool is in avoid set, skipping this pool
2012-02-05 22:42:13,344 DEBUG [storage.allocator.FirstFitStoragePoolAllocator] (Job-Executor-5:job-1363) FirstFitStoragePoolAllocator returning 0 suitable storage pools
2012-02-05 22:42:13,344 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-5:job-1363) No suitable pools found for volume: Vol[259|vm=247|ROOT] under cluster: 1
2012-02-05 22:42:13,344 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-5:job-1363) No suitable pools found
2012-02-05 22:42:13,344 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-5:job-1363) No suitable storagePools found under this Cluster: 1
2012-02-05 22:42:13,344 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-5:job-1363) Could not find suitable Deployment Destination for this VM under any clusters, returning.
2012-02-05 22:42:13,346 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-5:job-1363) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 38
2012-02-05 22:42:13,348 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-5:job-1363) Hosts's actual total CPU: 63816 and CPU after applying overprovisioning: 63816
2012-02-05 22:42:13,348 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-5:job-1363) release cpu from host: 38, old used: 53700,reserved: 0, actual total: 63816, total with overprovisioning: 63816; new used: 500,reserved:0; movedfromreserved: false,moveToReserveredfalse
2012-02-05 22:42:13,349 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-5:job-1363) release mem from host: 38, old used: 21239955456,reserved: 0, total: 25180418048; new used: 268435456,reserved:0; movedfromreserved: false,moveToReserveredfalse
2012-02-05 22:42:13,353 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-5:job-1363) VM state transitted from :Stopped to Error with event: OperationFailedToErrorvm's original host id: null new host id: null host id before state transition: null
2012-02-05 22:42:13,365 INFO [api.commands.DeployVMCmd] (Job-Executor-5:job-1363) com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[User|i-2-247-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2012-02-05 22:42:13,365 WARN [cloud.api.ApiDispatcher] (Job-Executor-5:job-1363) class com.cloud.api.ServerApiException : Unable to create a deployment for VM[User|i-2-247-VM]
2012-02-05 22:42:13,366 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-5:job-1363) Complete async job-1363, jobStatus: 2, resultCode: 530, result: com.cloud.api.response.ExceptionResponse@40aca68a
Thank you for the help.
Michal